FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-30-2011, 08:50 PM
scar
 
Default /etc/init.d/networking needs to be restarted

after upgrading a system to 10.04, network connectivity is botched. i
haven't been using NetworkManager and so it is uninstalled. until i use
`sudo /etc/init.d/networking restart` connectivity to the internet
doesn't work

i have KVM installed so i have a couple extra interfaces. for some
reason the interface br0 is getting the LAN address that should usually
be assigned to eth0 and as you can see eth0 doesn't have any IP.:

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
inet6 addr: fe80::224:8cff:fe66:d9b5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:147881 errors:0 dropped:0 overruns:0 frame:0
TX packets:309488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10439904 (10.4 MB) TX bytes:452085066 (452.0 MB)

eth0 Link encap:Ethernet HWaddr 00:24:8c:66:d9:b5
inet6 addr: fe80::224:8cff:fe66:d9b5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:148278 errors:0 dropped:0 overruns:0 frame:0
TX packets:309819 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12854963 (12.8 MB) TX bytes:452119560 (452.1 MB)
Interrupt:28 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:231 errors:0 dropped:0 overruns:0 frame:0
TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24874 (24.8 KB) TX bytes:24874 (24.8 KB)

virbr0 Link encap:Ethernet HWaddr ca:ae:03:45:a8:89
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::c8ae:3ff:fe45:a889/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:14096 (14.0 KB)




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-30-2011, 09:08 PM
Tom H
 
Default /etc/init.d/networking needs to be restarted

On Sat, Jul 30, 2011 at 4:50 PM, scar <scar@drigon.com> wrote:
>
> after upgrading a system to 10.04, network connectivity is botched. i
> haven't been using NetworkManager and so it is uninstalled. until i use
> `sudo /etc/init.d/networking restart` connectivity to the internet
> doesn't work
>
> i have KVM installed so i have a couple extra interfaces. for some
> reason the interface br0 is getting the LAN address that should usually
> be assigned to eth0 and as you can see eth0 doesn't have any IP:
>
> 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
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> eth0 Link encap:Ethernet HWaddr 00:24:8c:66:d9:b5
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
>
> virbr0 Link encap:Ethernet HWaddr ca:ae:03:45:a8:89
> inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

Please post "/etc/network/interfaces".

(With 10.04, you should use "[initctl] restart networking" or "service
networking restart".)

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-30-2011, 09:09 PM
Avi Greenbury
 
Default /etc/init.d/networking needs to be restarted

scar wrote:

> after upgrading a system to 10.04, network connectivity is botched. i
> haven't been using NetworkManager and so it is uninstalled. until i
> use `sudo /etc/init.d/networking restart` connectivity to the internet
> doesn't work
>
> i have KVM installed so i have a couple extra interfaces. for some
> reason the interface br0 is getting the LAN address that should
> usually be assigned to eth0 and as you can see eth0 doesn't have any
> IP.:

What's the contents of your /etc/network/interfaces?

--
Avi

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-30-2011, 09:28 PM
"compdoc"
 
Default /etc/init.d/networking needs to be restarted

You can see that br0 and eth0 have the same MAC address, and so br0 is a
bridge that the kvm guests can use to reach the lan. You should be able to
use the bridge as well, although I don't do it that way. I always use a
bridge with a 2nd, separate ethernet card that the guests use to themsleves.

The mask is an odd number, but maybe you have set it that way for a reason.






--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-30-2011, 10:45 PM
scar
 
Default /etc/init.d/networking needs to be restarted

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.




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 07:27 AM
Nils Kassube
 
Default /etc/init.d/networking needs to be restarted

scar wrote:
> $ 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

Some years ago I had a setup with a bridge which didn't work until I
removed the "auto eth0" and "iface eth0 inet dhcp" lines.


Nils

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 10:44 AM
Tom H
 
Default /etc/init.d/networking needs to be restarted

On Sat, Jul 30, 2011 at 6:45 PM, scar <scar@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!

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 05:18 PM
scar
 
Default /etc/init.d/networking needs to be restarted

Tom H @ 07/31/2011 03:44 AM:
> You should have "iface eth0 inet manual" and not "iface eth0 inet dhcp".

why's that? how will eth0 get an IP address then?


> What's the output of "ifconfig" and "netstat -rn" before and after
> "/etc/init.d/networking restart"?

i'll let you know ASAP



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 05:23 PM
"compdoc"
 
Default /etc/init.d/networking needs to be restarted

>why's that? how will eth0 get an IP address then?

Typically, the bridge's adaptor isn't assigned an IP. I don't even assign an
IP to the bridge, but then I don't share bridges between guests and hosts,
which is also typical for servers.




--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 07:13 PM
Tom H
 
Default /etc/init.d/networking needs to be restarted

On Sun, Jul 31, 2011 at 1:18 PM, scar <scar@drigon.com> wrote:
> Tom H @ 07/31/2011 03:44 AM:


>> You should have "iface eth0 inet manual" and not "iface eth0 inet dhcp".
>
> why's that? *how will eth0 get an IP address then?

It's not necessary. The box uses the bridge. For example, I'm sure
that I could clone an Ubuntu VM, set up an (unnecessary) bridge on my
client this way, and use br0 as my NIC rather than eth0 without a
hitch.


>> What's the output of "ifconfig" and "netstat -rn" before and after
>> "/etc/init.d/networking restart"?
>
> i'll let you know ASAP

OK.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:06 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org