Michael Higgins wrote:
So, what overwrites it, when, how, and how to stop it? Is there a
definitive guide to the syntax of the various config files? Or, BETTER
YET, is there anyone who has a smoothly-functioning configuration to
switch between wireless DHCP and connected hard-wired net setups and
would like to share?
It's being overwritten by your DHCP client, which is the expected
behavior. As long as your setup is such that your wireless card always
uses DHCP, and your wired card never uses DHCP, you can configure the
Gentoo networking script to do the right thing depending on which
interface you're starting up.
In your /etc/conf.d/net setup, add variables for:
config_eth0 = ( "w.x.y.z/nn" )
dns_servers_eth0 = ( "w.x.y.z", "w.x.y.z" )
dns_domain_eth0 = "my.domain"
This will work as long as you manually stop and start the interfaces
when you switch adapters. The net.eth0 startup script will write out a
new resolv.conf, etc.
--Mike
--
gentoo-user@lists.gentoo.org mailing list