[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

New to Debian (I'm a Gentoo user) - static IP vs DHCP



Hello all,

First posting to the list. I'm a long time Gentoo user, but I'm playing with my first Debian system since many years ago.

I've been considering a wholesale change to another distro (Debian and FreeBSD being the top contenders) for some time now due to some of the changes that have happened in the last year or two with gentoo (won't go into details). I will soon be rolling out a new groupware system (SOGo) that is not supported on gentoo or FreeBSD, so Debian (no way I'm going RedHat) is the obvious choice for this new server - and since SOGo doesn't officially support FreeBSD, I will most likely use Debian for the new mail server as well.

I'll be posting a series of questions trying to get my head around the differences between Debian and Gentoo. I will rtfm as much as possible, but I have some questions that I need to address fairly quickly to get this new SOGo server ready for implementation, so some of my questions may seem lazy, but that will only be because time is short. Specific answers are appreciated, but pointers to the docs are absolutely sufficient.

First question is, I have set the system to a static IP and restarted the network service:

less /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0 inet static
address ###.###.###.###
gateway ###.###.###.###
netmask 255.255.255.0
network ###.###.###.###
broadcast ###.###.###.###

service networking --full-restart

But, every 10-20 seconds, I'm seeing DHCP requests in the logs (they are being blocked by the firewall - I'm paranoid, and implement both inbound AND outbound rules):

Jan  3 07:12:30 sogo dhclient: DHCPREQUEST on eth0 to ###.###.###.### port 67
Jan  3 07:12:30 sogo dhclient: send_packet: Operation not permitted
Jan  3 07:12:30 sogo kernel: [12868185.930627] (fw>): IN= OUT=eth0 SRC=###.###.###.### DST=###.###.###.### LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=68 DPT=67 LEN=308
Jan  3 07:12:49 sogo dhclient: DHCPREQUEST on eth0 to ###.###.###.### port 67
Jan  3 07:12:49 sogo dhclient: send_packet: Operation not permitted
Jan  3 07:12:49 sogo kernel: [12868204.222463] (fw>): IN= OUT=eth0 SRC=###.###.###.### DST=###.###.###.### LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=68 DPT=67 LEN=308

Since I've configured eth0 for a static IP, why are these DHCP requests even happening? I've looked in /etc/init.d and don't see anything about a DHCP client. And most importantly, how do I stop them? I know I could probably uninstall DHCP client, but that doesn't seem like the proper solution.

Thanks

Charles


Reply to: