[Bug 352384] Re: can not add vlans to a bond network device

Stéphane Graber stgraber at stgraber.org
Thu Jan 12 15:39:51 UTC 2012


This has been fixed in Precise.

** Changed in: ifupdown (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/352384

Title:
  can not add vlans to a bond network device

Status in “ifupdown” package in Ubuntu:
  Fix Released

Bug description:
  I did this with Ubuntu Jaunty beta with all the updates as of
  3/31/2009.

  I have a computer with two nics and a switch that supports 802.3ad
  link aggregation (lag) and vlans.  I can use lag and I can use vlans
  with Ubuntu on the computer, but I can not use both with each other at
  the same time.  I know this is possible to do because it works fine
  with VMWare ESX Server on the computer with vlan trunking on top of
  802.3ad bonded nics.

  Setting up vlan trunking of vlans 101 and 102 works with this configuration in /etc/network/interfaces:
  ---
  auto eth0.101
  iface eth0.101 inet dhcp

  auto eth0.102
  iface eth0.102 inet dhcp
  ---

  Removing vlans and setting up 802.3ad link aggregation on the switch works with this configuration:
  ---
  auto bond0
  iface bond0 inet dhcp
       slaves all
       bond-mode 4
       bond-miimon 100
  ---

  But setting up vlan trunking on the switch over the lag device does not work with this configuration:
  ---
  auto bond0.101
  iface bond0.101 inet dhcp
       slaves all
       bond-mode 4
       bond-miimon 100
  ---

  When I bring up the device I get this error: "ERROR: trying to add
  VLAN #101 to IF -:bond0:- error: Operation not supported".  Some
  reading and googling around suggests that this error is because the
  vlan is trying to be created before the bond device is created.

  It would only make sense that you could combine the vlan and bonding
  configurations and have it work as expected.  This is a configuration
  that has huge advantages in a high-availability virtualization
  environment.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/352384/+subscriptions




More information about the foundations-bugs mailing list