networking hosed after upgrading to 10.04
Tom H
tomh0665 at gmail.com
Tue May 31 20:23:45 UTC 2011
On Tue, May 31, 2011 at 2:30 PM, scar <scar at drigon.com> wrote:
> after removing NM, i was still bothered that 'service networking
> restart' was producing the 'Unknown instance' error. i found that i
> instead had to use '/etc/init.d/networking restart'. i thought that
> upstart had replaced the init.d scripts?
I've just checked an 11.04 server and I have the same problem.
Something's gone wrong. When you use "invoke-rc.d" or
"/etc/init.d/networking", you get the upstart message but your command
works and when you use "[initctl] {start|stop|restart|status}", you
get the "unknown instance" message even though networking's supposed
to be an upstart job... I've never noticed this before and it's hard
to believe that it's been the case since (at least) 10.04.
> so, when i ran that, it said i needed to change ifupdown=false in
> nm-system-settings.conf, so i did. then i restarted networking again
> using the init.d script and lo and behold i can access the internet.
> now ifconfig is not listing an IP address for eth0 but it still has one
> for br0 which seems strange to me.
That's good and normal.
> also, upon rebooting the system, networking doesn't seem to work until i
> restart it with the init.d script. i noticed that, before i restarted
> networking, both eth0 and br0 had an IP address of 192.168.1.139.
That's not good and not normal.
> my VM grabs an IP address but i noticed it is something like
> 192.168.122.X which seems to correspond to the vibr0 interface, although
> i had thought that, by setting up a bridge, it was supposed to obtain an
> address on the same local networking, i.e. 192.168.1.X. however, my VM
> can also access the internet fine.
>
> like i said there still seems to be some fine tuning needed.
>
>
> output after restarting networking:
>
> $ ifconfig
> br0 Link encap:Ethernet HWaddr 00:24:8c:66:d9:b5
> inet addr:192.168.1.139 Bcast:192.168.1.255 Mask:255.255.254.0
>
> eth0 Link encap:Ethernet HWaddr 00:24:8c:66:d9:b5
> inet6 addr: fe80::224:8cff:fe66:d9b5/64 Scope:Link
>
> virbr0 Link encap:Ethernet HWaddr aa:8f:bc:d2:ea:51
> inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
That's good.
Re vibr0:
Do you have
<interface type='bridge'>
...
<source bridge='br0'>
...
</interface>
in "/etc/libvirt/qemu/<your_vm>.xml"?
More information about the ubuntu-users
mailing list