View previous topic :: View next topic |
Author |
Message |
jondkent Apprentice
Joined: 26 Jul 2002 Posts: 289 Location: London
|
Posted: Fri Oct 04, 2002 2:32 pm Post subject: How do you disabling eth0 when no network available |
|
|
Hi,
This is an annoying issue for me. I've got Gentoo running fine on my portable, occasionally it is connected to my network via the inbuilt eth0 but mostly I use my wireless network, which is eth1, which works fine.
However, on boot up Gentoo, of course, tries to enable eth0 with dhcp which seems to take an age to timeout. I've tried setting a lower timeout within the init script but this seems to make no differance. Basically I wondering if there is a way to check if eth0 is connected to a network and if it is then run dhcp against it, else give up and move on. Any ideas?
Thanks
Jon |
|
Back to top |
|
|
Sgaduuw Tux's lil' helper
Joined: 17 Sep 2002 Posts: 133 Location: Rotterdam, Netherlands
|
Posted: Fri Oct 04, 2002 2:59 pm Post subject: |
|
|
it looks like net.eth0 is started at boot-time
do 'rc-update del net.eth0'
that will disable the startup of eth0 at boot-time
if you choose to use the eth0 device, just do '/etc/init.d/net.eth0 start' _________________ my website |
|
Back to top |
|
|
amasidlover Apprentice
Joined: 16 Jun 2002 Posts: 293 Location: Manchester, UK
|
Posted: Fri Oct 04, 2002 3:03 pm Post subject: |
|
|
I've managed to change the timeout on DHCP by using the -t flag, is that how you are trying to do it? |
|
Back to top |
|
|
jondkent Apprentice
Joined: 26 Jul 2002 Posts: 289 Location: London
|
Posted: Fri Oct 04, 2002 3:14 pm Post subject: |
|
|
I been using -t as well, set it to 30 (seconds?), but seems to take alot longer than that |
|
Back to top |
|
|
amasidlover Apprentice
Joined: 16 Jun 2002 Posts: 293 Location: Manchester, UK
|
Posted: Fri Oct 04, 2002 4:41 pm Post subject: |
|
|
-t 10 in the DHCP options gave me good results, it was plenty long enough to get an address when my laptop was actually on the network. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7731 Location: Underworld
|
Posted: Fri Oct 04, 2002 4:51 pm Post subject: |
|
|
I use -t 5 and never had problem getting an IP when there was a server
amasidlover wrote: | -t 10 in the DHCP options gave me good results, it was plenty long enough to get an address when my laptop was actually on the network. |
|
|
Back to top |
|
|
|