10.6. VLAN on Bond and Bridge Using ip Commands

download PDF
To use VLANs over bonds and bridges, proceed as follows:
  1. Add a bond device as root:
    # ip link add bond0 type bond
    # ip link set bond0 type bond miimon 100 mode active-backup
    # ip link set em1 down
    # ip link set em1 master bond0
    # ip link set em2 down
    # ip link set em2 master bond0
    # ip link set bond0 up
  2. Set VLAN on the bond device:
    # ip link add link bond0 name bond0.2 type vlan id 2
    # ip link set bond0.2 up
  3. Add the bridge device and attach VLAN to it:
    # ip link add br0 type bridge
    # ip link set bond0.2 master br0
    # ip link set br0 up
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.