Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Resolved]Not reconnecting to network after cable disconnect
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
TheMysteriousX
n00b
n00b


Joined: 30 Aug 2007
Posts: 10

PostPosted: Sun Sep 23, 2007 5:10 pm    Post subject: [Resolved]Not reconnecting to network after cable disconnect Reply with quote

My does not re-run dhcpd after the ethernet cable is plugged/unplugged, or after the router is rebooted.

I presume I haven't got it configured or need to emerge a package, so could someone point me in the right direction?


Last edited by TheMysteriousX on Tue Sep 25, 2007 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sun Sep 23, 2007 5:27 pm    Post subject: Reply with quote

Is it really necessary?

I mean, will the ip address assigned before the cable is unplugged not still be valid?

If you're always connecting to the same router and it always assigns the same ip address, maybe a static config would be preferable to dhcp?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
TheMysteriousX
n00b
n00b


Joined: 30 Aug 2007
Posts: 10

PostPosted: Mon Sep 24, 2007 1:46 am    Post subject: Reply with quote

DHCPD still needs to be run on cable disconnect, even with a static address, as the box needs to tell the router that it is actually using that IP address.

The router is one intended for home usage, and does not support static dhcp leases, or persist leases after being power cycled.

So yes, it is necessary.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10775
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Sep 24, 2007 3:00 am    Post subject: Reply with quote

Look into sys-apps/ifplugd. Normally it's used to bring up a wireless LAN interface with the wired Ethernet cable is unplugged, and vice versa, but it runs a script when the cable is unplugged and another when replugged and you could use those scripts to restart the eth0 interface.

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