User Tools

Site Tools


arista:switch:stp_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arista:switch:stp_commands [2020/11/11 01:02] – created hvillanuevaarista:switch:stp_commands [2020/11/11 02:11] (current) hvillanueva
Line 208: Line 208:
  
 When loop protection is disabled (at the VLAN or interface level), the computed state of the interface is forgotten and packets queued to be sent are dropped. If an interface is err-disabled by loop protection, disabling loop protection removes the err-disable. When loop protection is disabled (at the VLAN or interface level), the computed state of the interface is forgotten and packets queued to be sent are dropped. If an interface is err-disabled by loop protection, disabling loop protection removes the err-disable.
 +
 +{{:arista:switch:stp_arista_20_-_hvillanueva.png?800|}}
 +
 +==== monitor loop-protection ====
 +
 +The monitor loop-protection command places the switch in loop-protection configuration mode.
 +
 +{{:arista:switch:stp_arista_21_-_hvillanueva.png?800|}}
 +
 +==== protect vlan ====
 +
 +The protect vlan command specifies which VLANs will participate in loop protection. The no protect vlan and default protect vlan commands remove loop protection from the specified VLANs.
 +
 +{{:arista:switch:stp_arista_22_-_hvillanueva.png?800|}}
 +
 +==== rate-limit ====
 +
 +The rate-limit command sets the maximum number of loop detection frames which can be sent by the switch per second. The no rate-limit and default rate-limit commands return the rate limit to the default value of 1000.
 +
 +{{:arista:switch:stp_arista_23_-_hvillanueva.png?800|}}
 +
 +==== shutdown (Loop-protection) ====
 +
 +The shutdown (Loop-protection) command disables loop protection globally. The feature is disabled by default, and is enabled by using the no shutdown (Loop-protection) command.
 +
 +**Note:** To function, loop protection must also be enabled on a per-VLAN basis using the protect vlan command.
 +
 +{{:arista:switch:stp_arista_24_-_hvillanueva.png?800|}}
 +
 +==== transmit-interval ====
 +
 +The transmit-interval command sets the interval at which loop detection packets are transmitted. The no transmit-interval and default transmit-interval commands restore the transmission interval to the default of 5 seconds.
 +
 +{{:arista:switch:stp_arista_25_-_hvillanueva.png?800|}}
 +
 +===== Spanning Tree Commands: Interface Configuration Mode =====
 +
 +==== spanning-tree bpdufilter ====
 +
 +The spanning-tree bpdufilter command controls bridge protocol data unit (BPDU) filtering on the configuration mode interface. BPDU filtering is disabled by default.
 +
 +•spanning-tree bpdufilter enabled enables BPDU filtering.
 +
 +•spanning-tree bpdufilter disabled disables BPDU filtering by removing the spanning-tree bpdufilter command from running-config.
 +
 +The BPDU filter default setting for portfast ports is configured by the spanning-tree edge-port bpdufilter default command; BPDU filter is disabled by default on all non-portfast ports.
 +
 +The no spanning-tree bpdufilter and default spanning-tree bpdufilter commands restore the global BPDU filter setting on the configuration mode interface by removing the corresponding spanning-tree bpdufilter command from running-config.
 +
 +{{:arista:switch:stp_arista_26_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree bpduguard ====
 +
 +The spanning-tree bpduguard command controls BPDU guard on the configuration mode interface. A BPDU guard-enabled port is disabled when it receives a BPDU packet.
 +
 +The BPDU guard default setting for portfast ports is configured by the spanning-tree edge-port bpduguard default command; BPDU guard is disabled by default on all non-portfast ports.
 +
 +The no spanning-tree bpduguard and default spanning-tree bpduguard commands restore the global BPDU guard setting on the configuration mode interface by removing the corresponding spanning-tree bpduguard command from running-config.
 +
 +{{:arista:switch:stp_arista_27_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree bpduguard rate-limit count (interface) ====
 +
 +The spanning-tree bpduguard rate-limit count command configures the maximum BPDU reception rate for the configuration mode interface. The default rate limit is specified by the spanning-tree bpduguard rate-limit count (global) command.
 +
 +BPDU rate limiting restricts the number of BPDUs that ports with BPDU guard or BPDU filter disabled can process during a specified interval. Ports discard BPDUs it receives in excess of the specified limit. BPDU rate limiting is enabled or disabled by spanning-tree bpduguard rate-limit enable / disable commands.
 +
 +The no spanning-tree bpduguard rate-limit count and default spanning-tree bpduguard rate-limit count commands restore the interface value to the global setting by removing the corresponding spanning-tree bpduguard rate-limit count command from running-config.
 +
 +{{:arista:switch:stp_arista_28_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree bpduguard rate-limit enable / disable ====
 +
 +These commands enable and disable BPDU rate limiting on the configuration mode interface:
 +
 +•spanning-tree bpduguard rate-limit enable enables BPDU rate limiting.
 +
 +•spanning-tree bpduguard rate-limit disable disables BPDU rate limiting.
 +
 +The spanning-tree bpduguard rate-limit default command enables BPDU rate limiting on all ports not configured with a spanning-tree bpduguard rate-limit command.
 +
 +BPDU rate limiting restricts the number of BPDUs that ports with BPDU guard or BPDU filter disabled can process during a specified interval. Ports discard BPDUs it receives in excess of the specified limit. BPDU rate limits are established by spanning-tree bpduguard rate-limit count (interface) commands.
 +
 +The no spanning-tree bpduguard rate-limit and default spanning-tree bpduguard rate-limit commands restore the global rate limit setting on the configuration mode interface by removing the corresponding spanning-tree bpduguard rate-limit command from running-config.
 +
 +{{:arista:switch:stp_arista_29_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree cost ====
 +
 +The spanning-tree cost command configures the path cost of the configuration mode interface. Cost values range from 1 to 200000000 (200 million). The default cost depends on the interface speed:
 +
 +•1 gigabit interface: cost = 20000
 +
 +•10 gigabit interface: cost = 2000
 +
 +The spanning-tree cost command provides a mode option:
 +
 +•RST instance cost is configured by not including a mode.
 +
 +•MST instance 0 cost is configured by not including a mode or with the mst mode option.
 +
 +•MST instance cost is configured with the mst mode option.
 +
 +•Rapid-PVST VLAN cost is configured with the vlan mode option.
 +
 +The no spanning-tree cost and default spanning-tree cost commands restore the default cost on the configuration mode interface by removing the corresponding spanning-tree cost command from running-config.
 +
 +{{:arista:switch:stp_arista_30_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree guard ====
 +
 +The spanning-tree guard command enables root guard or loop guard on the configuration mode interface. The spanning-tree guard loop default command configures the global loop guard setting.
 +
 +•Root guard prevents a port from becoming a root or blocked port. A root guard port that receives a superior BPDU transitions to the root-inconsistent (blocked) state.
 +
 +•Loop guard protects against loops resulting from unidirectional link failures on point-to-point links by preventing non-designated ports from becoming designated ports. When loop guard is enabled, a root or blocked port transitions to loop-inconsistent (blocked) state if it stops receiving BPDUs from its designated port. The port returns to its prior state when it receives a BPDU.
 +
 +The no spanning-tree guard and default spanning-tree guard commands sets the configuration mode interface to the global loop guard mode by removing the spanning-tree guard statement from running-config. The spanning-tree guard none command disables loop guard and root guard on the interface, overriding the global setting.
 +
 +{{:arista:switch:stp_arista_31_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree link-type ====
 +
 +The spanning-tree link-type command specifies the configuration mode interface’s link type, which is normally derived from the port’s duplex setting. The default setting depends on a port’s duplex mode:
 +
 +•full-duplex ports are point-to-point.
 +
 +•half-duplex ports are shared.
 +
 +The no spanning-tree link-type and default spanning-tree link-type commands restore the default link type on the configuration mode interface by removing the corresponding spanning-tree link-type command from running-config.
 +
 +{{:arista:switch:stp_arista_32_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree port-priority ====
 +
 +The spanning-tree port-priority command specifies the configuration mode interface’s port-priority number. The switch uses this number to determine which interface it places into forwarding mode when resolving a loop. Valid settings are all multiples of 16 between 0 and 240. Default value is 128. Ports with lower numerical priority values are selected over other ports.
 +
 +The no spanning-tree port-priority and default spanning-tree port-priority commands restore the default of 128 for the configuration mode interface by removing the spanning-tree port-priority command from running-config.
 +
 +The spanning-tree port-priority command provides a mode option:
 +
 +•RST instance port-priority is configured by not including a mode.
 +
 +•MST instance 0 port-priority is configured by not including a mode or with the mst mode option.
 +
 +•MST instance port-priority is configured with the mst mode option.
 +
 +•Rapid-PVST VLAN port-priority is configured with the vlan mode option.
 +
 +{{:arista:switch:stp_arista_33_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree portfast ====
 +
 +The spanning-tree portfast command programs configuration mode ports to immediately enter forwarding state when they establish a link. PortFast ports are included in spanning tree topology calculations and can enter discarding state. This command overrides the spanning-tree portfast auto command.
 +
 +The no spanning-tree portfast and default spanning-tree portfast commands remove the corresponding spanning-tree portfast command from running-config.
 +
 +{{:arista:switch:stp_arista_34_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree portfast auto ====
 +
 +The spanning-tree portfast auto command enables auto-edge detection on the configuration mode interface. When auto-edge detection is enabled, the port is configured as an edge port if it does not receive a new BPDU before the current BPDU expires. Auto-edge detection is enabled by default. The spanning-tree portfast command, when configured, has priority over this command.
 +
 +The no spanning-tree portfast auto command disables auto-edge port detection. This command is removed from running-config with the spanning-tree portfast auto and default spanning-tree portfast auto commands.
 +
 +{{:arista:switch:stp_arista_35_-_hvillanueva.png?800|}}
 +
 +==== spanning-tree portfast <port type> ====
 +
 +The spanning-tree portfast <port-type> command specifies the STP port mode for the configuration mode interface. Default port mode is normal.
 +
 +Port modes include:
 +
 +•Edge: Edge ports connect to hosts and transition to the forwarding state when the link is established. An edge port that receives a BPDU becomes a normal port.
 +
 +•Network: Network ports connect only to switches or bridges and support bridge assurance. Network ports that connect to hosts or other edge devices transition to the discarding state.
 +
 +•Normal: Normal ports function as normal STP ports and can connect to any type of device.
 +The no spanning-tree portfast <port-type> and default spanning-tree portfast <port-type> commands restore the default port mode of normal by removing the corresponding spanning-tree portfast <port-type> command from running-config.
 +
 +{{:arista:switch:stp_arista_36_-_hvillanueva.png?800|}}
 +
 +==== switchport backup-link ====
 +
 +The switchport backup-link command establishes a primary-backup configuration for forwarding VLAN traffic between the command mode interface and a specified interface. The show interfaces switchport backup-link command displays 
 +
 +the state of backup interface pairs on the switch:
 +
 +•the primary interface is the command mode interface.
 +
 +•the backup interface is the interface specified in the command.
 +
 +The following guidelines apply to primary and backup interfaces.
 +
 +•Ethernet and Port Channels can be primary interfaces.
 +
 +•Ethernet, Port Channel, Management, Loopback, and VLANs can be backup interfaces.
 +
 +•The primary and backup interfaces can be different interface types.
 +
 +•Interface pairs should be similarly configured to ensure consistent behavior.
 +
 +•An interface can be associated with a maximum of one backup interface.
 +
 +•An interface can back up a maximum of one interface.
 +
 +•Any Ethernet interface configured in an interface pair cannot be a port channel member.
 +
 +•The STP mode is backup.
 +
 +•Static MAC addresses should be configured after primary-backup pairs are established.
 +
 +When load balancing is not enabled, the primary and backup interfaces cannot simultaneously forward VLAN traffic. When the primary interface is forwarding VLAN traffic, the backup interface drops all traffic. If the primary interface fails, the backup interface forwards VLAN traffic until the primary interface is functional.
 +
 +The prefer vlan option balances the load across the primary and backup interfaces. When the command includes the prefer vlan option, each interface is the primary for a subset of the vlans carried by the pair. When both interfaces are up, prefer option vlans are forwarded on the backup interface and all other configured vlans are carried by the primary interface.
 +
 +The no switchport backup-link and default switchport backup-link commands remove the primary-backup configuration for the configuration mode interface.
 +
 +{{:arista:switch:stp_arista_37_-_hvillanueva.png?800|}}
 +
 +===== MST Configuration Commands =====
 +
 +==== abort (mst-configuration mode) ====
 +
 +The abort command, in MST-configuration mode, discards pending changes to the MST region configuration, then returns the switch to global configuration mode.
 +
 +The exit (mst-configuration mode) command saves MST region changes to running-config before returning the switch to global configuration mode.
 +
 +{{:arista:switch:stp_arista_38_-_hvillanueva.png?800|}}
 +
 +==== exit (mst-configuration mode) ====
 +
 +The exit command, in MST-configuration mode, saves changes to the MST region configuration, then returns the switch to global configuration mode. MST region configuration changes are also saved by entering a different configuration mode.
 +
 +{{:arista:switch:stp_arista_39_-_hvillanueva.png?800|}}
 +
 +==== instance ====
 +
 +The instance command inserts an entry into the VLAN-to-instance map that associates a set of VLANs to an MST instance. In addition to defining the MST topology, the VLAN-to-instance map is one of three parameters, along with the MST name and revision number, that identifies the switch’s MST region.
 +
 +The no instance command removes specified entries from the VLAN-to-instance map. If the command does not provide a VLAN list, all entries are removed for the specified instance. The no instance and default instance commands function identically.
 +
 +{{:arista:switch:stp_arista_40_-_hvillanueva.png?800|}}
 +
 +==== name (mst-configuration mode) ====
 +
 +The name command configures the MST region name. The name is one of three parameters, along with the MST revision number and VLAN-to-instance map, that identifies the switch’s MST region.
 +
 +The name has up to 32 characters. The default name is an empty string. The name string accepts all characters except the space.
 +
 +The no name and default name commands restore the default name by removing the name command from running-config.
 +
 +{{:arista:switch:stp_arista_41_-_hvillanueva.png?800|}}
 +
 +==== revision (mst-configuration mode) ====
 +
 +The revision command configures the MST revision number. The revision number is one of three parameters, along with the MST name and VLAN-to-instance map, that identifies the switch’s MST region. Revision numbers range from 0 to 65535. The default revision number is 0.
 +
 +The no revision and default revision commands restore the revision number to its default value by removing the revision command from running-config.
 +
 +{{:arista:switch:stp_arista_42_-_hvillanueva.png?800|}}
 +
 +==== show (mst-configuration mode) ====
 +
 +The show command displays the current and pending MST configuration:
 +
 +Exiting MST configuration mode stores all pending configuration changes to running-config.
 +
 +{{:arista:switch:stp_arista_43_-_hvillanueva.png?800|}}
 +
 +==== show (mst-configuration mode) ====
 +
 +The show command displays the current and pending MST configuration:
 +
 +Exiting MST configuration mode stores all pending configuration changes to running-config.
 +
 +{{:arista:switch:stp_arista_44_-_hvillanueva.png?800|}}
 +
 +===== Display Commands =====
 +
 +==== show spanning-tree ====
 +
 +The show spanning-tree command displays spanning tree protocol (STP) data, organized by instance.
 +
 +{{:arista:switch:stp_arista_45_-_hvillanueva.png?800|}}
 +
 +{{:arista:switch:stp_arista_46_-_hvillanueva.png?800|}}
 +
 +{{:arista:switch:stp_arista_47_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree bridge detail ====
 +
 +The show spanning-tree bridge detail command displays detailed MST information including MSTP-Rapid PVST+ interoperation status.
 +
 +{{:arista:switch:stp_arista_48_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree blockedports ====
 +
 +The show spanning-tree blockedports command displays the list of blocked (discarding) ports.
 +
 +{{:arista:switch:stp_arista_49_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree counters ====
 +
 +The show spanning-tree counters command displays the number of BPDU transactions on each interface running spanning tree.
 +
 +{{:arista:switch:stp_arista_50_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree instance ====
 +
 +The show spanning-tree instance command displays spanning tree protocol bridge configuration settings for each instance on the switch. The display includes Bridge ID, Hello Time, Max Age, and Forward Delay times.
 +
 +The command also displays the restartability of the STP agent when the detail option is selected. A switch can continue support of MLAG operation when its peer is offline and the STP agent is unavailable.
 +
 +{{:arista:switch:stp_arista_51_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree interface ====
 +
 +The show spanning-tree interface command displays spanning tree protocol information for the specified interface.
 +
 +{{:arista:switch:stp_arista_52_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree mst ====
 +
 +The show spanning-tree mst command displays configuration and state information for Multiple Spanning Tree Protocol (MST) instances.
 +
 +{{:arista:switch:stp_arista_53_-_hvillanueva.png?800|}}
 +
 +{{:arista:switch:stp_arista_54_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree mst configuration ====
 +
 +The show spanning-tree mst configuration command displays information about the MST region’s VLAN-to-instance mapping. The command provides two display options:
 +
 +•default displays a table that lists the instance to VLAN map.
 +
 +•digest displays the configuration digest.
 +
 +The configuration digest is a 16-byte hex string calculated from the md5 encoding of the VLAN-to-instance mapping table. Switches with identical mappings have identical digests.
 +
 +{{:arista:switch:stp_arista_55_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree mst interface ====
 +
 +The show spanning-tree mst interface command displays Multiple Spanning Tree Protocol (MSTP) information for a specified interface on the specified MST instances.
 +
 +{{:arista:switch:stp_arista_56_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree mst test information ====
 +
 +The show spanning-tree mst test information displays diagnostic spanning tree protocol information.
 +
 +{{:arista:switch:stp_arista_57_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree root ====
 +
 +The show spanning-tree root command displays the Bridge-ID, cost to the root bridge, root port, and the root bridge timer settings for all instances.
 +
 +{{:arista:switch:stp_arista_58_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree topology status ====
 +
 +The show spanning-tree topology status command displays the forwarding state of ports on the specified VLANs.
 +
 +{{:arista:switch:stp_arista_59_-_hvillanueva.png?800|}}
 +
 +{{:arista:switch:stp_arista_60_-_hvillanueva.png?800|}}
 +
 +==== show spanning-tree transmit active ====
 +
 +The show spanning-tree transmit active command displays spanning tree protocol bridge assurance information for network ports or for all ports. Bridge assurance-enabled ports will not necessarily be blocked when they link to a port where bridge assurance is not enabled, but if they do not receive periodic BPDUs from the other side of the link the show spanning-tree transmit active command will show a bridge assurance status of “inconsistent” (blocking) for that port.
 +
 +{{:arista:switch:stp_arista_61_-_hvillanueva.png?800|}}
 +
 +===== Clear Commands =====
 +
 +==== clear spanning-tree counters ====
 +
 +The clear spanning-tree counters command resets the BPDU counters for the specified interfaces to zero in all CLI sessions.
 +
 +{{:arista:switch:stp_arista_62_-_hvillanueva.png?800|}}
 +
 +==== clear spanning-tree counters session ====
 +
 +The clear spanning-tree counter session command resets the BPDU counters to zero on all interfaces in the current CLI session. Counters in other CLI sessions are not affected.
 +
 +{{:arista:switch:stp_arista_63_-_hvillanueva.png?800|}}
 +
 +==== clear spanning-tree detected-protocols ====
 +
 +The clear spanning-tree detected-protocols command restarts the spanning tree protocol (STP) migration state machine on the specified interfaces. The switch is reset to running rapid spanning tree protocol on an interface where it previously detected a bridge running an old version of the protocol.
 +
 +{{:arista:switch:stp_arista_64_-_hvillanueva.png?800|}}
 +
 + --- //[[ing.hvillanueva@gmail.com|Humberto Villanueva]] 2020/11/11 02:10//
arista/switch/stp_commands.1605074571.txt.gz · Last modified: 2020/11/11 01:02 by hvillanueva

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki