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/
Home Products Support Community News


[Xen-users] routing problem in network-route mode

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] routing problem in network-route mode
From: "Alexey Koptsevich" <akopts@xxxxxxxxx>
Date: Mon, 18 Sep 2006 08:04:07 -0400
Delivery-date: Mon, 18 Sep 2006 05:04:57 -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=GOUsAZUVXCt4pIRhoGHJuPKNrO5e1G1yqj1yvX8XAvaxleiYG9hxkEVmRQpf2GzVjTj/2uHRqjqLMsy0q6nlh3uVnBL40UFNZEMV7bDWZ0OOwVfoeHhorlUBmGkxVEzDkH0vf9w/IA2kMOz7mT3NAdoYHRxScLutWYHb2x/5gyk=
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

[ Sorry for second posting, I see the previous one was erroneously
associated with
the previous thread with the same subject in the archive ]

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=,mac=00:16:3e:00:00:01' ]
netmask = ""
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 netmask
route add default dev eth0

I am able to ping domU ( 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,

Xen-users mailing list

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