Escolar Documentos
Profissional Documentos
Cultura Documentos
Contents
1. Introduction .............................................................................................................................................................. 2
2. Network diagram ...................................................................................................................................................... 2
3. Auto-Edge and Admin-Edge .................................................................................................................................... 4
4. BPDU Protection and BPDU Filtering ..................................................................................................................... 6
5. Spanning-tree Root Guard ...................................................................................................................................... 8
6. Loop protection ...................................................................................................................................................... 10
7. Firmware versions ................................................................................................................................................. 11
8. Reference documents ............................................................................................................................................ 12
How to improve and harden spanning-tree configuration on ProCurve switches
1. Introduction
This application note presents different commands that ease and fasten the convergence of spanning-tree protocol on
a ProCurve network, while protecting against loops and unwanted topology changes.
2. Network diagram
The platform which will be used in this document to detail the different steps of the configuration consists of:
A Router:
HP ProCurve Networking 2
How to improve and harden spanning-tree configuration on ProCurve switches
This platform represents a typical enterprise network topology, with Edge, Distribution and Core layers. Multiple
spanning-tree with 2 instances is implemented on the Edge and Distribution switches. Now, in order to protect the
network against unwanted loops or topology changes, we are going to implement several security features on the
Distribution and Edge switches
How to improve and harden spanning-tree configuration on ProCurve switches
For a manual setup of Edge ports, enable admin-edge-port on ports connected to end nodes. During spanning tree
establishment, ports with admin-edge-port enabled transition immediately to the forwarding state. If a bridge or switch
is detected on the segment, the port automatically operates as non-edge. Admin-edge-port is disabled by default.
Note: If admin-edge-port is enabled for a port, the setting for auto-edge-port is ignored whether set to yes or no. If
admin-edge-port is set to No, and auto-edge-port has not been disabled (set to No), then the auto-edge-port setting
controls the behavior of the port.
Then for the non Edge-Ports: disable admin-Edge (default value=disabled) and disable auto-edge-port
(Default=Enabled)
Synthesis:
Auto-edge feature results on correct setting of ports (Edge or non-Edge) but introduce a delay of 3 seconds.
To bypass this delay set your Edge ports as “Admin-Edge”.
For the non Edge-Ports: disable admin-Edge (default value) and disable auto-edge-port.
To view the edge configuration and status of all switch ports, use the command “show spanning-tree config”:
----- --------- + --------- ----- ----- ----- ----- ------ ------ ------ ----
A1 100/1000T | Auto 128 No No True Global No No Yes
A2 100/1000T | Auto 128 No No True Global No No Yes
...
B23 100/1000T | Auto 128 Yes Yes True Global No No No
B24 100/1000T | Auto 128 Yes Yes True Global No No No
C1 10GbE-SR | Auto 128 No No True Global No No No
C2 10GbE-SR | Auto 128 No No True Global No No No
C3 10GbE-SR | Auto 128 No No True Global No No No
C4 | Auto 128 Yes Yes True Global No No No
HP ProCurve Networking 5
How to improve and harden spanning-tree configuration on ProCurve switches
In order to protect the network against such behavior, 2 security features exist: BPDU filtering and BPDU protection.
BPDU filtering allows control of spanning-tree participation on a per-port basis. When enabled on a port, it excludes
this port from any spanning-tree participation: the port will ignore spanning-tree BPDUs and stay locked in “forwarding”
state.
BPDU protection prevents unwanted BPDUs to enter the spanning-tree domain. It is usually used on ports connected
to devices that do not support spanning-tree. When enabled on a port, BPDU protection will disable the port for a
given period (configurable timeout) if a BPDU is received. In our case the 300s timeout will be used for port
deactivation.
Basically, ports connected to identified devices that do not support spanning-tree should be configured with BPDU
filtering. Ports not connected to anything yet should be configured with BPDU protection, which will disable a port in
case of spoofed BPDU attack.
In our configuration examples, ports connected to routed links are configured with BPDU filtering:
- Ports A1-A2 on Distrib-1 and Distrib-2
HP ProCurve Networking 6
How to improve and harden spanning-tree configuration on ProCurve switches
Example on Distrib-1:
! Timeout configuration:
Distrib-1(config)# spanning-tree bpdu-protection-timeout 300
To view the status of these features, use the commands show spanning-tree config , show spanning-tree bpdu-
protection and show run | include bpdu-protection
----- --------- + --------- ----- ----- ----- ----- ------ ------ ------ ----
A1 100/1000T | Auto 128 No No True Global No No Yes
A2 100/1000T | Auto 128 No No True Global No No Yes
HP ProCurve Networking 8
How to improve and harden spanning-tree configuration on ProCurve switches
In our example, we’ll enable Root Guard on ports of Distribution switches that connect to Edge switches.
Distrib-1# / Distrib-2#
spanning-tree A1,C1,C2 root-guard
----- --------- + --------- ----- ----- ----- ----- ------ ------ ------ ----
A1 100/1000T | Auto 128 No No True Global No No Yes
A2 100/1000T | Auto 128 No No True Global No No Yes
...
B23 100/1000T | Auto 128 Yes Yes True Global No No No
B24 100/1000T | Auto 128 Yes Yes True Global No No No
C1 10GbE-SR | Auto 128 No No True Global No No No
C2 10GbE-SR | Auto 128 No No True Global Yes No No
C3 10GbE-SR | Auto 128 No No True Global Yes No No
C4 | Auto 128 Yes Yes True Global No No No
6. Loop protection
Loop protection mechanism is used to prevent accidental loops that can occur when an unmanaged non-spanning-
tree-capable equipment is connected and drops spanning-tree packets.
When loop protection is enabled on a port, it sends out a loop protocol packet; if it then receives the same packet, it
disables the port for a time that can be configured (disable-timer).
! Loop-protection activation:
Distrib-1(config)# loop-protect A1-A24, B1-B24, C1-C4
7. Firmware versions
Switches firmware versions used in this application note are:
HP ProCurve Networking 11
How to improve and harden spanning-tree configuration on ProCurve switches
8. Reference documents
This concludes the procedure for hardening MSTP on ProCurve switches.
For further information about how to configure MSTP security features on ProCurve switches 3500yl-5400zl-8212zl,
please refer to the following links:
- ProCurve Advanced Traffic Management Guide for the ProCurve Series 3500yl/6200yl/5400zl/8212zl Switches
Chapter 4- Multiple Instance Spanning-tree operation: http://cdn.procurve.com/training/Manuals/3500-5400-6200-
8200-ATG-Jan08-4-MSTP.pdf