/etc/init.d/networking needs to be restarted
Tom H
tomh0665 at gmail.com
Sun Jul 31 10:44:16 UTC 2011
On Sat, Jul 30, 2011 at 6:45 PM, scar <scar at drigon.com> wrote:
> Tom H @ 07/30/2011 02:08 PM:
>>
>> Please post "/etc/network/interfaces".
>
> $ cat /etc/network/interfaces
> auto lo
> iface lo inet loopback
>
> auto eth0
> iface eth0 inet dhcp
>
> auto br0
> iface br0 inet dhcp
> bridge_ports eth0
> bridge_stp off
> bridge_fd 0
> bridge_maxwait 0
>
>> (With 10.04, you should use "[initctl] restart networking" or "service
>> networking restart".)
>
> i've tried `service networking restart` but it doesn't work properly, i
> believe it's a documented bug. i'll try the initctl command next time
> and see how that works.
You should have "iface eth0 inet manual" and not "iface eth0 inet dhcp".
What's the output of "ifconfig" and "netstat -rn" before and after
"/etc/init.d/networking restart"?
You're right. The correct upstart way of restarting a service doesn't
work for "networking". I've tried
service networking restart
service networking stop
restart networking
stop networking
initctl restart networking
initctl stop networking
and none of them work ("unknown instance" error)...
It looks (to me) like it's because upstart thinks that networking's
stopped ("status networking" returns "stop/waiting"). Nuts! Upstart
should be able to restart a service that's not a running daemon!
More information about the ubuntu-users
mailing list