Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
9.5. Ethernet Bridge Configuration Using iproute
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.