dhcp3-server (dhcpd) is tampering with host NIC
- by user61000
Hi all,
I have a debian box that is serving as a router (using iptables NAT). When first turned on, everything works fine for a few minutes. Then the dhcp server assigns an IP (other than 192.168.0.1) to its' host NIC, eth0. This is NOT what I want. I just want dhcp3-server to listen on eth0, not assign it an IP, and changes the kernel routing table. This of course ruins the NAT capablities of the box. How can I tell the dhcp3-server NOT to do this?
Thanks
Before dhcp3-server tampers with eth0, the IP is 192.168.0.1, and the routing table looks like this:
~# netstat -r
Kernel IP routing table
Destination Gateway Iface
192.168.0.0 * eth0
173.33.220.0 * eth1
default 173.33.220.1 eth1
After dhcp3-server tampers with eth0, the IP is 192.168.0.3, and the routing table looks like this:
~# netstat -r
Kernel IP routing table
Destination Gateway Iface
192.168.0.0 * eth0
173.33.220.0 * eth1
default 192.168.0.1 eth0
default 173.33.220.1 eth1
SETUP
Outbound NIC is eth1
Internal NIC is eth0
/etc/network/interfaces
...
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
/etc/default/dhcp3-server
INTERFACES="eth0"