Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hybrid Network Environment
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jan-o-sch
n00b
n00b


Joined: 18 Sep 2005
Posts: 20

PostPosted: Thu Sep 22, 2005 9:16 am    Post subject: Hybrid Network Environment Reply with quote

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
View user's profile Send private message
thomateverte
n00b
n00b


Joined: 23 Sep 2005
Posts: 19

PostPosted: Mon Sep 26, 2005 9:02 am    Post subject: Reply with quote

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
View user's profile Send private message
thomateverte
n00b
n00b


Joined: 23 Sep 2005
Posts: 19

PostPosted: Mon Sep 26, 2005 9:08 am    Post subject: Reply with quote

just found this post, it gives you a solution:

https://forums.gentoo.org/viewtopic-t-366133-highlight-.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum