Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
preferred networks on boot
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
grx
Apprentice
Apprentice


Joined: 19 Jan 2005
Posts: 173
Location: Maryland

PostPosted: Wed Mar 30, 2005 11:18 pm    Post subject: preferred networks on boot Reply with quote

Does anyone know of a slick way to get gentoo to DHCP my ethernet on bootup only if it's plugged in? I currently have it configured to get the IP address on bootup, but if I'm not connected, it takes forever to realize it can't do it. The only way around that I know would end up requiring me to get the address by hand after booting.

If possible, what I'd like to do is have it check to see if the ethernet is plugged in, and if so use that, and otherwise use the wireless card. It would be even better if it could check to see if any networks from a local list are available, and connect to one of those, and if nothing is available at all, to skip the DHCP completely to make the bootup fast.

Hmmm... I hope I described that clearly enough. :? Anyone have any ideas?
Back to top
View user's profile Send private message
Unther
Apprentice
Apprentice


Joined: 20 Feb 2005
Posts: 163

PostPosted: Thu Mar 31, 2005 1:34 am    Post subject: Reply with quote

remove the net startup script from the default run-level, and run it from the prompt / terminal.
The command to start the network card is (for eth0)
Code:
/etc/init.d/net.eth0 start
run as root
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