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] Problem with bridged network

To: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Subject: Re: [Xen-users] Problem with bridged network
From: Andrey Ovcharov <andrew.ovcharov@xxxxxxxxx>
Date: Thu, 1 Oct 2009 01:12:08 +0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 30 Sep 2009 14:13:36 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=EKCUL/LpFGl+nabza/TW+vToCKRq+3ft8OrP0MYkxsk=; b=JtVZM208Cn5yazmS8lGgFctIL7h26/HN4fXre9AiApAIzjXP+XJadwLnjT8oWbANmV NxmkXQARE2p2USjzCdQEnugyVTe5cceCKBD0+Xv9wx/9IOnnyxW/pT7/Lptf+gq/1nzJ 14Zpx0RRWDwQx+wveoR+0rzNLAgABFxO6L+fI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QwPF0PGgz3M8H5NV3cBV7JSMVWaYLtqdK9iQ0Q1336/bQGO/ikHKChE+OGpPQyb32j fsh+UUxfz5DysIqzpXqXTauwbMy0nMhpNzm5V/Wi3GNEFTBVnqV/wpFsxtwU3UuC1dTE lc7uspIQMVizFJyawC3RIezQqsHVDYadJsoGQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ed123fa30909301339y5be3a6fcq9ac9606c2ff02b03@xxxxxxxxxxxxxx>
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: <4AC3B812.4080306@xxxxxxxxx> <ed123fa30909301339y5be3a6fcq9ac9606c2ff02b03@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
dom0:

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:24:21:EF:30:68
         inet addr:188.40.117.2  Bcast:188.40.117.63  Mask:255.255.255.255
         inet6 addr: fe80::224:21ff:feef:3068/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:15 errors:0 dropped:0 overruns:0 frame:0
         TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:1318 (1.2 KiB)  TX bytes:7197 (7.0 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:0 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:0 (0.0 b)  TX bytes:0 (0.0 b)

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:12429 errors:0 dropped:0 overruns:0 frame:0
         TX packets:11193 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:914348 (892.9 KiB)  TX bytes:1344996 (1.2 MiB)
         Interrupt:249 Base address:0xc000

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:39 errors:0 dropped:0 overruns:0 frame:0
         TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:7521 (7.3 KiB)  TX bytes:1318 (1.2 KiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
         inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
         inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 b)  TX bytes:8356 (8.1 KiB)

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:24 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:5415 (5.2 KiB)  TX bytes:0 (0.0 b)

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

# cat centos
bootloader = "/usr/bin/pygrub"
memory = 256
name = "centos"
vif  = [ 'bridge=xenbr0' ]
disk = ['file:/srv/vm/centos.5-3.x86-64.img,sda1,w',
'file:/srv/vm/swap512.img,sda2,w']
root = "/dev/sda1"
extra = "fastboot"

And on domU:

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
#BOOTPROTO=dhcp
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
IPADDR=188.40.117.56
NETMASK=255.255.255.255

# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0

With best wishes, Andrew Ovcharov
(andrew.ovcharov@xxxxxxxxx)




On Thu, Oct 1, 2009 at 00:39, Grant McWilliams
<grantmasterflash@xxxxxxxxx> wrote:
> n Wed, Sep 30, 2009 at 12:57 PM, Andrew Ovcharov <andrew.ovcharov@xxxxxxxxx>
> wrote:
>>
>> Hello!
>>
>> I've got CentOS 5.3 x64 as dom0 and the same OS for domU. I've installed
>> it using the following manual: http://www.howtoforge.com/centos_5.0_xen
>> Guest image was taken from stacklet.com
>> Unfortunately, I can't make domU working with public static IP.
>> When I use bridged networking, the guest don't have network connection at
>> all.
>> When I use routed networking, the guest does not even start.
>> Virtual network works just fine, but I need to use public static IP given
>> by ISP.
>> Two days of google did not help at all.
>>
>> With best regards, Andrew
>>
>
> Can you give us some information:
>
>
> Output of ifconfig
> Output of brctl show
> Contents of the DomU config file
>
> Thanks
>
> Grant McWilliams
>
> Some people, when confronted with a problem, think "I know, I'll use
> Windows."
> Now they have two problems.
>

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