Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you disabling eth0 when no network available
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
jondkent
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 289
Location: London

PostPosted: Fri Oct 04, 2002 2:32 pm    Post subject: How do you disabling eth0 when no network available Reply with quote

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
View user's profile Send private message
Sgaduuw
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2002
Posts: 133
Location: Rotterdam, Netherlands

PostPosted: Fri Oct 04, 2002 2:59 pm    Post subject: Reply with quote

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


Joined: 16 Jun 2002
Posts: 293
Location: Manchester, UK

PostPosted: Fri Oct 04, 2002 3:03 pm    Post subject: Reply with quote

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


Joined: 26 Jul 2002
Posts: 289
Location: London

PostPosted: Fri Oct 04, 2002 3:14 pm    Post subject: Reply with quote

I been using -t as well, set it to 30 (seconds?), but seems to take alot longer than that
Back to top
View user's profile Send private message
amasidlover
Apprentice
Apprentice


Joined: 16 Jun 2002
Posts: 293
Location: Manchester, UK

PostPosted: Fri Oct 04, 2002 4:41 pm    Post subject: Reply with quote

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


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Oct 04, 2002 4:51 pm    Post subject: Reply with quote

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
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