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

[Xen-users] Xen, CentOS5 and route setup

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen, CentOS5 and route setup
From: Sven Falk <xenusers@xxxxxxxxxx>
Date: Wed, 03 Oct 2007 13:42:58 +0200
Delivery-date: Wed, 03 Oct 2007 04:43:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Internet Messaging Program (IMP) H3 (4.1.3)
Hi,

I'm trying to get Xen in a route setup with CentOS5 both as dom0 and domU running. Bridge setup was working.

dom0
ip: 88.xxx.xx.151/27
gw: 88.xxx.xx.129

domU:
ip: 78.xx.xxx.114/32



dom0 ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:E0:4D:05:AA:70
          inet addr:88.xxx.xx.151  Bcast:88.xxx.xx.159  Mask:255.255.255.224
          inet6 addr: fe80::2e0:4dff:fe05:aa70/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39303 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34352 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14998793 (14.3 MiB)  TX bytes:17027615 (16.2 MiB)
          Interrupt:18 Base address:0x4000

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

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet addr:88.xxx.xx.151  Bcast:88.xxx.xx.151  Mask:255.255.255.255
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:384 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:69484 (67.8 KiB)  TX bytes:4881 (4.7 KiB)

dom0 route:

78.xx.xxx.114 dev vif1.0  scope link  src 88.xxx.xx.151
88.xxx.xx.128/27 dev eth0  proto kernel  scope link  src 88.xxx.xx.151
default via 88.xxx.xx.129 dev eth0

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
78.xx.xxx.114   0.0.0.0         255.255.255.255 UH    0      0        0 vif1.0
88.xxx.xx.128   0.0.0.0         255.255.255.224 U     0      0        0 eth0
0.0.0.0         88.xxx.xx.129   0.0.0.0         UG    0      0        0 eth0

domU config:
# Automatically generated xen config file
...
vif = [ 'ip=78.xx.xxx.114', ]
...

in the domU:
# Xen Virtual Ethernet
DEVICE=eth0
BOOTPROTO=static
IPADDR=78.xx.xxx.114
NETMASK=255.255.255.255
ONBOOT=yes


added
ip route add default dev eth0

manually on the domU, routing now:

ip route
default dev eth0  scope link

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 eth0

I can ping the dom0 from the domU and vice versa. But I can't access internet from the domU, a traceroute always stops at the dom0 ip.

ip_forward and proxyarp for ezh0 and vif1.0 are set.

Any idea?
Sven

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Xen, CentOS5 and route setup, Sven Falk <=