background image

Operation Manual – MSTP 
H3C S3100-52P Ethernet Switch 

Table of Contents

 

Table of Contents 

Chapter 1 MSTP Configuration ...................................................................................................1-1

 

1.1 STP Overview .................................................................................................................... 1-1

 

1.2 MSTP Overview ..............................................................................................................1-11

 

1.2.1 Background of MSTP ............................................................................................ 1-11

 

1.2.2 Basic MSTP Terminologies................................................................................... 1-12

 

1.2.3 Principle of MSTP.................................................................................................. 1-17

 

1.2.4 MSTP Implementation on Switches ...................................................................... 1-18

 

1.2.5 STP-related Standards.......................................................................................... 1-18

 

1.3 Configuring Root Bridge .................................................................................................. 1-19

 

1.3.1 Configuration Prerequisites................................................................................... 1-20

 

1.3.2 Configuring an MST Region.................................................................................. 1-20

 

1.3.3 Specifying the Current Switch as a Root Bridge/Secondary Root Bridge............. 1-22

 

1.3.4 Configuring the Bridge Priority of the Current Switch ........................................... 1-23

 

1.3.5 Configuring How a Port Recognizes and Sends MSTP Packets.......................... 1-24

 

1.3.6 Configuring the MSTP Operation Mode................................................................ 1-26

 

1.3.7 Configuring the Maximum Hop Count of an MST Region..................................... 1-26

 

1.3.8 Configuring the Network Diameter of the Switched Network................................ 1-27

 

1.3.9 Configuring the MSTP Time-related Parameters.................................................. 1-28

 

1.3.10 Configuring the Timeout Time Factor ................................................................. 1-29

 

1.3.11 Configuring the Maximum Transmitting Rate on the Current Port...................... 1-30

 

1.3.12 Configuring the Current Port as an Edge Port .................................................... 1-31

 

1.3.13 Specifying Whether the Link Connected to a Port Is Point-to-point Link ............ 1-33

 

1.3.14 Enabling MSTP ................................................................................................... 1-34

 

1.4 Configuring Leaf Nodes ................................................................................................... 1-35

 

1.4.1 Configuration Prerequisites................................................................................... 1-36

 

1.4.2 Configuring the MST Region................................................................................. 1-36

 

1.4.3 Configuring How a Port Recognizes and Sends MSTP Packets.......................... 1-36

 

1.4.4 Configuring the Timeout Time Factor.................................................................... 1-36

 

1.4.5 Configuring the Maximum Transmitting Rate on the Current Port........................ 1-36

 

1.4.6 Configuring a Port as an Edge Port ...................................................................... 1-37

 

1.4.7 Configuring the Path Cost for a Port ..................................................................... 1-37

 

1.4.8 Configuring Port Priority ........................................................................................ 1-40

 

1.4.9 Specifying Whether the Link Connected to a Port Is a Point-to-point Link ........... 1-41

 

1.4.10 Enabling MSTP ................................................................................................... 1-41

 

1.5 Performing mCheck Operation ........................................................................................ 1-41

 

1.5.1 Configuration Prerequisites................................................................................... 1-41

 

1.5.2 Configuration Procedure ....................................................................................... 1-41

 

1.5.3 Configuration Example.......................................................................................... 1-42

 

Summary of Contents for S3100-52P

Page 1: ...1 27 1 3 9 Configuring the MSTP Time related Parameters 1 28 1 3 10 Configuring the Timeout Time Factor 1 29 1 3 11 Configuring the Maximum Transmitting Rate on the Current Port 1 30 1 3 12 Configuri...

Page 2: ...uction 1 48 1 7 2 Configuring Digest Snooping 1 48 1 8 Configuring Rapid Transition 1 50 1 8 1 Introduction 1 50 1 8 2 Configuring Rapid Transition 1 51 1 9 Configuring VLAN VPN Tunnel 1 53 1 9 1 Intr...

Page 3: ...n z Displaying STP maintenance Refer to Displaying and Maintaining MSTP z Sending trap messages conforming to 802 1d standard Refer to Enabling Trap Messages Conforming to 802 1d Standard 1 1 STP Over...

Page 4: ...e network and the root bridge can change alone with changes of the network topology Therefore the root bridge is not fixed Upon network convergence the root bridge generates and sends out configuratio...

Page 5: ...evice A forwards BPDUs to Device B through AP1 the designated bridge for Device B is Device A and the designated port is the port AP1 on Device A z Two devices are connected to the LAN Device B and De...

Page 6: ...lifetime for the configuration BPDUs to be kept in a switch z Hello time configuration BPDU interval z Forward delay forward delay of the port Note For the convenience of description the description...

Page 7: ...n BPDU that has the lowest root bridge ID has the highest priority z If all configuration BPDUs have the same root bridge ID they will be compared for their root path costs If the root path cost in a...

Page 8: ...sed on the comparison result z If the calculated configuration BPDU is superior this port will serve as the designated port and the configuration BPDU on the port will be replaced with the calculated...

