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] Bridge configuration on Xen 3.2+

To: tournesol33 <tournesol33@xxxxxxxxx>
Subject: Re: [Xen-users] Bridge configuration on Xen 3.2+
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Thu, 10 Dec 2009 14:30:30 +0700
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 09 Dec 2009 23:31:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B208817.1040206@xxxxxxxxx>
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: <4B208817.1040206@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Dec 10, 2009 at 12:33 PM, tournesol33 <tournesol33@xxxxxxxxx> wrote:
> Hi All,
>
>     I'm using xen 3.0 on CentOS 5 with VLAN.
>
> #vconfig add eth0 100
> #/etc/xen/script/network-
> bridge start vifnum=1 netdev=eth0 bridge=xenbr0.100
>
> I know that after xen 3.2 the procedure of bridge configuration is changed.
> What is the correct command to set bridge interface to vlan?

"correct" is relative :D

The default xen networking bridge is designed to make it easier for
people who want to use bridged networking setup with as little change
to their existing environment as possible. It involves some fancy
techniques like interface renaming and changing of routes.

However, since people who use vlan on server usually have advanced
networking knowledge anyway, I'd recommend you setup bridges and vlans
using your OS networking scripts, and comment out network-script from
xend-config.sxp.

Here's what I use

# cat ifcfg-eth4
DEVICE=eth4
BOOTPROTO=none
HWADDR=00:23:7D:5E:1A:C0
ONBOOT=yes

# cat ifcfg-eth4.77
DEVICE=eth4.77
VLAN=yes
BOOTPROTO=none
ONBOOT=yes
BRIDGE=br77

# cat ifcfg-br77
DEVICE=br77
TYPE=Bridge
BOOTPROTO=none
ONBOOT=yes


These create a bridge called br77 on top of vlan 77 on top of eth4.
Since this interface is dedicated for domU traffic, I don't put an IP
address on br77. dom0 traffic goes through a different interface.

-- 
Fajar

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

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