[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] VLAN>2NIC>Bond>Bridge


  • To: xen-users@xxxxxxxxxxxxx
  • From: Alexandre Kouznetsov <alk@xxxxxxxxxx>
  • Date: Wed, 16 Jul 2014 09:09:36 -0500
  • Delivery-date: Wed, 16 Jul 2014 14:10:29 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hello.

El 15/07/14 11:24, mad Engineer escribió:
Which method is the proper way to create multiple VLAN on single
interface and bridging it.

Example 1, eth0 is a trunk port to VLAN 11 and 12, while eth1 is a trunk port to VLAN 13 and 14.

auto xenbr11
iface xenbr11 inet manual
  address XX.XX.XX.XX
  netmask 255.255.255.0
  gateway XX.XX.XX.XX
  bridge_ports eth0.11
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0

auto xenbr12
iface xenbr12 inet manual
  bridge_ports eth0.12
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0

auto xenbr13
iface xenbr13 inet manual
  bridge_ports eth1.13
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0

auto xenbr14
iface xenbr14 inet manual
  bridge_ports eth1.14
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0


Example 2, eth0 and eth1 are bonded and the bond is used as trunk for VLAN 11,12,13,14:

auto bond0
iface bond0 inet manual
  slaves eth0 eth1
  bond_miimon 100
  bond_updelay 100
  bond_downdelay 200
  bond_mode 802.3ad
# make sure to have the right bond_mode

auto xenbr11
iface xenbr11 inet manual
  address XX.XX.XX.XX
  netmask 255.255.255.0
  gateway XX.XX.XX.XX
  bridge_ports bond0.11
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0

auto xenbr12
iface xenbr12 inet manual
  bridge_ports bond0.12
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0

auto xenbr13
iface xenbr13 inet manual
  bridge_ports bond0.13
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0

auto xenbr14
iface xenbr14 inet manual
  bridge_ports bond0.14
  bridge_stp off
  bridge_maxwait 0
  bridge_fd 0


Note: no individual ethX or ethX.NN setup. The reference in the bond and bridge sections is enough.
The Dom0 IP is set up on the bridge, not on the ethX port not on the bond.

Greetings.

--
Alexandre Kouznetsov

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.