Page 9: ...The following table shows the initial state of each device Table 1 4 Initial state of each device Device Port name BPDU of port AP1 0 0 0 AP1 Device A AP2 0 0 0 AP2 BP1 1 0 1 BP1 Device B BP2 1 0 1 BP...

Page 10: ...e configuration BPDU of Device A 0 0 0 AP1 Device B finds that the received configuration BPDU is superior to the configuration BPDU of the local port 1 0 1 BP1 and updates the configuration BPDU of B...

Page 11: ...Designated port CP2 0 10 2 CP2 z Next port CP2 receives the updated configuration BPDU of Device B 0 5 1 BP2 Because the received configuration BPDU is superior to its old one Device C launches a BPD...

Page 12: ...to time the configuration BPDU while it sends out this configuration BPDU through the designated port z If the configuration BPDU received on the designated port has a lower priority than the configur...

Page 13: ...propagated throughout the entire network z Hello time the interval for sending hello packets Hello packets are used to check link state A switch sends hello packets to its neighboring devices at a reg...

Page 14: ...tree II Features of MSTP The multiple spanning tree protocol MSTP overcomes the shortcomings of STP and RSTP In addition to support for rapid network convergence it also allows data flows of different...

Page 15: ...o these switches These switches have the same region name the same VLAN to MSTI mapping configuration and the same MSTP revision level A switched network can contain multiple MST regions You can group...

Page 16: ...k that connects all MST regions in the network If you regard each MST region in the network as a switch then the CST is the spanning tree generated by STP or RSTP running on the switches VI CIST A CIS...

Page 17: ...or master port z A backup port is the secondary port of a designated port and is used for rapid transition With the designated port being blocked the backup port becomes the new designated port fast a...

Page 18: ...ding state Ports in this state can forward user packets and receive send BPDU packets z Learning state Ports in this state can receive send BPDU packets but do not forward user packets z Discarding st...

Page 19: ...n it as a root with the root path cost being 0 the ID of the designated bridge being that of the switch and the designated port being itself 1 Each switch sends out its configuration BPDUs and operate...

Page 20: ...n compares the calculated configuration BPDU with the original configuration BPDU received from the corresponding port on another switch If the latter takes precedence over the former the switch block...

Page 21: ...How a Port Recognizes and Sends MSTP Packets Optional Configuring the MSTP Operation Mode Optional Configuring the Maximum Hop Count of an MST Region Optional Configuring the Network Diameter of the...

Page 22: ...LAN to MSTI mapping table for the MST region vlan mapping modulo modulo Required Both commands can be used to configure VLAN to MSTI mapping tables By default all VLANs in an MST region are mapped to...

Page 23: ...tor which is 0 by default and cannot be configured MST region name VLAN to MSTI mapping table and revision level z The H3C series support only the MST region name VLAN to MSTI mapping table and revisi...

Page 24: ...Enter system view system view Specify the current switch as the secondary root bridge of a specified spanning tree stp instance instance id root secondary bridge diameter bridgenumber hello time cent...

Page 25: ...o configure the current switch as the root bridge by setting the priority of the switch to 0 Note that once a switch is configured as the root bridge or a secondary root bridge its priority cannot be...

Page 26: ...kets in legacy format z 802 1s mode Ports in this mode recognize send packets in dot1s format A port acts as follows according to the format of MSTP packets forwarded by a peer switch or router When a...

Page 27: ...format of the packets received Table 1 7 Follow these steps to configure how a port recognizes and sends MSTP packets in Ethernet port view To do Use the command Remarks Enter system view system view...

Page 28: ...ghboring devices In this case the switch is MSTP capable I Configuration procedure Follow these steps to configure the MSTP operation mode To do Use the command Remarks Enter system view system view C...

Page 29: ...By default the maximum hop count of an MST region is 20 The bigger the maximum hop count the larger the MST region is Note that only the maximum hop settings on the switch operating as a region root...

Page 30: ...me related parameters exist forward delay hello time and max age You can configure the three parameters to control the process of spanning tree calculation I Configuration procedure Follow these steps...

Page 31: ...nable to be detected in time which prevents spanning trees being recalculated in time and makes the network less adaptive The default value is recommended As for the configuration of the three time re...

Page 32: ...nfigure the timeout time factor To do Use the command Remarks Enter system view system view Configure the timeout time factor for the switch stp timer factor number Required The timeout time factor de...

Page 33: ...ts on a switch defaults to 10 As the maximum transmitting rate parameter determines the number of the configuration BPDUs transmitted in each hello time set it to a proper value to prevent MSTP from o...

Page 34: ...port view Follow these steps to configure a port as an edge port in Ethernet port view To do Use the command Remarks Enter system view system view Enter Ethernet port view interface interface type int...

Page 35: ...ne of the following two ways I Specify whether the link connected to a port is point to point link in system view Follow these steps to specify whether the link connected to a port is point to point l...

Page 36: ...nfigure the link connected to Ethernet 1 0 1 as a point to point link 1 Perform this configuration in system view Sysname system view Sysname stp interface Ethernet 1 0 1 point to point force true 2 P...

