H3C S9500 Series Operation Manual
H3C S9500 Series Operation Manual

H3C S9500 Series Operation Manual

Routing switches
Hide thumbs Also See for S9500 Series:

Advertisement

Quick Links

Operation Manual - MSTP
H3C S9500 Series Routing Switches
Chapter 1 MSTP Configuration .................................................................................................... 1-1
1.1 Introduction to MSTP ......................................................................................................... 1-1
1.1.1 MSTP Concepts ...................................................................................................... 1-1
1.1.2 How MSTP Works ................................................................................................... 1-6
1.1.3 MSTP Implementation on the Switch .................................................................... 1-11
1.2 MSTP Configuration Tasks.............................................................................................. 1-12
1.2.1 Configuring the MST Region for a Switch............................................................. 1-13
1.2.3 Configuring the MSTP Running Mode .................................................................. 1-16
1.2.4 Configuring the Bridge Priority for a Switch .......................................................... 1-17
1.2.5 Configuring the Max Hops in an MST Region....................................................... 1-17
1.2.6 Configuring the Switched Network Diameter ........................................................ 1-18
1.2.7 Configuring the Time Parameters of a Switch ...................................................... 1-19
1.2.8 Setting the Timeout Factor of a Specific Bridge.................................................... 1-20
1.2.9 Configuring the Max Transmission Speed on a Port ............................................ 1-21
1.2.10 Configuring a Port as an Edge Port or Non-edge Port ....................................... 1-22
1.2.11 Configuring the Path Cost of a Port .................................................................... 1-23
1.2.12 STP Path Cost Calculation Standards on STP port............................................ 1-24
1.2.13 Configuring the Priority of a Port ......................................................................... 1-25
1.2.14 Configuring Whether a Port Is on a Point-to-Point Link ...................................... 1-26
1.2.15 Configuring the mCheck Variable of a Port......................................................... 1-28
1.2.17 Configuring the Switch Protection Functions ...................................................... 1-29
1.2.18 Enabling/Disabling MSTP on the Device ............................................................ 1-33
1.2.20 Enabling Single-Port Loop Detection .................................................................. 1-35
1.2.22 Configuring Digest Snooping .............................................................................. 1-36
1.2.23 Configuring Fast State Transition........................................................................ 1-38
1.3 Displaying and Debugging MSTP.................................................................................... 1-41
1.4 Typical MSTP Configuration Examples ........................................................................... 1-43
1.4.1 Typical MSTP Configuration Example .................................................................. 1-43
1.4.2 MSTP Hybrid Networking Configuration Example ................................................ 1-45

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S9500 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for H3C S9500 Series

  • Page 1: Table Of Contents

    Operation Manual – MSTP H3C S9500 Series Routing Switches Table of Contents Table of Contents Chapter 1 MSTP Configuration ....................1-1 1.1 Introduction to MSTP ......................1-1 1.1.1 MSTP Concepts ...................... 1-1 1.1.2 How MSTP Works ....................1-6 1.1.3 MSTP Implementation on the Switch ..............1-11 1.2 MSTP Configuration Tasks....................
  • Page 2: Chapter 1 Mstp Configuration

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Chapter 1 MSTP Configuration When configuring MSTP, go to these sections for the information you are interested in: Introduction to MSTP MSTP Configuration Tasks Displaying and Debugging MSTP Typical MSTP Configuration Examples 1.1 Introduction to MSTP...
  • Page 3 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Figure 1-1 Basic MSTP concepts I. MST region Multiple Spanning Tree Regions: A multiple spanning tree region contains several switches and the network segments between them. These MSTP switches share the same region name, VLAN-spanning tree mapping configuration, and MSTP revision level configuration, and are connected directly.
  • Page 4 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Tree (CIST) for the entire switching network. The IST in a MST region is a fragment of the CIST. For example, every MST region in Figure 1-1 has an IST, which is a fragment of CIST.
  • Page 5 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration The root port is the one through which the data are forwarded to the root. The designated port is the one through which the data are forwarded to the downstream network segment or switch.
  • Page 6 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration MSTP modules communicate with each other among bridges by MSTP BPDU packets. The following figure shows the MSTP BPDU packet format: Figure 1-3 MSTP BPDU packet format...
  • Page 7: How Mstp Works

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration The second and third bits together indicate MSTP port role. TC packet A TC packet is also an MSTP BPDU packet, but the lowest bit of its flags field is set to 1, which endows the TC packet with special meaning.
  • Page 8 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Classification Designated bridge Designated port The port through which The device responsible for the designated bridge For a LAN forwarding BPDUs to this LAN forwards BPDUs to this...
  • Page 9 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration To facilitate the descriptions, only the first four parts of the configuration BPDU are described in the example. They are root ID (expressed as switch priority), path cost to the root, designated bridge ID (expressed as switch priority) and the designated port ID (expressed as the port number).
  • Page 10 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Determine the root and designated ports, and update the configuration BPDU of designated ports. The port receiving the optimum configuration BPDU is designated to be the root port, whose configuration BPDU remains unchanged.
  • Page 11 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Then, all the designated ports of Switch B transmit the configuration BPDUs regularly. Switch C: CP2 receives from the BP2 of Switch B the configuration BPDU {1, 0, 1, BP2} that has not been updated and then the updating process is launched.
  • Page 12: Mstp Implementation On The Switch

    MSTP is compatible with STP and RSTP. The MSTP switch can recognize both the STP and RSTP packets and calculate the spanning tree with them. Besides the basic MSTP functions, H3C Ethernet Switch Series also provide some features easy to manage from users’ point of view. These features include root bridge hold, secondary root bridge, ROOT protection, BPDU protection, loop protection, hot swapping of the interface boards, master/slave switchover, and so on.
  • Page 13: Mstp Configuration Tasks

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration 1.2 MSTP Configuration Tasks MSTP configuration tasks include: Configuring the MST Region for a Switch Specifying the Switch as a Primary or a Secondary Root bridge Configuring the MSTP Running Mode...
  • Page 14: Configuring The Mst Region For A Switch

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration 1.2.1 Configuring the MST Region for a Switch Which MST region a switch belongs to is determined with the configurations of the region name, VLAN mapping table, and MSTP revision level. You can perform the following configurations to put a switch into an MST region.
  • Page 15 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration A user manually activates the configured parameters related to the MST region, using the active region-configuration command. A user enables MSTP using the stp enable command. By default, the MST region name is the switch MAC address, all the VLANs in the MST region are mapped to the STI 0, and the MSTP region revision level is 0.
  • Page 16: Specifying The Switch As A Primary Or A Secondary Root Bridge

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration To do... Use the command... Manually activate the MST region configuration active region-configuration Exit MST region view quit 1.2.2 Specifying the Switch as a Primary or a Secondary Root bridge MSTP can determine the spanning tree root through calculation.
  • Page 17: Configuring The Mstp Running Mode

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration When configuring the primary and secondary switches, you can also configure the network diameter and hello time of the specified switching network. For detailed information, refer to section...
  • Page 18: Configuring The Bridge Priority For A Switch

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration automatically transit back to MSTP mode after the STP switch is removed. In this case, you can execute the stp mcheck command to restore the MSTP mode.
  • Page 19: Configuring The Switched Network Diameter

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Perform the following configuration in system view. Table 1-9 Configure the max hops in an MST region To do... Use the command... Configure the max hops in an MST region...
  • Page 20: Configuring The Time Parameters Of A Switch

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Note: The stp bridge-diameter command configures the switched network diameter and determines the three MSTP time parameters (Hello Time, Forward Delay, and Max Age) accordingly. 1.2.7 Configuring the Time Parameters of a Switch The switch has three time parameters, Forward Delay, Hello Time, and Max Age.
  • Page 21: Setting The Timeout Factor Of A Specific Bridge

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Every switch on the switching network adopts the values of the time parameters configured on the root bridge of the CIST. Caution: The Forward Delay configured on a switch depends on the switching network diameter.
  • Page 22: Configuring The Max Transmission Speed On A Port

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration busy. In this case, you can set the timeout interval to a bigger value to avoid this kind of unwanted recalculation. You can use the following command to set the multiple value of hello time of a specified bridge.
  • Page 23: Configuring A Port As An Edge Port Or Non-Edge Port

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Table 1-14 Configure the max transmission speed on a port To do... Use the command... Configure the max transmission speed on a port stp transmit-limit packetnum Restore the default max transmission speed on a...
  • Page 24: Configuring The Path Cost Of A Port

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Table 1-16 Configure a port as an edge port or a non-edge port To do... Use the command... Configure a port as an edge port stp edged-port enable...
  • Page 25: Stp Path Cost Calculation Standards On Stp Port

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration I. Configuration in system view Perform the following configuration in system view. Table 1-17 Configure the path cost of a port To do... Use the command... stp interface interface-list [ instance...
  • Page 26: Configuring The Priority Of A Port

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Table 1-19 Port rates and corresponding path costs Legacy Port rate Duplex status 802.1D-1998 IEEE 802.1t standard — 65535 200,000,000 200,000 Half-Duplex 2,000,000 2,000 Full-Duplex 2,000,000 2,000...
  • Page 27: Configuring Whether A Port Is On A Point-To-Point Link

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration different priorities in different STIs and plays different roles respectively. Thus the traffic from different VLANs can run over different physical links, thereby implementing the VLAN-based load-balancing.
  • Page 28 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Table 1-23 Configure all ports as being (being not) on point-to-point links To do... Use the command... Configure all ports as being on point-to-point stp interface interface-list...
  • Page 29: Configuring The Mcheck Variable Of A Port

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration This configuration takes effect on the CIST and all the MSTIs. Note that a temporary loop may be introduced if you configure a port as being on a point-to-point link by force while it is physically not.
  • Page 30: Configuring The Function Of Clearing Dynamic Arp Entries

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Table 1-26 Configure the mCheck variable of a port To do... Use the command... Perform mCheck operation on a port stp mcheck You can configure mCheck variable on a port with either of the earlier-mentioned measures.
  • Page 31 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration II. Root protection The primary and secondary root bridges of the spanning tree, especially those of CIST, shall be located in the same region. It is because the primary and secondary roots of CIST are generally placed in the core region with a high bandwidth in network design.
  • Page 32 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration You can use the following command to configure the protection functions of the switch. Perform the following configuration in corresponding configuration modes. Table 1-28 Configure the switch protection function To do...
  • Page 33 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Caution: If the equipment connected to the port of the switch cannot send STP packets to the switch, do not configure the loop-protection command. Otherwise, the port may be congested for a long time.
  • Page 34: Enabling/Disabling Mstp On The Device

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Note: The port configured with loop protection can only turn into discarding state on every instance. That such a port receives no configuration message for a long time indicates that it is about to change its state and role.
  • Page 35: Disabling Bpdu Packets From Flooding In The Default Vlans

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Note that, disabling MSTP on Ethernet ports may result in redundant paths. MSTP can be enabled/disabled on a port through the following ways. Configuration in system view Table 1-30 Enable/Disable MSTP on a port To do...
  • Page 36: Enabling Single-Port Loop Detection

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Caution: It is recommended that after enabling STP, you disable the broadcasting function of BPDU to prevent the BPDU packets, which are received by ports that did not participate in the generation of spanning trees, from being forwarded to other ports, (which can cause errors during STP generations).
  • Page 37: Configuring The Switch To Support Standard Or Legacy Mstp Packet Format

    Currently, S9500 series routing switches support legacy and standard MSTP packet format. When a switch connects to H3C devices, the switch will adopt the legacy STP packet format. When connecting to devices supporting standard STP, the switch will adopt standard STP packet format.
  • Page 38 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Note that: When implementing digest snooping in an MSTP region, make sure that the region configurations of the switches of different manufacturers are exactly the same to prevent possible broadcast storm caused by otherwise inconsistent mapping relationships between VLANs and VPN instances of each switch.
  • Page 39: Configuring Fast State Transition

    Chapter 1 MSTP Configuration III. Digest snooping configuration example Network requirements All switches in Figure 1-9 are MSTP-enabled and have the same region configuration. All the switches except switch A are H3C switches. Network diagram Switch A GE2/1/1 GE2/1/2 GE1/1/1...
  • Page 40 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Agreement: Accepts the fast transition proposal of the opposite end. RSTP and MSTP request that a designated port of the upstream switch can perform fast transition after receiving the agreement packet from the downstream switch. RSTP...
  • Page 41 II. Configuring fast state transition Configuration prerequisites The S9500 series routing switch Switch A serves as the downstream switch and the switch from another vendor serves as the upstream switch. They have been connected correctly, as shown in Figure 1-12.
  • Page 42: Displaying And Debugging Mstp

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration Table 1-36 Configure fast transition in system view To do... Use the command... Remarks Enter system view system-view — Required stp interface interface-type Enable fast transition interface-number...
  • Page 43 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration To do... Use the command... Display the configuration information display stp region-configuration about the region display stp [ instance instanceid ] tc Display TC statistics { all | detected | received | sent }...
  • Page 44: Typical Mstp Configuration Examples

    Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration To do... Use the command... Enable debugging of the state machine debugging stp state-machine prt for port role transition Disable debugging of the state machine undo debugging stp state-machine...
  • Page 45 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration access layer only. So the root of instance 1 can be configured as Switch A, root of instance 3 can be Switch B, and root of instance 4 can be Switch C.
  • Page 46: Mstp Hybrid Networking Configuration Example

    1.4.2 MSTP Hybrid Networking Configuration Example I. Network requirements Four switches form a mesh network. Three are S9500 series routing switches supporting MSTP and the other is an RSTP-capable switch from another vendor. The ports and VLANs are configured as shown in Figure 1-14.
  • Page 47 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration II. Network diagram S9500 A S9500 B VLAN 100, 200 Eth3/1/1 Eth2/1/1 Eth3/1/2 Eth2/1/3 GE4/1/1 Eth2/1/2 VLAN 100 VLAN 200 Eth1/1/2 Eth3/1/2 Eth1/1/1 Eth3/1/1 Switch Eth1/1/3 S9500 C...
  • Page 48 Operation Manual – MSTP H3C S9500 Series Routing Switches Chapter 1 MSTP Configuration # Enable MSTP in system view. <S9500B> system-view [S9500B] stp enable # Configure the VLAN-to-MSTI mapping and region name of the MSTP region. Activate the MSTP region configuration.

Table of Contents