Search

9.5. Ethernet Bridge Configuration Using iproute

download PDF
The iproute package can be used as an alternative to the bridge-utils. It allows to set bridge port options such as priority, cost or state.
To set port options for an interface enp1s0 assigned to a bridge device, using the ip utility, issue the following command as root:
~]# ip link set enp1s0 type bridge_slave option
To select the available options, using the ip utility, issue the following command as root:
~]# ip link help bridge_slave
      Usage: ... bridge_slave [ state STATE ] [ priority PRIO ] [cost COST ]
                          [ guard {on | off} ]
                          [ hairpin {on | off} ]
                          [ fastleave {on | off} ]
                          [ root_block {on | off} ]
                          [ learning {on | off} ]
                          [ flood {on | off} ]
For more details on the port options, see the ip-link(8) man page.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

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.