Page 37: ...g tree calculation this operation saves CPU resources of the switch Other MSTP related settings can take effect only after MSTP is enabled on the switch II Configuration example Enable MSTP on the swi...

Page 38: ...e In a network containing switches with both GVRP and MSTP enabled GVRP messages travel along the CIST If you want to advertise a VLAN through GVRP be sure to map the VLAN to the CIST MSTI 0 when conf...

Page 39: ...ng standards z dot1d 1998 Adopts the IEEE 802 1D 1998 standard to calculate the default path costs of ports z dot1t Adopts the IEEE 802 1t standard to calculate the default path costs of ports z legac...

Page 40: ...less than that of the port operating in half duplex mode When calculating the path cost of an aggregated link the 802 1D 1998 standard does not take the number of the ports on the aggregated link int...

Page 41: ...A Configure the path cost of Ethernet 1 0 1 in MSTI 1 to be 2 000 1 Perform this configuration in system view Sysname system view Sysname stp interface Ethernet 1 0 1 instance 1 cost 2000 2 Perform t...

Page 42: ...ce id port priority priority Required The default port priority is 128 II Configure port priority in Ethernet port view Follow these steps to configure port priority in Ethernet port view To do Use th...

Page 43: ...the STP enabled downstream switch is then replaced by an MSTP enabled switch the port cannot automatically transit to the MSTP mode It remains in the STP compatible mode In this case you can force the...

Page 44: ...form this configuration in system view Sysname system view Sysname stp interface Ethernet 1 0 1 mcheck 2 Perform this configuration in Ethernet port view Sysname system view Sysname interface Ethernet...

Page 45: ...uard function Ports with this function enabled can only be kept as designated ports in all MSTIs When a port of this type receives configuration BPDUs with higher priorities it turns to the discarding...

Page 46: ...ved within a period is less than the maximum times the switch performs a removing operation upon receiving a TC BPDU After the number of the TC BPDUs received reaches the maximum times the switch stop...

Page 47: ...s not applicable to these ports even if you enable the BPDU guard function and specify these ports to be MSTP edge ports 1 6 4 Configuring Root Guard I Configuration procedure Follow these steps to co...

Page 48: ...iew Sysname interface Ethernet 1 0 1 Sysname Ethernet1 0 1 stp root protection 1 6 5 Configuring Loop Guard I Configuration procedure Follow these steps to configure loop guard To do Use the command R...

Page 49: ...old number Optional III Configuration example Enable the TC BPDU attack guard function Sysname system view Sysname stp tc protection enable Set the maximum times for the switch to remove the MAC addre...

Page 50: ...d to another manufacturer s switch that has the same MST region related configuration as its own but adopts a proprietary spanning tree protocol you can enable digest snooping on the port Then the S31...

Page 51: ...nly when your switch is connected to another manufacturer s switches adopting proprietary spanning tree protocols z To enable the digest snooping feature successfully you must first enable it on all t...

Page 52: ...t from the downstream switch The difference between RSTP and MSTP are z For MSTP the upstream switch sends agreement packets to the downstream switch and the downstream switch sends agreement packets...

Page 53: ...as the upstream switch connects with a H3C series switch running MSTP the upstream designated port fails to change its state rapidly The rapid transition feature is developed to resolve this problem W...

Page 54: ...eps to configure the rapid transition feature in system view To do Use the command Remarks Enter system view system view Enable the rapid transition feature stp interface interface type interface numb...

Page 55: ...endent of those of the service provider network As shown in Figure 1 9 the upper part is the service provider network and the lower part comprises the customer networks The service provider network co...

Page 56: ...led devices only z To enable the VLAN VPN tunnel function make sure the links between service provider networks are trunk links 1 10 STP Maintenance Configuration 1 10 1 Introduction In a large scale...

Page 57: ...itch sends trap messages conforming to 802 1d standard to the network management device in the following two cases z The switch becomes the root bridge of an instance z Network topology changes are de...

Page 58: ...Available in any view Clear statistics about MSTP reset stp interface interface list Available in user view 1 13 MSTP Configuration Example I Network requirements Implement MSTP in the network shown...

Page 59: ...n configuration Configure the region name VLAN to MSTI mapping table and revision level for the MST region Sysname mst region region name example Sysname mst region instance 1 vlan 10 Sysname mst regi...

Page 60: ...region configuration Configure the MST region Sysname mst region region name example Sysname mst region instance 1 vlan 10 Sysname mst region instance 3 vlan 30 Sysname mst region instance 4 vlan 40 S...

Page 61: ...The VLAN VPN tunnel function is enabled in system view thus implementing transparent transmission between the customer networks and the service provider network II Network diagram Figure 1 11 Network...

Page 62: ...Ethernet 1 0 2 Sysname Ethernet1 0 2 port link type trunk Add the trunk port to all VLANs Sysname Ethernet1 0 2 port trunk permit vlan all 4 Configure Switch D Enable MSTP Sysname system view Sysname...

Reviews: