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] routing problem

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] routing problem
From: "Alexey Koptsevich" <akopts@xxxxxxxxx>
Date: Mon, 18 Sep 2006 02:17:26 -0400
Delivery-date: Sun, 17 Sep 2006 23:18:05 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cmGooQSP1Ipg3wTLjdIp8kvJ4vCrrxwm15lFziG0Gy6IWeQ8DejjglZpCishDeQqXPqWHTHC+aVZ9FguELSHW1CNGcz4abK1RiNLtoyN/dWZmShe0GI372hkLbLzs4cZQI6BfbG7XjgfBc88xK3L05TCrGIIl8kZsSszCOBQBQU=
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
Hello,

I have a server running Xen 3.0.2. It has 3 ethernet cards: eth0 is
behind a DSL
router in network 192.168.1, eth1 is connected to LAN 192.168.5, eth2
is used for
something else, unrelated to my question. DomUs host virtual servers on
192.168.4, and I want to make dom0 a firewall for virtual servers and
for internal
network. I am trying to use routing setup of Xen but cannot make it work.

The configuration for test domU is

kernel  = "/boot/vmlinuz-2.6.16-xen"
memory  = 256
name    = "tst"
disk    = [ 'phy:sda5,hda1,w', 'phy:sda6,hda2,w' ]
vif     = [ 'ip=192.168.4.200,mac=00:16:3e:00:00:01' ]
netmask = "255.255.255.0"
dhcp    = "off"
hostname = "tst"
root    = "/dev/hda1 ro"
extra   = "4"

Whether I configure networking for domU in /etc/network/interfaces or
not, domU is brought up with eth0 down (but routing to its IP gets added to
dom0's routing table). If I manually configure domU's network by

ifconfig eth0 inet 192.168.4.200 netmask 255.255.255.0
route add default dev eth0

I am able to ping domU (192.168.4.200) from dom0 (192,168.1.111)
and vice versa, but I cannot ping anything outside the server from domU.
Am I missing something obvious in routing setup?

Is there a way to configure domU's networking via configs?
Standard way does not seem to work. I do not mind to put the above
commands to rc.local, but is there better way?

The system is running Ubuntu 6.06 LTS with kernel 2.6.16 installed from
Dapper packages. Both /proc/sys/net/ipv4/conf/eth0/proxy_arp and
/proc/sys/net/ipv4/ip_forward are set to 1.

Thanks a lot,
Alex

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

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