WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Ubuntu 8.04 Hardy Heron bridged networking xen connectiv

Subject: Re: [Xen-users] Ubuntu 8.04 Hardy Heron bridged networking xen connectivity loss
From: Mike Power <mpower@xxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Sep 2008 09:11:52 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 04 Sep 2008 09:12:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <003b01c90e96$dde5fbd0$99b1f370$@Henning@prd-inc.com>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <48BF4E09.4090102@xxxxxxxxxxxxxxxxxx> <003b01c90e96$dde5fbd0$99b1f370$@Henning@prd-inc.com>
Reply-to: mpower@xxxxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (X11/20080724)
Yeah you a right.  If I take off the ip address from peth0 everything works:
mpower@dodtsair:~$ sudo ifconfig peth0 0.0.0.0

What is worse is that the network-bridge script uses the default route to determine if the bridge was created then it fails to tear down everything it built. Thus

mpower@dodtsair:~$ sudo /etc/xen/scripts/network-bridge stop

Does not work.

I checked the 3.3 version of the script and it fails as well. Same problem. I have not been able to figure out why the script fails to properly configure the interfaces. I am lost right now in a lot of sed and regex expressions.

mpower@dodtsair:/$ uname -a
Linux dodtsair 2.6.24-19-xen #1 SMP Wed Aug 20 21:08:51 UTC 2008 x86_64 GNU/Linux

mpower@dodtsair:/$ dpkg -S /usr/sbin/xm
xen-utils-3.2: /usr/sbin/xm

mpower@dodtsair:/$ cat /etc/issue
Ubuntu 8.04.1 \n \l

Dustin Henning wrote:
        It looks like you've spotted the problem (two NICs with the same
hwaddr and ipaddr), unfortunately, I'm not sure how you'd fix it
(scriptwise).  I always had problems with the scripts, so I disabled them
and just use the standard networking configuration files in Fedora 8.  This
works great, but most people tend to want Xen to deal with it.  Before that,
I tried several things, restarting xend was among them, it definitely made a
difference, but I don't remember whether it resolved or intensified the
problem.
        Regarding how you're getting rid of the bridge to make it work, I
think you should actually be getting rid  of the ipaddr on peth0, my bridge
and peth0 have the same hwaddr, and my bridge has the IP.  You may have to
use the route command to remove the extra routes afterwards too (or they may
go away on their own).  This will probably make it work, but would be
necessary again after reboots.
        Dustin

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Power
Sent: Wednesday, September 03, 2008 22:55
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Ubuntu 8.04 Hardy Heron bridged networking xen
connectivity loss

Last problem I had involved changing one character in my configuration scripts. Really easy once someone showed me what was wrong.

Well I think this issue is just the same. The moment I used apt to install the Xen kernal and tools I lost internet connectivity. I have been managing because I can restore connectivity be deleting the bridge

mpower@dodtsair:~$ sudo ifdown eth0
mpower@dodtsair:~$ sudo brctl delbr eth0


But that means any domUs will not have connectivity. I have not had any till now so it wasn't much of an issues. But thanks to your help now I have XP running.

Ultimately I would really like you to show me the documentation that tells me how to fix this. I am pretty sure it exists but my googling has not been effective in this area.

Some things that seem dubious to me are the fact that eth0(the bridge) looks like an exact clone of peth0 from ifconfig. I would have expected them to have different HWaddr and at the very least different inet addr. Another dubious thing is the routing table, double routes one for each interface. Shouldn't that confuse the heck out of the OS? Lastly I have no clue why the next line is in the routing table:
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0

Here is that status of my system on boot with networking broken:

mpower@dodtsair:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:15:3f:f2:0d inet addr:75.101.5.130 Bcast:75.101.5.255 Mask:255.255.255.0
          inet6 addr: fe80::222:15ff:fe3f:f20d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:462 errors:0 dropped:0 overruns:0 frame:0
          TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:32133 (31.3 KB)  TX bytes:29676 (28.9 KB)

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:575 errors:0 dropped:0 overruns:0 frame:0
          TX packets:575 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:64462 (62.9 KB)  TX bytes:64462 (62.9 KB)

peth0 Link encap:Ethernet HWaddr 00:22:15:3f:f2:0d inet addr:75.101.5.130 Bcast:75.101.5.255 Mask:255.255.255.0
          inet6 addr: fe80::222:15ff:fe3f:f20d/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:531 errors:0 dropped:80563353626 overruns:0 frame:0
          TX packets:497 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:45589 (44.5 KB)  TX bytes:54250 (52.9 KB)
          Interrupt:18 Base address:0xa000

mpower@dodtsair:~$ sudo brctl show
bridge name    bridge id        STP enabled    interfaces
eth0        8000.0022153ff20d    no        peth0

mpower@dodtsair:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface 75.101.5.0 0.0.0.0 255.255.255.0 U 0 0 0 peth0
75.101.5.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0 75.101.5.1 0.0.0.0 UG 0 0 0 peth0
0.0.0.0         75.101.5.1      0.0.0.0         UG    100    0        0 eth0

mpower@dodtsair:~$ sudo ethtool eth0
Settings for eth0:
    Link detected: yes

mpower@dodtsair:~$ sudo ethtool peth0
Settings for peth0:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Full
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Full
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: pumbg
    Wake-on: g
    Current message level: 0x00000033 (51)
    Link detected: yes

mpower@dodtsair:~$ sudo /etc/Xen/scripts/network-bridge status
============================================================
10: peth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:22:15:3f:f2:0d brd ff:ff:ff:ff:ff:ff
    inet 75.101.5.130/24 brd 75.101.5.255 scope global peth0
    inet6 fe80::222:15ff:fe3f:f20d/64 scope link
       valid_lft forever preferred_lft forever
11: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
    link/ether 00:22:15:3f:f2:0d brd ff:ff:ff:ff:ff:ff
    inet 75.101.5.130/24 brd 75.101.5.255 scope global eth0
    inet6 fe80::222:15ff:fe3f:f20d/64 scope link
       valid_lft forever preferred_lft forever
bridge name bridge id STP enabled interfaces
eth0        8000.0022153ff20d    no        peth0
75.101.5.0/24 dev peth0 proto kernel scope link src 75.101.5.130
75.101.5.0/24 dev eth0  proto kernel  scope link  src 75.101.5.130
169.254.0.0/16 dev eth0  scope link  metric 1000
default via 75.101.5.1 dev peth0
default via 75.101.5.1 dev eth0  metric 100
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 75.101.5.0 0.0.0.0 255.255.255.0 U 0 0 0 peth0
75.101.5.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0 75.101.5.1 0.0.0.0 UG 0 0 0 peth0
0.0.0.0         75.101.5.1      0.0.0.0         UG    100    0        0 eth0
============================================================

I'll try the following before I send.

ifconfig eth0 mtu 1496

That didn't work.

Mike Power




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>