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] XEN 4.0 and dual interfaces

To: EredicatorX <eredicatorx@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] XEN 4.0 and dual interfaces
From: "Fajar A. Nugraha" <list@xxxxxxxxx>
Date: Wed, 10 Aug 2011 10:27:17 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 09 Aug 2011 20:28:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E41C3C2.3000002@xxxxxxxxxxxxxxx>
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: <4E41C3C2.3000002@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Aug 10, 2011 at 6:33 AM, EredicatorX
<eredicatorx@xxxxxxxxxxxxxxx> wrote:
> Short Version;
> Need documentation on second interface in for Xen4.0 on debian squeeze for
> hvm and paravirt domU's.
>
> Long Version;
>
> I am looking for something definitive on multi-network configurations in xen
> 4.0. I have tried both of these;
>
> http://wiki.debian.org/Xen#Dom0_.28host.29
> and
> http://searchservervirtualization.techtarget.com/tip/Creating-additional-Xen-virtual-network-bridges
>
> I can create the interface after it is booted with this command;
> ./network-bridge netdev=eth1 bridge=xenbr1 start

Not recommended. Like Todd said, better setup bridges manually,
something like 
http://wiki.debian.org/BridgeNetworkConnections#A.2BAC8-etc.2BAC8-network.2BAC8-interfaces_and_bridging

Create one bridge for each physical interface you need, with each
bridge (obviously) have one physical interface on "bridge_ports" line

> and it gives me a bridge;
>
> root@xen-07:/var/log/xen# brctl show
> bridge name    bridge id        STP enabled    interfaces
> eth0        8000.0026b9fedf98    no        peth0
> xenbr1        8000.0026b9fedf9a    no        peth1
>                                                                    tap7.0
>                                                                    vif7.0
>
> But my domU's can not see that interface.
>
> Finally on the xen wiki I found this but I am unsure what it means;
> vif = [ 'mac=00:16:5e:72:04:01,bridge=xenbr0,script=your_custom_script1',
> 'mac=00:16:5e:72:04:02,bridge=xenbr1,script=your_custom_script2' ]
>
> Mostly because I never get a xenbr0

Duh. Your brctl shows the bridge name is eth0, not xenbr0 :P

Some explanations on vif line:

vif = [
       'mac=00:16:5e:72:04:01,bridge=xenbr0,script=your_custom_script1',
       'mac=00:16:5e:72:04:02,bridge=xenbr1,script=your_custom_script2'
       ]

(1) note the two lines quoted by single quote? That means you're
creating two NICs for domU.
(2) "mac" is what you want that particular domU NIC's mac to be
(3) "bridge" is the name of the bridge on dom0 that the NIC will be attached to
(4) "script" is the script name that will be used to setup the NIC on
dom0. Usually you can just remove this section, as the default
vif-bridge script should work just fine.

Also try "xm create --help_config", and look for "vif=". That would
show all available options for vif line.

-- 
Fajar

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

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