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] Secondary IP's not working

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Secondary IP's not working
From: Michael Warner <admin@xxxxxxxxxx>
Date: Fri, 03 Jun 2005 04:02:11 -0600
Delivery-date: Fri, 03 Jun 2005 09:55:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: Mozilla Thunderbird 1.0.2 (X11/20050317)

I'm working with a centos4 guest os and am having some trouble with assigning multiple IP's to the guest. In the guest machine I have created the proper entries in /etc/sysconfig/network-scripts to bring the network up. Once booted I have a setup like this:

eth0 -
eth0:1 -

Now the problem is I can access the first IP from the outside world without a problem. But the second IP on eth0:1 does not work, when I try accessing it I get the domain0 machine instead of the guest. What I tried doing next is taking down eth0 and assigning to it like so:

ifconfig eth0 down
ifconfig eth0 up

I still could not access the IP. But if I initiate an outgoing connection (ie ping a domain) then immediately it starts working. So my question is how can I get several public IP's working while booting the guest? The guest configuration looks like this:

kernel = "/boot/vmlinuz-"
memory = 512
name = "guest"
nics = 1
vif = ['vifname=vps17519'];
disk = [ 'file:/opt/xen/vps17519/disk,sda1,w','file:/opt/xen/vps17519/swap,sda2,w' ]
root = "/dev/sda1 ro"

I start the domain by issueing this command:

xm create guest.cfg

Any help would be appreciated.


Xen-users mailing list

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