View previous topic :: View next topic |
Author |
Message |
jan-o-sch n00b
Joined: 18 Sep 2005 Posts: 20
|
Posted: Thu Sep 22, 2005 9:16 am Post subject: Hybrid Network Environment |
|
|
I have just installed Gentoo for the first time on my laptop, which I am using in different environments: I either need
- an ADSL dialup connection (adsl-start)
- a DHCP request to a router
- my wireless LAN card
depending on where I'm going to use my laptop. I would like to start my connection at boot time.
I tried to get along with the documentation I could find, and configured it currently to this point:
Code: | [b]/etc/conf.d/net[/b]
config_eth0("adsl")
fallback_config_eth0("dhcp") |
But there is obviously no fallback_fallback_config_eth0 which I could use for my W-LAN.
Another point is the priorization: I'd like better to use DHCP first, and the ADSL configuration only if DHCP failed. To make this comfortably, I would need a DHCP request with a smaller timeout. The default timeout is quite high (about 60sec?). I know, that I will get my IP address in the first 10 seconds (if I am getting one at all).
Thanks for your ideas! |
|
Back to top |
|
|
thomateverte n00b
Joined: 23 Sep 2005 Posts: 19
|
Posted: Mon Sep 26, 2005 9:02 am Post subject: |
|
|
hi,
if you prefer to try dhcp first you should switch your lines :
Code: |
config_eth0("dhcp")
fallback_config_eth0("adsl")
|
then you have the timeout problem: see this documentation to change the timeout to a smaller value (http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=4&chap=3#dhcp)
the wireless doc gives you information about how to use ifplugd to turn on and off network interfaces based on connectivity:
http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=4&chap=6
i haven't tried that type of configuration myself yet, but if you search for ifplugd or netplug on the forums, you will find some information (i recently read a post from a dev on planet gentoo saying that he is integrating netplug in the baselayout and maybe ifplugd in the future i think)
hope it helps. |
|
Back to top |
|
|
thomateverte n00b
Joined: 23 Sep 2005 Posts: 19
|
|
Back to top |
|
|
|