H3C S3100-52P Operation Manual
H3C S3100-52P Operation Manual

H3C S3100-52P Operation Manual

Hide thumbs Also See for S3100-52P:
Table of Contents

Advertisement

Quick Links

Operation Manual - MSTP
H3C S3100-52P Ethernet Switch
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.4 Configuring the Bridge Priority of the Current Switch ........................................... 1-23
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.9 Configuring the MSTP Time-related Parameters.................................................. 1-28
1.3.10 Configuring the Timeout Time Factor ................................................................. 1-29
1.3.12 Configuring the Current Port as an Edge Port .................................................... 1-31
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.4 Configuring the Timeout Time Factor.................................................................... 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.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

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading

Summary of Contents for H3C S3100-52P

  • Page 1: Table Of Contents

    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....................
  • Page 2 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Table of Contents 1.6 Configuring Guard Functions................... 1-42 1.6.1 Introduction......................1-42 1.6.2 Configuration Prerequisites................... 1-44 1.6.3 Configuring BPDU Guard..................1-44 1.6.4 Configuring Root Guard ..................1-45 1.6.5 Configuring Loop Guard..................1-46 1.6.6 Configuring TC-BPDU Attack Guard..............1-46 1.6.7 Configuring BPDU Dropping .................
  • Page 3: Chapter 1 Mstp Configuration

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Chapter 1 MSTP Configuration Go to these sections for information you are interested in: MSTP Overview Configuring Root Bridge Configuring Leaf Nodes Performing mCheck Operation Configuring Guard Functions...
  • Page 4 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration II. Protocol packets of STP STP uses bridge protocol data units (BPDUs), also known as configuration messages, as its protocol packets. STP identifies the network topology by transmitting BPDUs between STP compliant network devices.
  • Page 5 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Classification Designated bridge Designated port The port through which A designated bridge is a device the designated bridge For a LAN responsible for forwarding forwards BPDUs to this BPDUs to this LAN segment.
  • Page 6 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration IV. How STP works STP identifies the network topology by transmitting configuration BPDUs between network devices. Configuration BPDUs contain sufficient information for network devices to complete the spanning tree calculation. Important fields in a configuration BPDU include: Root bridge ID, consisting of root bridge priority and MAC address.
  • Page 7 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Table 1-2 Selection of the optimum configuration BPDU Step Description Upon receiving a configuration BPDU on a port, the device performs the following processing: If the received configuration BPDU has a lower priority than...
  • Page 8 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Table 1-3 Selection of the root port and designated ports Step Description A non-root-bridge device takes the port on which the optimum configuration BPDU was received as the root port.
  • Page 9 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Figure 1-2 Network diagram for STP algorithm Initial state of each device The following table shows the initial state of each device. Table 1-4 Initial state of each device...
  • Page 10 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Table 1-5 Comparison process and result on each device BPDU of port Device Comparison process after comparison Port AP1 receives the configuration BPDU of Device B {1, 0, 1, BP1}. Device A finds that the...
  • Page 11 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration BPDU of port after Device Comparison process comparison Port CP1 receives the configuration BPDU of Device A {0, 0, 0, AP2}. Device C finds that the received configuration BPDU is superior to the...
  • Page 12 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Figure 1-3 The final calculated spanning tree Note: To facilitate description, the spanning tree calculation process in this example is simplified, while the actual process is more complicated.
  • Page 13: Mstp Overview

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration root port and designated port begin to forward data as soon as they are elected, a temporary loop may occur. STP timers The following three time parameters are important for STP calculation: Forward delay, the period a device waits before state transition.
  • Page 14: Basic Mstp Terminologies

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Note: In RSTP, the state of a root port can transit fast under the following conditions: the old root port on the device has stopped forwarding data and the upstream designated port has started forwarding data.
  • Page 15 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Region A0: VLAN 1 mapped to MSTI 1 VLAN 2 mapped to MSTI 2 Other VLANs mapped to CIST BPDU BPDU BPDU Region B0: VLAN 1 mapped to MSTI 1...
  • Page 16 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration III. VLAN-to-MSTI mapping table A VLAN-to-MSTI mapping table is maintained for each MST region. The table is a collection of mappings between VLANs and MSTIs. For example, in...
  • Page 17 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration A designated port is used to forward packets to a downstream network segment or switch. A master port connects an MST region to the common root. The path from the master port to the common root is the shortest path between the MST region and the common root.
  • Page 18 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Connecting to the common root bridge Region boundary ports Port 2 MST region Port 1 Master port Alternate port Port 6 Port 5 Backup port Designated port Port 3...
  • Page 19: Principle Of Mstp

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.2.3 Principle of MSTP MSTP divides a Layer 2 network into multiple MST regions. The CSTs are generated between these MST regions, and multiple spanning trees (also called MSTIs) can be generated in each MST region.
  • Page 20: Mstp Implementation On Switches

    MSTP is compatible with both STP and RSTP. That is, MSTP-enabled switches can recognize the protocol packets of STP and RSTP and use them for spanning tree calculation. In addition to the basic MSTP functions, H3C series switches also provide the following functions for users to manage their switches.
  • Page 21: Configuring Root Bridge

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.3 Configuring Root Bridge Complete the following tasks to configure the root bridge: Task Remarks Required To prevent network topology jitter caused by other related configurations, you are...
  • Page 22: Configuration Prerequisites

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.3.1 Configuration Prerequisites The role (root, branch, or leaf) of each switch in each MSTI is determined. 1.3.2 Configuring an MST Region I. Configuration procedure Follow these steps to configure an MST region: To do...
  • Page 23 (a 802.1s-defined protocol selector, which is 0 by default and cannot be configured), MST region name, VLAN-to-MSTI mapping table, and revision level. The H3C series support only the MST region name, VLAN-to-MSTI mapping table, and revision level. Switches with the settings of these parameters being the same are assigned to the same MST region.
  • Page 24: Specifying The Current Switch As A Root Bridge/Secondary Root Bridge

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 20 to 30 1.3.3 Specifying the Current Switch as a Root Bridge/Secondary Root Bridge MSTP can automatically choose a switch as a root bridge through calculation. You can also manually specify the current switch as a root bridge by using the corresponding commands.
  • Page 25: Configuring The Bridge Priority Of The Current Switch

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration You can specify the network diameter and the hello time parameters while configuring a root bridge/secondary root bridge. Refer to Configuring the Network Diameter of the Switched Network...
  • Page 26: Configuring How A Port Recognizes And Sends Mstp Packets

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Caution: Once you specify a switch as the root bridge or a secondary root bridge by using the stp root primary or stp root secondary command, the bridge priority of the switch cannot be configured any more.
  • Page 27 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration If packets in legacy format are received, the port turns to discarding state to prevent network storm. I. Configuration procedure Follow these steps to configure how a port recognizes and sends MSTP packets (in system view): To do...
  • Page 28: Configuring The Mstp Operation Mode

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.3.6 Configuring the MSTP Operation Mode To make an MSTP-enabled switch compatible with STP/RSTP, MSTP provides the following three operation modes: STP-compatible mode, where the ports of a switch send STP BPDUs to neighboring devices.
  • Page 29: Configuring The Network Diameter Of The Switched Network

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration mechanism disables the switches that are beyond the maximum hop count from participating in spanning tree calculation, and thus limits the size of an MST region. With such a mechanism, the maximum hop count configured on the switch operating as the root bridge of the CIST or an MSTI in an MST region becomes the network diameter of the spanning tree, which limits the size of the spanning tree in the current MST region.
  • Page 30: Configuring The Mstp Time-Related Parameters

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration The network diameter parameter indicates the size of a network. The bigger the network diameter is, the larger the network size is. After you configure the network diameter of a switched network, an MSTP-enabled switch adjusts its hello time, forward delay, and max age settings accordingly to better values.
  • Page 31: Configuring The Timeout Time Factor

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Caution: The forward delay parameter and the network diameter are correlated. Normally, a large network diameter corresponds to a large forward delay. A too small forward delay parameter may result in temporary redundant paths. And a too large forward delay parameter may cause a network unable to resume the normal state in time after changes occurred to the network.
  • Page 32: Configuring The Maximum Transmitting Rate On The Current Port

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration by the hello time parameter to check for link failures. Normally, a switch regards its upstream switch faulty if the former does not receive any BPDU from the latter in a period three times of the hello time and then initiates the spanning tree recalculation process.
  • Page 33: Configuring The Current Port As An Edge Port

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration To do... Use the command... Remarks Enter system view — system-view Required Configure the maximum The maximum stp interface interface-list transmitting rate for transmitting rate of all transmit-limit packetnum...
  • Page 34 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration port changes from the blocking state to the forwarding state, it does not have to wait for a delay. You can configure a port as an edge port in one of the following two ways.
  • Page 35: Specifying Whether The Link Connected To A Port Is Point-To-Point Link

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration <Sysname> system-view [Sysname] stp interface Ethernet 1/0/1 edged-port enable Configure Ethernet 1/0/1 as an edge port in Ethernet port view <Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] stp edged-port enable 1.3.13 Specifying Whether the Link Connected to a Port Is Point-to-point...
  • Page 36: Enabling Mstp

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Note: If you configure the link connected to a port in an aggregation group as a point-to-point link, the configuration will be synchronized to the rest ports in the same aggregation group.
  • Page 37: Configuring Leaf Nodes

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Follow these steps to enable MSTP in Ethernet port view: To do... Use the command... Remarks Enter system view — system-view Required Enable MSTP stp enable MSTP is disabled by default.
  • Page 38: Configuration Prerequisites

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Task Remarks Configuring an MST Region Required Configuring How a Port Recognizes and Optional Sends MSTP Packets Configuring the Timeout Time Factor Optional Optional Configuring the Maximum Transmitting Rate on the Current Port The default value is recommended.
  • Page 39: Configuring A Port As An Edge Port

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.4.6 Configuring a Port as an Edge Port Refer to Configuring the Current Port as an Edge Port. 1.4.7 Configuring the Path Cost for a Port The path cost parameter reflects the rate of the link connected to the port. For a port on an MSTP-enabled switch, the path cost may be different in different MSTIs.
  • Page 40 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Operation mode Latency Rate 802.1D-1998 IEEE 802.1t (half-/full-duplex) standard Half-duplex/Full-duplex 200,000 Aggregated link 2 ports 100,000 100 Mbps Aggregated link 3 ports 66,666 Aggregated link 4 ports 50,000...
  • Page 41 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Follow these steps to configure the path cost for a port in Ethernet port view: To do... Use the command... Remarks Enter system view — System-view interface interface-type Enter Ethernet port view —...
  • Page 42: Configuring Port Priority

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.4.8 Configuring Port Priority Port priority is an important criterion on determining the root port. In the same condition, the port with the smallest port priority value becomes the root port.
  • Page 43: Specifying Whether The Link Connected To A Port Is A Point-To-Point Link

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration <Sysname> system-view [Sysname] stp interface Ethernet 1/0/1 instance 1 port priority 16 Perform this configuration in Ethernet port view <Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] stp instance 1 port priority 16 1.4.9 Specifying Whether the Link Connected to a Port Is a Point-to-point...
  • Page 44: Configuration Example

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration To do... Use the command... Remarks Enter system view — system-view Perform the mCheck stp [ interface Required operation interface-list ] mcheck II. Perform the mCheck operation in Ethernet port view Follow these steps to perform the mCheck operation in Ethernet port view: To do...
  • Page 45 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Normally, no configuration BPDU will reach edge ports. But malicious users can attack a network by sending configuration BPDUs deliberately to edge ports to cause network jitter. You can prevent this type of attacks by utilizing the BPDU guard function. With this function enabled on a switch, the switch shuts down the edge ports that receive configuration BPDUs and then reports these cases to the administrator.
  • Page 46: Configuration Prerequisites

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration IV. TC-BPDU attack guard Normally, a switch removes its MAC address table and ARP entries upon receiving TC-BPDUs. If a malicious user sends a large amount of TC-BPDUs to a switch in a...
  • Page 47: Configuring Root Guard

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

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration To do... Use the command... Remarks Required Enable the root guard function on the current stp root-protection The root guard function is port disabled by default. II. Configuration example # Enable the root guard function on Ethernet 1/0/1.
  • Page 49: Configuring Bpdu Dropping

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration II. Configuration procedure Follow these steps to configure the TC-BPDU attack guard function: To do... Use the command... Remarks Enter system view — system-view Required Enable the TC-BPDU...
  • Page 50: Configuring Digest Snooping

    This problem can be overcome by implementing the digest snooping feature. If a port on an S3100-52P Ethernet switch is connected 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.
  • Page 51 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration To do... Use the command... Remarks Enter system view — system-view interface interface-type Enter Ethernet port view — interface-number Required Enable the digest The digest snooping snooping feature...
  • Page 52: Configuring Rapid Transition

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.8 Configuring Rapid Transition 1.8.1 Introduction Designated ports of RSTP-enabled or MSTP-enabled switches use the following two types of packets to implement rapid transition: Proposal packets: Packets sent by designated ports to request rapid transition...
  • Page 53: Configuring Rapid Transition

    RSTP in the way to implement rapid transition on designated ports. When a switch of this kind operating as the upstream switch connects with a H3C series switch running MSTP, the upstream designated port fails to change its state rapidly.
  • Page 54 RSTP in the way to implement rapid transition on designated ports. Port 1 is the designated port. The downstream H3C switch is running MSTP. Port 2 is the root port. Figure 1-8 Network diagram for rapid transition configuration II. Configuration procedure...
  • Page 55: Configuring Vlan-Vpn Tunnel

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration Note: The rapid transition feature can be enabled on only root ports or alternate ports. If you configure the rapid transition feature on a designated port, the feature does not take effect on the port.
  • Page 56: Stp Maintenance Configuration

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration To do... Use the command... Remarks Enter system view — system-view Enable MSTP globally — stp enable Required Enable the VLAN-VPN vlan-vpn tunnel The VLAN-VPN tunnel function tunnel function globally is disabled by default.
  • Page 57: Configuration Example

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration To do... Use the command... Remarks Required Enable log/trap output for By default, log/trap output stp portlog all the ports of all instances is disabled for the ports of all instances.
  • Page 58: Displaying And Maintaining Mstp

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.12 Displaying and Maintaining MSTP To do... Use the command... Remarks display stp [ instance Display the state and statistics instance-id ] [ interface information about spanning interface-list | slot slot-number ]...
  • Page 59 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration II. Network diagram Figure 1-10 Network diagram for MSTP configuration Note: The word “permit” shown in Figure 1-10 means the corresponding link permits packets of specific VLANs. III. Configuration procedure Configure Switch A # Enter MST region view.
  • Page 60 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP 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-region] instance 3 vlan 30...
  • Page 61: Vlan-Vpn Tunnel Configuration Example

    Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration 1.14 VLAN-VPN tunnel Configuration Example I. Network requirements Switch C and Switch D are the access devices for the service provider network. Switch A and Switch B are the access devices for the customer networks.
  • Page 62 Operation Manual – MSTP H3C S3100-52P Ethernet Switch Chapter 1 MSTP Configuration <Sysname> system-view [Sysname] stp enable # Enable the VLAN-VPN tunnel function. [Sysname] vlan-vpn tunnel # Add Ethernet 1/0/1 to VLAN 10. [Sysname] vlan 10 [Sysname-Vlan10] port Ethernet 1/0/1 [Sysname-Vlan10] quit # Disable STP on Ethernet 1/0/1 and then enable the VLAN VPN function on it.

Table of Contents