Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sometimes-connected laptop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon May 27, 2002 11:47 am    Post subject: Sometimes-connected laptop Reply with quote

Hi

Using Gentoo, love it. Have it installed on a laptop, which is sometimes connected to a network but other times (hotel rooms, airports) it isn't. When it IS connected to a network it gets a DHCP address, and that works fine. When is ISN'T connected, eth0 times out trying to get a DHCP address (of course), but then eth0 fails to start, which means squid, postifx, mysql, etc etc don't start.

The only workaround I have found so far is to assign a static address to the Ethernet port, but that means I have to re-edit files when I want a DHCP address.

What I actually want to do is try to get a DCHP address, and if successful carry on. If not successful, then assign a static address and carry on, so that services dependent upon a network are able to start.

Thanks for any help
Andy
Back to top
mb
Guru
Guru


Joined: 25 Apr 2002
Posts: 355
Location: Hessen | .de

PostPosted: Mon May 27, 2002 11:57 am    Post subject: Reply with quote

hi...

i have exactly the same problem... my solution (or better work-around) is to assign a static ip and call dhcp if needed...

the other way around is of course the best solution, but requires some scripting.... => maybe we should bring this up in gentoo suggestions..


#mb
Back to top
View user's profile Send private message
DataShark
n00b
n00b


Joined: 26 May 2002
Posts: 28
Location: Portugal

PostPosted: Sat Jun 15, 2002 6:29 pm    Post subject: quickswitch is what you want ... Reply with quote

emerge quickswitch, read the docs and be happy :D
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Sat Jun 15, 2002 7:04 pm    Post subject: Reply with quote

I'd suggest you simply do
Code:
rc-update del net.eth0 default

and then manually run
Code:
/etc/inid.d/net.eth0 start|stop

when needed.
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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