Advertisement
s243a

bridge link (iproute2)

Oct 4th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.49 KB | None | 0 0
  1. #http://www.pearltrees.com/s243a/bridge-link/id14846130
  2. Usage: bridge link set dev DEV [ cost COST ] [ priority PRIO ] [ state STATE ]
  3.                                [ guard {on | off} ]
  4.                                [ hairpin {on | off} ]
  5.                                [ fastleave {on | off} ]
  6.                                [ root_block {on | off} ]
  7.                                [ hwmode {vepa | veb} ]
  8.        bridge link show [dev DEV]
  9.  
  10. bridge link - bridge port         top
  11.  
  12.        link objects correspond to the port devices of the bridge.
  13.  
  14.        The corresponding commands set and display port status and bridge
  15.        specific attributes.
  16.  
  17.    bridge link set - set bridge specific attributes on a port
  18.        dev NAME
  19.               interface name of the bridge port
  20.  
  21.        cost COST
  22.               the STP path cost of the specified port.
  23.  
  24.        priority PRIO
  25.               the STP port priority. The priority value is an unsigned 8-bit
  26.               quantity (number between 0 and 255). This metric is used in
  27.               the designated port an droot port selectio algorithms.
  28.  
  29.        state STATE
  30.               the operation state of the port. This is primarily used by
  31.               user space STP/RSTP implementation. One may enter a lowercased
  32.               port state name, or one of the numbers below. Negative inputs
  33.               are ignored, and unrecognized names return an error.
  34.  
  35.               0 - port is DISABLED. Make this port completely inactive.
  36.  
  37.               1 - STP LISTENING state. Only valid if STP is enabled on the
  38.               brige. In this state the port for list for STP BPDUs and drop
  39.               all other traffic.
  40.  
  41.               2 - STP LEARNING state. Only valid if STP is enabled on the
  42.               bridge. In this state the port will accept traffic only for
  43.               the purpose of updating MAC adress tables.
  44.  
  45.               3 - STP FORWARDING state. Port is fully active.
  46.  
  47.               4 - STP BLOCKING state. Only valid if STP is enabled on the
  48.               bridge. This state is used during the STP election process. In
  49.               this state, port will only process STP BPDUs.
  50.  
  51.        guard on or guard off
  52.               Controls whether STP BPUDs will be processed by the bridge
  53.               port. By default, the flag is turned off allowed BPDU
  54.               processing. Turning this flag on will cause the port to stop
  55.               processing STP BPDUs.
  56.  
  57.        hairpin on or hairpin off
  58.               Controls whether traffic may be send back out of the port on
  59.               which it was received. By default, this flag is turned off and
  60.               the bridge will not forward traffic back out of the receiving
  61.               port.
  62.  
  63.        fastleave on or fastleave off
  64.               This flag allows the bridge to immediately stop multicast
  65.               traffic on a port that receives IGMP Leave message. It is only
  66.               used with IGMP snooping is enabled on the bridge. By default
  67.               the flag is off.
  68.  
  69.        root_block on or root_block off
  70.               Controls whether a given port is allowed to become root port
  71.               or not. Only used when STP is enabled on the bridge. By
  72.               default the flag is off.
  73.  
  74.        learning on or learning off
  75.               Controls whether a given port will learn MAC addresses from
  76.               received traffic or not. If learning if off, the bridge will
  77.               end up flooding any traffic for which it has no FDB entry. By
  78.               default this flag is on.
  79.  
  80.        learning_sync on or learning_sync off
  81.               Controls whether a given port will sync MAC addresses learned
  82.               on device port to bridge FDB.
  83.  
  84.        flooding on or flooding off
  85.               Controls whether a given port will flood unicast traffic for
  86.               which there is no FDB entry. By default this flag is on.
  87.  
  88.        hwmode Some network interface cards support HW bridge functionality
  89.               and they may be configured in different modes. Currently
  90.               support modes are:
  91.  
  92.               vepa - Data sent between HW ports is sent on the wire to the
  93.               external switch.
  94.  
  95.               veb - bridging happens in hardware.
  96.  
  97.        self   link setting is configured on specified physical device
  98.  
  99.        master link setting is configured on the software bridge (default)
  100.  
  101.    bridge link show - list bridge port configuration.
  102.        This command displays the current bridge port configuration and
  103.        flags.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement