H3C S3100-52P Command Manual

H3C S3100-52P Command Manual

Mstp
Hide thumbs Also See for S3100-52P:

Advertisement

Command Manual - MSTP
H3C S3100-52P Ethernet Switches
Chapter 1 MSTP Configuration Commands ............................................................................... 1-1
1.1 MSTP Configuration Commands ....................................................................................... 1-1
1.1.1 active region-configuration ...................................................................................... 1-1
1.1.2 bpdu-drop any ......................................................................................................... 1-2
1.1.3 check region-configuration ...................................................................................... 1-2
1.1.4 display stp ............................................................................................................... 1-4
1.1.5 display stp region-configuration .............................................................................. 1-6
1.1.6 instance ................................................................................................................... 1-7
1.1.7 region-name ............................................................................................................ 1-8
1.1.8 reset stp................................................................................................................... 1-9
1.1.9 revision-level ........................................................................................................... 1-9
1.1.10 stp........................................................................................................................ 1-10
1.1.11 stp bpdu-protection ............................................................................................. 1-11
1.1.12 stp bridge-diameter ............................................................................................. 1-12
1.1.13 stp compliance .................................................................................................... 1-13
1.1.14 stp config-digest-snooping .................................................................................. 1-14
1.1.15 stp cost ................................................................................................................ 1-16
1.1.16 stp edged-port ..................................................................................................... 1-17
1.1.17 stp interface......................................................................................................... 1-18
1.1.18 stp interface config-digest-snooping ................................................................... 1-19
1.1.19 stp interface cost ................................................................................................. 1-21
1.1.20 stp interface edged-port ...................................................................................... 1-22
1.1.21 stp interface loop-protection................................................................................ 1-23
1.1.22 stp interface mcheck ........................................................................................... 1-24
1.1.23 stp interface no-agreement-check....................................................................... 1-25
1.1.24 stp interface point-to-point................................................................................... 1-26
1.1.25 stp interface port priority...................................................................................... 1-27
1.1.26 stp interface root-protection ................................................................................ 1-28
1.1.27 stp interface transmit-limit ................................................................................... 1-29
1.1.28 stp loop-protection............................................................................................... 1-30
1.1.29 stp max-hops....................................................................................................... 1-31
1.1.30 stp mcheck .......................................................................................................... 1-32
1.1.31 stp mode.............................................................................................................. 1-33
1.1.32 stp no-agreement-check ..................................................................................... 1-34
1.1.33 stp pathcost-standard.......................................................................................... 1-35
1.1.34 stp point-to-point ................................................................................................. 1-37
1.1.35 stp port priority..................................................................................................... 1-38
1.1.36 stp priority............................................................................................................ 1-39

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading

Summary of Contents for H3C S3100-52P

  • Page 1: Table Of Contents

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Table of Contents Table of Contents Chapter 1 MSTP Configuration Commands ................1-1 1.1 MSTP Configuration Commands ..................1-1 1.1.1 active region-configuration ..................1-1 1.1.2 bpdu-drop any ......................1-2 1.1.3 check region-configuration ..................1-2 1.1.4 display stp .......................
  • Page 2 Command Manual – MSTP H3C S3100-52P Ethernet Switches Table of Contents 1.1.37 stp region-configuration..................1-40 1.1.38 stp root primary ....................1-41 1.1.39 stp root secondary....................1-42 1.1.40 stp root-protection ....................1-43 1.1.41 stp tc-protection....................1-44 1.1.42 stp timer forward-delay..................1-45 1.1.43 stp timer hello ......................
  • Page 3: Chapter 1 Mstp Configuration Commands

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Chapter 1 MSTP Configuration Commands 1.1 MSTP Configuration Commands 1.1.1 active region-configuration Syntax active region-configuration View MST region view Parameter None Description Use the active region-configuration command to activate the settings of a multiple spanning tree (MST) region.
  • Page 4: Bpdu-Drop Any

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands 1.1.2 bpdu-drop any Syntax bpdu-drop any undo bpdu-drop any View Ethernet port view Parameter None Description Use the bpdu-drop any command to enable the function of dropping BPDU packets on the Ethernet port.
  • Page 5 Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands View MST region view Parameter None Description Use the check region-configuration command to display the configuration information about the inactivated regions, including region name, revision level, and VLAN mapping table.
  • Page 6: Display Stp

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Field Description Region name The name of the MST region Revision level The revision level of the MST region VLAN-to-MSTI mappings in the MST Instance Vlans Mapped region 1.1.4 display stp...
  • Page 7 BPDUs, the RST BPDUs, and the MST BPDUs transmitted/received by each port. Related command: reset stp. Example # Display the state and statistical information about a spanning tree. <H3C> display stp instance 0 interface Ethernet 1/0/1 to Ethernet 1/0/4 brief MSTID Port Role...
  • Page 8: Display Stp Region-Configuration

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Field Description STP state on the port, which can be STP State forwarding and discarding. Protection Protection type of the port 1.1.5 display stp region-configuration Syntax display stp region-configuration...
  • Page 9: Instance

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Field Description Revision level The revision level of the MST region VLAN-to-STI mappings in the MST Instance Vlans Mapped region 1.1.6 instance Syntax instance instance-id vlan vlan-list...
  • Page 10: Region-Name

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Note that a VLAN cannot be mapped to multiple spanning tree instances at the same time. A VLAN-to-MSTI mapping is automatically removed if you map the VLAN to another spanning tree instance.
  • Page 11: Reset Stp

    If you do not specify the interface-list argument, this command clears the spanning tree statistics on all ports. Related command: display stp. Example # Clear the spanning tree statistics on Ethernet1/0/1 through Ethernet1/0/3. <H3C> reset stp interface Ethernet 1/0/1 to Ethernet 1/0/3 1.1.9 revision-level Syntax revision-level level undo revision-level...
  • Page 12: Stp

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Parameter level: MSTP revision level to be set for the switch. This argument ranges from 0 to 65,535. By default, the MSTP revision level of a switch is 0.
  • Page 13: Stp Bpdu-Protection

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands After MSTP is enabled, the actual operating mode, which can be STP-compatible mode, RSTP-compatible mode, or MSTP mode, is determined by the user-defined protocol mode. A switch becomes a transparent bridge if MSTP is disabled.
  • Page 14: Stp Bridge-Diameter

    [H3C] stp bpdu-protection Caution: As Gigabit ports of an S3100-52P Ethernet switch cannot be shut down, the BPDU protection function is not applicable to these ports even if you enable the BPDU protection function and specify these ports to be MSTP edge ports.
  • Page 15: Stp Compliance

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Use the undo stp bridge-diameter command to restore the network diameter to the default value. After you configure the network diameter of a switched network, MSTP adjusts its hello time, forward delay, and max age settings accordingly.
  • Page 16: Stp Config-Digest-Snooping

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands port to prevent network storm. A port shut down in this way can only be enabled again by the network administrator after login. With the MSTP packet format set to legacy, the port only processes and transmits MSTP packets in legacy format, thus implementing interconnection with the peer devices transmitting packets in legacy format.
  • Page 17 Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands According to IEEE 802.1s, two interconnected switches can interwork with each other through MSTIs in an MST region only when the two switches have the same MST region-related configuration.
  • Page 18: Stp Cost

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] interface Ethernet1/0/1 [H3C-Ethernet1/0/1] stp config-digest-snooping [H3C-Ethernet1/0/1] quit [H3C]stp config-digest-snooping 1.1.15 stp cost Syntax stp [ instance instance-id ] cost cost...
  • Page 19: Stp Edged-Port

    H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands System View: return to User View with Ctrl+Z. [H3C] interface ethernet1/0/3 [H3C-Ethernet1/0/3] stp instance 2 cost 200 1.1.16 stp edged-port Syntax stp edged-port { enable | disable } undo stp edged-port...
  • Page 20: Stp Interface

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Caution: Among loop prevention function, root protection function and edge port setting, only one can be valid on a port at one time. Example # Configure Ethernet1/0/1 as a non-edge port.
  • Page 21: Stp Interface Config-Digest-Snooping

    Related command: stp mode, and stp. Example # Enable MSTP on Ethernet1/0/1 in system view. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/1 enable 1.1.18 stp interface config-digest-snooping Syntax stp interface interface-list config-digest-snooping undo stp interface interface-list config-digest-snooping...
  • Page 22 The digest snooping feature is not applicable to edge ports in the MST region. Example # Enable the digest snooping feature on Ethernet1/0/1 in system view. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/1 config-digest-snooping 1-20...
  • Page 23: Stp Interface Cost

    Related command: stp cost. Example # Set the path cost of Ethernet1/0/3 in spanning tree instance 2 to 400 in system view. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp instance 2 interface Ethernet 1/0/3 cost 400 1-21...
  • Page 24: Stp Interface Edged-Port

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands 1.1.20 stp interface edged-port Syntax stp interface interface-list edged-port { enable | disable } undo stp interface interface-list edged-port View System view Parameter interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this argument in the form of interface-list = { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where &<1-10>...
  • Page 25: Stp Interface Loop-Protection

    Example # Configure Ethernet1/0/3 as an edge port in system view. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/3 edged-port enable 1.1.21 stp interface loop-protection Syntax stp interface interface-list loop-protection undo stp interface interface-list loop-protection...
  • Page 26: Stp Interface Mcheck

    Example # Enable the loop prevention function on Ethernet1/0/1. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/1 loop-protection 1.1.22 stp interface mcheck Syntax stp [ interface interface-list ] mcheck View...
  • Page 27: Stp Interface No-Agreement-Check

    MSTP, the upstream designated port fails to change their states rapidly. The rapid transition feature is developed on the H3C series switches to avoid this case. When a H3C series switch running MSTP is connected in the upstream direction to a...
  • Page 28: Stp Interface Point-To-Point

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Note: The rapid transition feature can be enabled on root ports or alternate ports only. You can enable the rapid transition feature on the designated port, however, the feature does not take effect on the port.
  • Page 29: Stp Interface Port Priority

    # Configure the link connected to Ethernet1/0/3 as a point-to-point link in system view. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/3 point-to-point force-true 1.1.25 stp interface port priority Syntax stp interface interface-list instance instance-id port priority priority...
  • Page 30: Stp Interface Root-Protection

    # Set the port priority of Ethernet1/0/3 in spanning tree instance 2 to 16. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/3 instance 2 port priority 16 1.1.26 stp interface root-protection Syntax stp interface interface-list root-protection...
  • Page 31: Stp Interface Transmit-Limit

    Example # Enable the root protection function on Ethernet1/0/1. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/1 root-protection 1.1.27 stp interface transmit-limit Syntax stp interface interface-list transmit-limit packetnum undo stp interface interface-list transmit-limit...
  • Page 32: Stp Loop-Protection

    Related command: stp transmit-limit. Example # Set the maximum transmitting speed of Ethernet1/0/3 to 15. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp interface Ethernet 1/0/3 transmit-limit 15 1.1.28 stp loop-protection Syntax stp loop-protection undo stp loop-protection...
  • Page 33: Stp Max-Hops

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Description Use the stp loop-protection command to enable the loop prevention function on the current port. Use the undo stp loop-protection command to restore the loop prevention function to the default state on the current port.
  • Page 34: Stp Mcheck

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Description Use the stp max-hops command to set the maximum hops for the MST region the current switch belongs to. Use the undo stp max-hops command to restore the maximum hops to the default value.
  • Page 35: Stp Mode

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands When a port on an MSTP-enabled upstream switch connects with an STP-enabled downstream switch, the port operates in the STP-compatible mode automatically. But when the STP-enabled downstream switch is then replaced by an MSTP-enabled switch, the port cannot automatically transit to the MSTP mode but still remains in the STP-compatible mode.
  • Page 36: Stp No-Agreement-Check

    RSTP in the way to implement rapid transition on designated ports. When a switch of this kind operates as the upstream switch of a H3C series switch running MSTP, the upstream designated port fails to change their states rapidly.
  • Page 37: Stp Pathcost-Standard

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands designated ports, instead of waiting for agreement packets from the upstream switch. This enables designated ports of the upstream switch to change their states rapidly. Related command: stp interface no-agreement-check.
  • Page 38 Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Table 1-4 Link speeds and the corresponding path costs Operating mode Proprietary Link speed 802.1D-1998 IEEE 802.1t standard (half-/full-dup lex) — 65,535 200,000,000 200,000 Half-duplex/F ull-duplex 200,000...
  • Page 39: Stp Point-To-Point

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands In this formula, the link speed is the sum of the speeds of the unblocked ports on the aggregated link, which is measured in 100 Kbps. Example # Configure to use the IEEE 802.1D-1998 standard to calculate the default path costs...
  • Page 40: Stp Port Priority

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands If an Ethernet port is the master port of aggregation ports or operates in full-duplex mode, the link connected to the port is a point-to-point link. You are recommended to let MSTP automatically determine the link types of ports.
  • Page 41: Stp Priority

    # Set the port priority of Ethernet1/0/3 in spanning tree instance 2 to 16. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] interface Ethernet1/0/3 [H3C-Ethernet1/0/3] stp instance 2 port priority 16 1.1.36 stp priority Syntax stp [ instance instance-id ] priority priority...
  • Page 42: Stp Region-Configuration

    Example # Set the bridge priority of the switch in spanning tree instance 1 to 4,096. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp instance 1 priority 4096 1.1.37 stp region-configuration Syntax stp region-configuration undo stp region-configuration...
  • Page 43: Stp Root Primary

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands 1.1.38 stp root primary Syntax stp [ instance instance-id ] root primary [ bridge-diameter bridgenum ] [ hello-time centi-seconds ] undo stp [ instance instance-id ] root...
  • Page 44: Stp Root Secondary

    4, and the hello time to 500 centiseconds. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp instance 1 root primary bridge-diameter 4 hello-time 500 1.1.39 stp root secondary Syntax...
  • Page 45: Stp Root-Protection

    5 and the hello time of the current switch to 300 centiseconds at the same time. <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] stp instance 4 root secondary bridge-diameter 5 hello-time 300 1.1.40 stp root-protection Syntax stp root-protection...
  • Page 46: Stp Tc-Protection

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands By default, the root protection function is disabled. Because of configuration errors or malicious attacks, the valid root bridge in the network may receive configuration BPDUs with their priorities higher than that of the root bridge, which causes new root bridge to be elected and network topology jitter to occur.
  • Page 47: Stp Timer Forward-Delay

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands A switch removes MAC address entries and ARP entries upon receiving TC-BPDUs. If a malicious user sends a large amount of TC-BPDUs to a switch in a short period, the switch may be busy in removing MAC address entries and ARP entries, which may decrease the performance of the switch and affect the stability of the network.
  • Page 48: Stp Timer Hello

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands As for the configuration of the three time-related parameters (namely, the hello time, forward delay, and max age parameters), the following formulas must be met to prevent frequent network jitter.
  • Page 49: Stp Timer Max-Age

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands As for the configuration of the three time-related parameters (namely, the hello time, forward delay, and max age parameters), the following formulas must be met to prevent frequent network jitter.
  • Page 50: Stp Timer-Factor

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands As for the configuration of the three time-related parameters (namely, the hello time, forward delay, and max age parameters), the following formulas must be met to prevent frequent network jitter: 2 ×...
  • Page 51: Stp Transmit-Limit

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands a period three times of the hello time and then initiates the spanning tree recalculation process. Spanning trees may be recalculated even in a steady network if an upstream switch is always busy.
  • Page 52: Vlan-Mapping Modulo

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] interface Ethernet1/0/1 [H3C-Ethernet1/0/1] stp transmit-limit 15 1.1.47 vlan-mapping modulo Syntax vlan-mapping modulo modulo View MST region view Parameter modulo: Modulo ranging from 1 to 16.
  • Page 53 Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 1 MSTP Configuration Commands Related command: check region-configuration, revision-level, region-name, and active region-configuration. Example # Map VLANs to spanning tree instances, with the modulo being 16. <H3C> system-view System View: return to User View with Ctrl+Z.
  • Page 54: Chapter 2 Bpdu Tunnel Configuration Commands

    Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 2 BPDU Tunnel Configuration Commands Chapter 2 BPDU Tunnel Configuration Commands 2.1 BPDU Tunnel Configuration Commands 2.1.1 vlan-vpn tunnel Syntax vlan-vpn tunnel undo vlan-vpn tunnel View System view Parameter None Description Use the vlan-vpn tunnel command to enable the BPDU Tunnel function for a switch.
  • Page 55 Command Manual – MSTP H3C S3100-52P Ethernet Switches Chapter 2 BPDU Tunnel Configuration Commands <H3C> system-view System View: return to User View with Ctrl+Z. [H3C] vlan-vpn tunnel...

Table of Contents