Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #http://www.pearltrees.com/s243a/bridge-link/id14846130
- Usage: bridge link set dev DEV [ cost COST ] [ priority PRIO ] [ state STATE ]
- [ guard {on | off} ]
- [ hairpin {on | off} ]
- [ fastleave {on | off} ]
- [ root_block {on | off} ]
- [ hwmode {vepa | veb} ]
- bridge link show [dev DEV]
- bridge link - bridge port top
- link objects correspond to the port devices of the bridge.
- The corresponding commands set and display port status and bridge
- specific attributes.
- bridge link set - set bridge specific attributes on a port
- dev NAME
- interface name of the bridge port
- cost COST
- the STP path cost of the specified port.
- priority PRIO
- the STP port priority. The priority value is an unsigned 8-bit
- quantity (number between 0 and 255). This metric is used in
- the designated port an droot port selectio algorithms.
- state STATE
- the operation state of the port. This is primarily used by
- user space STP/RSTP implementation. One may enter a lowercased
- port state name, or one of the numbers below. Negative inputs
- are ignored, and unrecognized names return an error.
- 0 - port is DISABLED. Make this port completely inactive.
- 1 - STP LISTENING state. Only valid if STP is enabled on the
- brige. In this state the port for list for STP BPDUs and drop
- all other traffic.
- 2 - STP LEARNING state. Only valid if STP is enabled on the
- bridge. In this state the port will accept traffic only for
- the purpose of updating MAC adress tables.
- 3 - STP FORWARDING state. Port is fully active.
- 4 - STP BLOCKING state. Only valid if STP is enabled on the
- bridge. This state is used during the STP election process. In
- this state, port will only process STP BPDUs.
- guard on or guard off
- Controls whether STP BPUDs will be processed by the bridge
- port. By default, the flag is turned off allowed BPDU
- processing. Turning this flag on will cause the port to stop
- processing STP BPDUs.
- hairpin on or hairpin off
- Controls whether traffic may be send back out of the port on
- which it was received. By default, this flag is turned off and
- the bridge will not forward traffic back out of the receiving
- port.
- fastleave on or fastleave off
- This flag allows the bridge to immediately stop multicast
- traffic on a port that receives IGMP Leave message. It is only
- used with IGMP snooping is enabled on the bridge. By default
- the flag is off.
- root_block on or root_block off
- Controls whether a given port is allowed to become root port
- or not. Only used when STP is enabled on the bridge. By
- default the flag is off.
- learning on or learning off
- Controls whether a given port will learn MAC addresses from
- received traffic or not. If learning if off, the bridge will
- end up flooding any traffic for which it has no FDB entry. By
- default this flag is on.
- learning_sync on or learning_sync off
- Controls whether a given port will sync MAC addresses learned
- on device port to bridge FDB.
- flooding on or flooding off
- Controls whether a given port will flood unicast traffic for
- which there is no FDB entry. By default this flag is on.
- hwmode Some network interface cards support HW bridge functionality
- and they may be configured in different modes. Currently
- support modes are:
- vepa - Data sent between HW ports is sent on the wire to the
- external switch.
- veb - bridging happens in hardware.
- self link setting is configured on specified physical device
- master link setting is configured on the software bridge (default)
- bridge link show - list bridge port configuration.
- This command displays the current bridge port configuration and
- flags.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement