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] No external network for domU's

To: "James Drenter" <jdrenter@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] No external network for domU's
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: Thu, 23 Aug 2007 11:34:30 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 22 Aug 2007 23:05:08 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=VApmHnX5P+C8Gck6DOJ3bXucWsnZdjFNVc2rXhbktAJ24miAbnCN0VRpVoOr3Fr+L6mMnKz279odOnsNYHLzsV0PjwP/Sx5ZocdA/CU9Dv4mRZmqPMgUnDIzlZ2W1qfekBIDy3i97toUnbAiiWLIMirt4zy1ix6UJJ77dOV1CjM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=YRWTa9Fu/FCGy31B4glrqbyKnx6e+vc65s1uiQvncK6qW200s7t1YbEUoxbyiGNcSkvZ+B/kwyLSOC+ie8BY7LJbt209CxomwpcYMPYls82N1suxi7qvWH/bdKjI3l+42004sKgSLtRRHK1/xWxP9AbZOzHd1rbfqojh86XwZgg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46CCF96E.5030001@xxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46CCF96E.5030001@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Did you configure eth0 of domU with mac address mac=00:16:3e:1a:19:23 adress.

If not  then please first modify yr /etc/syscongig/network-scripts/ifcfg-eth0. with the above mac as in config file then add proper guest IP and NETASK  and gateway same as dom0. then restart the network.

then see ifconfig if yr eth0 is up in domU.

If it is then it should be ok.

if not then you can check roting table into domU.

You prorbably need to configure the IP routing table in domU.
First see the routing atable to dom0 using below command.
#route -v


Then add the entryies for the domU  also.

Thanks,
Trilok

On 8/23/07, James Drenter <jdrenter@xxxxxxxxxxxxx> wrote:
I have been trying to get this to work for several days with no luck...

I'm using a RHEL5 (x86_64) dom0 with a single, eth0 physical device.  I'm trying to add a single domU with a network bridge (the default).  I can add the domU OK, but the network on the domU can only access the dom0 (anything to the internet fails).  I'm a bit of a Xen newbie, but in 3 days of searching on-line, I haven't found anything that has helped get this working.

Basic net settings:
   dom0 IP = 10.74.154.200
   domU IP = 10.74.154.202
   NETMASK (both) = 255.255.255.0
   GATEWAY (both) = 10.74.154.1

domU vif setting:
   vif = [ 'type=ioemu, mac=00:16:3e:1a:19:23, bridge=xenbr0' ]

Clean boot of the system with just the dom0 running gives me the following "ifconfig" and "brctl show" results:

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1B:78:6E:67:16
          inet addr:10.74.154.200  Bcast:10.74.154.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fe6e:6716/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1153 errors:0 dropped:0 overruns:0 frame:0
          TX packets:470 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:128479 (125.4 KiB)  TX bytes:58600 (57.2 KiB)

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:2211 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2211 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2467028 (2.3 MiB)  TX bytes:2467028 (2.3 MiB)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:1324 errors:0 dropped:0 overruns:0 frame:0
          TX packets:469 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:143989 (140.6 KiB)  TX bytes:60460 (59.0 KiB)
          Interrupt:16

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:475 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1154 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:60182 (58.7 KiB)  TX bytes:128539 (125.5 KiB)

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:603 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:57878 (56.5 KiB)  TX bytes:0 (0.0 b)

# brctl show xenbr0
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              peth0
                                                        vif0.0


Which seems all well and good, until I start the domU, then they change to:

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1B:78:6E:67:16
          inet addr:10.74.154.200  Bcast:10.74.154.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:78ff:fe6e:6716/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5364 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1765 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:589948 (576.1 KiB)  TX bytes:251014 (245.1 KiB)

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:2211 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2211 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2467028 (2.3 MiB)  TX bytes:2467028 (2.3 MiB)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:6243 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1323 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:646776 (631.6 KiB)  TX bytes:184156 (179.8 KiB)
          Interrupt:16

tap0      Link encap:Ethernet  HWaddr D6:D9:8F:58:83:79
          inet6 addr: fe80::d4d9:8fff:fe58:8379/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:324 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3482 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:40371 (39.4 KiB)  TX bytes:424098 (414.1 KiB)

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:1770 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:253640 (247.6 KiB)  TX bytes:590008 ( 576.1 KiB)

vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

xenbr0    Link encap:Ethernet  HWaddr D6:D9:8F:58:83:79
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:3494 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:345978 (337.8 KiB)  TX bytes:0 (0.0 b)

# brctl show xenbr0
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.d6d98f588379       no              vif2.0
                                                        tap0
                                                        peth0
                                                        vif0.0


I don't know why it's changing the MAC address for xenbr0.  Should it be?  I don't even know where that new MAC address is coming from.  Also, the only thing resembling an error in any of the logs is in /var/log/messages (and dmesg):

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx>
device tap0 entered promiscuous mode
audit(1187835845.166 :5): dev=tap0 prom=256 old_prom=0 auid=4294967295
xenbr0: port 3(tap0) entering learning state
xenbr0: topology change detected, propagating
xenbr0: port 3(tap0) entering forwarding state
device vif2.0 entered promiscuous mode
audit(1187835846.434:6): dev=vif2.0 prom=256 old_prom=0 auid=4294967295
ADDRCONF(NETDEV_UP): vif2.0: link is not ready

and that's where it ends.  I'm pretty sure I should see a matching "vif2.0: link becomes ready" line, but it never shows up.

I'm frustrated enough to consider dropping Xen altogether.  If anyone has any idea what may be going on, I would greatly appreciate any help.

Regards,
James

_______________________________________________
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>