I'm using Debian Lenny with two ethernet network cards, one plugged into a different network. My goal was to set both interfaces to DHCP, but I want the name server to be gotten from only one of them. The problem is, whoever gets the DHCP offer last, overrides the /etc/resolv.conf file to the wrong nameserver! I've deleted network-manager and network-manager-gnome as they are able to work with one interface a time. Both interfaces are set to DHCP and 'auto' in /etc/networking/interfaces like this:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
allow-hotplug eth1
iface eth1 inet dhcp
I want the nameserver to be gotten always from eth1, how can I do that?
thanks!