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] debian wheezy interface bonding (dom0) / xen 4.1.2*

Subject: Re: [Xen-users] debian wheezy interface bonding (dom0) / xen 4.1.2*
From: Dmitriy Sirant <sirantd@xxxxxxxxx>
Date: Mon, 29 Aug 2011 10:03:16 +0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 29 Aug 2011 08:42:12 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:x-mailer; bh=Yjm/WTNzqRpp4EG3edpf1wjykkVNANqF7qmnTkkZKKM=; b=ULnsNmfX+yew8mCI6b057jjD8EBkZgB3RUdgBqn8tPu2J9YZBJalOhzZlRLH/1mEer jWq01HUQCL8jhsnTvtE6sfBxEWt+t3/IXj9qp0XY0odCNycPVpwBoWMXXfYfe7uhNhzc fyMtyrP/maGFNgA47ZwP+4utCK1XqsNPb1Bvg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E5AAFD1.6010603@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: <4E595E99.8050405@xxxxxxxxxxxxxxxxxxxxxx> <20110828101821.GW32373@xxxxxxxxxxx> <4E5A814A.1090101@xxxxxxxxxxxxxxxxxxxxxx> <4E5AAFD1.6010603@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Here my working config from Debian Squeezy, but it's also support vlans.

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto bond0
iface bond0 inet manual
    slaves eth0 eth1
    bond_mode 802.3ad
    bond_miimon 100
    bond_downdelay 200
    bond_updelay 200
    pre-up /bin/ip link set eth0 mtu 9000
    pre-up /bin/ip link set eth1 mtu 9000
    up /bin/ip link set bond0 mtu 9000

auto vlan114
iface vlan114 inet manual
    vlan_raw_device bond0
    up /bin/ip link set vlan114 mtu 9000

auto br0
iface br0 inet static
    bridge_ports bond0
    address 192.168.132.250
    netmask 255.255.255.0
    network 192.168.132.0
#    gateway 192.168.132.254
    dns-nameservers 192.168.132.254
    dns-search xxx.xxx
    bridge_stp on
    bridge_fd 0
    up /bin/ip link set br0 mtu 9000

auto br114
iface br114 inet static
    bridge_ports vlan114
    address 193.xxx.xxx.xxx
    netmask 255.255.255.xxx
    network 193.xxx.xxx.xxx
    gateway 193.xxx.xxx.xxx
    dns-search xxx.xxx
    bridge_stp on
    bridge_fd 0
    up /bin/ip link set br114 mtu 9000

After that in xen i use:
vif         = [ 
'model=e1000,mac=00:16:3E:CA:75:9C,bridge=br0','model=e1000,mac=00:16:3E:CA:75:9D,bridge=br114'
 ]

br0 for local lan and br114 for external wan.

-- 

With best regards,
Dmitriy Sirant


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