Restarting the network

Kenneth Loafman kenneth at loafman.com
Wed Mar 3 21:39:41 UTC 2010


Verde Denim wrote:
> 
> 
> On Wed, Mar 3, 2010 at 2:58 PM, R Kimber <richardkimber at btinternet.com
> <mailto:richardkimber at btinternet.com>> wrote:
> 
>     After my broadband goes down and is then restored, my networking  never
>     restores automatically, and the command that Googling leads me to
>     understand
>     should restore it never works:
>     sudo /etc/init.d/networking restart
>     I've also tried
>     ifup eth0
>     and
>     sudo /etc/init.d/network-manager restart
> 
>     In each case I get errors about eth0 being unknown.
> 
>     The logs say:-
>     Mar  3 15:00:40 infinity NetworkManager: <info>  (eth0): DHCP
>     transaction
>     took too long, stopping it.
>     Mar  3 15:00:40 infinity NetworkManager: <info>  (eth0): canceled DHCP
>     transaction, dhcp client pid 1487
>     Mar  3 15:00:40 infinity NetworkManager: <info>  Activation (eth0)
>     Stage 4
>     of 5 (IP4 Configure Timeout) scheduled...
>     Mar  3 15:00:40 infinity NetworkManager: <info>  Activation (eth0)
>     Stage 4
>     of 5 (IP4 Configure Timeout) started...
>     Mar  3 15:00:40 infinity NetworkManager: <info> (eth0): device state
>     change: 7 -> 9 (reason 5)
>     Mar 3 15:00:40 infinity NetworkManager: <info> Marking connection 'Auto
>     eth0' invalid.
>     Mar  3 15:00:40 infinity NetworkManager: <info>  Activation (eth0)
>     failed.
>     Mar  3 15:00:40 infinity NetworkManager: <info>  Activation (eth0)
>     Stage 4
>     of 5
>      (IP4 Configure Timeout) complete.
>     Mar  3 15:00:40 infinity NetworkManager: <info>  (eth0): device state
>     change: 9 -> 3 (reason 0)
>     Mar 3 15:00:40 infinity NetworkManager: <info> (eth0): deactivating
>     device
>     (reason: 0).
> 
>     The only thing that works is a reboot.  Am I using the wrong
>     commands?  Or
>     is there a tweak that will overcome the problem?
> 
>     - Richard
> 
> 
> Is this service with Comcast?

If eth0 is a wired connection, the first command should restart the
network cleanly.  If its a wired connection, then you should be aware
that Linux has broken a cardinal rule of UNIX, "all services except the
kernel should be restartable without reboot".  I have yet to be able to
restart a wireless service without a reboot.  I'll be interested to find
out if anyone else has, and especially, how they did it.

...Ken




More information about the ubuntu-users mailing list