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] Create multiple IP on single interface

To: "ssaz" <zaxaz@xxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Create multiple IP on single interface
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Thu, 17 Mar 2011 11:03:48 +1100
Cc:
Delivery-date: Wed, 16 Mar 2011 17:05:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1300317466431-3808092.post@xxxxxxxxxxxxx>
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: <1300317466431-3808092.post@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvkMJ2QB7FOIRw3QPCDxX3+l5LUCwABb/lw
Thread-topic: [Xen-users] Create multiple IP on single interface
> 
> I have one physical eth0 interface on a server running xen. I need to
have
> two IP addresses bound to the physical interface at the server layer
(not
> vm). I basically want to do in Xen what would be referred to as a
virtual IP
> in unix/linux. I can do this at the RHEL os level via the following
> commands:
> 
> #ifconfig eth0 inet 192.168.177.25 netmask 255.255.255.0 up
> #ifconfig eth0:0 inet 10.68.177.25 netmask 255.255.255.0 up
> 
> This works fine before xen starts but once I start xen, the second
interface
> (0:0) gets dropped.
> 
> The reason I need this is to route db interconnect traffic over the
192
> network while routing the public traffic over the 10 network.
> 
> I don't understand how to accomplish this without xen stomping on it.
> 

Don't let xen automatically configure your network adapter. The
autoconfig stuff is great if you boot between xen and non-xen
configurations, but if you are always using xen just do it yourself.

Configure the bridge as part of your init (eg /etc/network/interfaces
under Debian) and put your IP addresses etc on that, and then comment
out any reference to 'network-script' in /etc/xen/xend-config.sxp.

James


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

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