[NTLUG:Discuss] Which nic the gateway?

Michael Barnes barnmichael at gmail.com
Wed Sep 13 14:53:30 CDT 2006


I've got a Dell laptop running SUSE 9.2.  It has a built-in NIC (eth0) 
and a second NIC (eth1) in the docking station.  When I come into the 
office and put it into the dock and fire it up, it pulls DHCP from the 
server.  My problem is, when using the dock, DHCP assigns a static IP 
address, but assigns the gateway as reachable via eth0.  Then I have to 
go to command line and ifdown eth0, then ifup eth1 to re-pull DHCP and 
set the gateway reached via eth1.  Once I do that, then all is happy 
until I reboot.

I cannot seem to find anything in the DHCP configuration which allows me 
to specify a specific NIC to use, or anything in the laptop that lets me 
turn off the laptop NIC when in the dock.

Thanks for any ideas,
Michael



More information about the Discuss mailing list