1 |
Michael Higgins wrote: |
2 |
|
3 |
> So, what overwrites it, when, how, and how to stop it? Is there a |
4 |
> definitive guide to the syntax of the various config files? Or, BETTER |
5 |
> YET, is there anyone who has a smoothly-functioning configuration to |
6 |
> switch between wireless DHCP and connected hard-wired net setups and |
7 |
> would like to share? |
8 |
|
9 |
It's being overwritten by your DHCP client, which is the expected |
10 |
behavior. As long as your setup is such that your wireless card always |
11 |
uses DHCP, and your wired card never uses DHCP, you can configure the |
12 |
Gentoo networking script to do the right thing depending on which |
13 |
interface you're starting up. |
14 |
|
15 |
In your /etc/conf.d/net setup, add variables for: |
16 |
|
17 |
config_eth0 = ( "w.x.y.z/nn" ) |
18 |
dns_servers_eth0 = ( "w.x.y.z", "w.x.y.z" ) |
19 |
dns_domain_eth0 = "my.domain" |
20 |
|
21 |
This will work as long as you manually stop and start the interfaces |
22 |
when you switch adapters. The net.eth0 startup script will write out a |
23 |
new resolv.conf, etc. |
24 |
|
25 |
--Mike |
26 |
|
27 |
-- |
28 |
gentoo-user@l.g.o mailing list |