Prevent dhclient from setting default GW and DNS servers
Hello dear linuxquestions.org community, I wonder if it is possible to prevent dhclient from setting the default gateway and dns servers when leasing an ip address, I actually just want it to set the ip address and if possible a static route.
Configuration:
eth0 dsl connection (dhcp)
this should be the Internet gateway.
wlan0 wireless network with secondary internet connection (dhcp)
this is only an on demmand connection to a specific Internet site, however whenever I issue the dhclient wlan0 command, my resolv.conf gets new dns information as well as a new default route is added, that makes my eth0 connection useless. does anybody knows how to prevent this from happening?
Thanks you.
|