Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
managing 2 eth-interfaces with /etc/conf.d/net
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
Radiator
n00b
n00b


Joined: 06 Sep 2004
Posts: 31

PostPosted: Sun Jan 02, 2005 5:50 pm    Post subject: managing 2 eth-interfaces with /etc/conf.d/net Reply with quote

Hi,

I'm trying to manage 2 eth-interfaces with /etc/conf.d/net
There is eth0 (wired) and eth1 (wireless) and both get their settings via DHCP (works).

1)
If i start both via /etc/init.d/net.eth[01] start, they get both dhcp, but network is unavailable in case both eth-interfaces have success.
I think this is due to double default route entries, but where can i fix this and set the primary/fallback interface. (ie I'd prefer a wired connection if available and have wireless as a fallback).
I know i can fix that manually with the route del default command, but i think there must be an automatic way. (in /etc/conf.d/net ? )

2)

dhcpd eth0 (on a wired connection) takes quite long if there is no cable plugged - even with -t 10, it still takes 10 seconds.

mii-tool eth0 is excellent at determining the cable link state (plugged or unplugged).
I think it'd be useful to only try to get dhcp on wired connection if there's a positive link state (plugged cable). I've tried to modify the /etc/init.d/net.lo (eth0 / eth1 symlink to it), but it seems to be ugly since it does then also for lo and eth1, but it's only needed for "wired" connections. wasn't reliable.

3)

Is there anything that can handle networking better during runtime? init-scripts are automatically executed only at boottime.

It'd be nice if something can detect when i plug a cable and tries then automatically to get dhcp.
Same with wlan - if i get in range of a configured wlan during runtime -> connect to it automatically and get dhcp.
(may also be nice to connect then automatically to unencrypted wlan, if there's one)


Any suggestions how2do ?
Back to top
View user's profile Send private message
kenthepostman
Apprentice
Apprentice


Joined: 02 Jul 2004
Posts: 245
Location: Stanford, CA

PostPosted: Mon Jan 03, 2005 2:35 am    Post subject: Reply with quote

A program in portage called quickswitch might solve some of the problems. I would check it out. It allows you to switch between different network profiles easily. Maybe it can be used with some additional script
Back to top
View user's profile Send private message
Radiator
n00b
n00b


Joined: 06 Sep 2004
Posts: 31

PostPosted: Tue Jan 04, 2005 4:03 pm    Post subject: Reply with quote

thx,

but i think this script is not really compatible with /etc/conf.d/net , it also does not support wireless as i can see.

Please .......

I can't imagine that all people with a laptop manage profiles manually by typing the appropriate command (/etc/init.d/net.eth0 stop;/etc/init.d/net.eth1 start) just to disable wired lan and enable wireless lan.

Otherwise i'd have to admit that Microsoft Windows is much better here - it supports "out of the box" automatic profile switching with wireless and wired lan. it also starts automatically dhcp-requests if a new network-connection is detected. There are also several network-profile management tools by wireless card manufacturers.

I cannot imagine, that there are no tools in the outside world that make network configuration a little bit more automatic. It would be especially useful on Laptops.
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