Usage¶
You can manage bridges from Linux or from the fast path.
Managing bridges from Linux¶
The following Linux commands allow to manage bridge devices (assuming Linux - Fast Path Synchronization is started).
Loading required modules¶
Load required modules:
# modprobe bridge
Displaying information about a bridge device¶
# brctl show br0
Deleting a bridge device¶
# brctl delbr br0
Adding a port to the bridge¶
# brctl addif br0 eth0
Forcing promiscuity in the fast path¶
This feature is meant for Linux < 3.13.
# ip link set eth0 promisc on
Deleting a port from a bridge¶
# brctl delif br0 eth0
Managing bridges from the fast path¶
The fp-cli
commands below allow you to manage Fast Path Ethernet Bridge instances.
Setting port features from a bridge¶
Synopsis
bridge-port-set IFNAME [hairpin|learning|flooding <on|off>]
- IFNAME
- Name of the port interface.
Example
<fp-0> bridge-port-set eth0 hairpin on
eth0-vr0: master br0-vr0
state: forwarding
features: hairpin learning flooding
Displaying bridge interfaces¶
Synopsis
bridge
Example
<fp-0> bridge
Bridge interfaces:
br0-vr0:
eth0-vr0: master br0-vr0
state: forwarding
features: learning flooding
eth1-vr0: master br0-vr0
state: forwarding
features: learning flooding
Displaying a bridge interface’s FDB entry¶
Synopsis
bridge-fdb IFNAME
- IFNAME
- Name of the bridge interface.
Example
<fp-0> bridge-fdb br0
br0-vr0:
00:30:1b:b4:dc:87 eth0-vr0 local
00:50:fc:4c:88:e4 eth1-vr0
00:50:fc:62:ec:c6 eth1-vr0 local
00:30:1b:b4:df:94 eth0-vr0
Configuring the bridge FDB hitflags refresh policy¶
Synopsis
bridge-fdb-hitflags-set PERIOD MAX_SCANNED MAX_SENT
- PERIOD
- Period in seconds of FDB checking.
- MAX_SCANNED
- Maximum number of FDB entries to scan on a given period of time.
- MAX_SENT
- Maximum number of FDB entries to send over a given period of time.
Example
<fp-0> bridge-fdb-hitflags-set 30 2500 1600
Displaying bridge FDB hitflags parameters¶
Synopsis
hitflags [all|bridge-fdb|...]
- No parameter
- Display parameters for all categories.
- all
- Same as with no parameters.
- bridge-fdb
- Display bridge FDB hitlfags parameters.
Example
<fp-0> hitflags bridge-fdb
Bridge FDB hitflags
period_in_seconds: 30
max_scanned: 2500
max_sent: 1600