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] Multiple IP addresses

To: Ian Tobin <itobin@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Multiple IP addresses
From: John Smith <netman1@xxxxxxx>
Date: Sat, 07 Oct 2006 15:51:49 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 07 Oct 2006 06:41:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E0E43F8F0962AD4C8A1D6CE8ED5EDE3F04B4F9@xxxxxxxxxxxxxxxxxxxxxx>
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>
References: <E0E43F8F0962AD4C8A1D6CE8ED5EDE3F04B4F9@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.2 (X11/20060830)
Ian Tobin wrote:
> Hello,
>  
> does anybody how to add a second IP address to a domU?
>  
> thanks
>  
> Ian

Ian,

        assuming you want to add that to a second
interface, you need to create a second bridge. See the
config file parts below.

Sincerely,

Jan.

===========================================
/etc/xen/xend-config.sxp:
===========================================

(network-script 'my-network-bridge')

===========================================
/etc/xen/scripts/my-network-bridge:
===========================================

#!/bin/sh
# start bridges on both eth0 and eth1

XENDIR="/etc/xen/scripts"

$XENDIR/network-bridge "$@" netdev=eth0 bridge=xenbr0 vifnum=0
$XENDIR/network-bridge "$@" netdev=eth1 bridge=xenbr1 vifnum=1

===========================================
vm1.cfg:
===========================================

...
vif = [ 'mac=aa:00:01:00:10:08,bridge=xenbr0', 
'mac=aa:00:01:00:10:07,bridge=xenbr1' ]
dhcp    = "off"
...

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

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