Docsity

Configuração do Cisco IEEE 802.1s MSTP em Catalyst 4500 Series Switch, Resumos de Redes de Computadores

Toggle sidebar
bg1
CHA PT ER
15-1
Software Configuration Guide—Release 12.2(18)EW
78-16200-01
15
Understanding and Configuring Multiple
Spanning Trees
This chapter describes how to configure the Cisco implementation of the IEEE 802.1s Multiple STP
(MSTP) on the Catalyst 4500 series switch. The Multiple Spanning-tree (MST) implementation is a
pre-standard implementation based on the draft version of the IEEE standard.
This chapter includes the following major sections:
•Overview of MST, page 15-1
•MST Configuration Restrictions and Guidelines, page 15-9
•Configuring MST, page 15-9
Note For complete syntax and usage information for the switch commands used in this chapter, look at the
Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location:
http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html
If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco
IOS library. Refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference and related
publications at this location:
http://www.cisco.com/en/US/products/ps6350/index.html
Overview of MST
The following sections describe how MST works on a Catalyst 4500 series switch:
•IEEE 802.1s MST, page 15-2
•IEEE 802.1w RSTP, page 15-3
•MST-to-SST Interoperability, page 15-4
•Common Spanning Tree, page 15-5
•MST Instances, page 15-6
•MST Configuration Parameters, page 15-6
•MST Regions, page 15-6
•Message Age and Hop Count, page 15-8
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Pré-visualização parcial do texto

Baixe Configuração do Cisco IEEE 802.1s MSTP em Catalyst 4500 Series Switch e outras Resumos em PDF para Redes de Computadores, somente na Docsity!

C H A P T E R

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Understanding and Configuring Multiple

Spanning Trees

This chapter describes how to configure the Cisco implementation of the IEEE 802.1s Multiple STP

(MSTP) on the Catalyst 4500 series switch. The Multiple Spanning-tree (MST) implementation is a

pre-standard implementation based on the draft version of the IEEE standard.

This chapter includes the following major sections:

- Overview of MST, page 15- - MST Configuration Restrictions and Guidelines, page 15- - Configuring MST, page 15-

Note For complete syntax and usage information for the switch commands used in this chapter, look at the

Cisco Catalyst 4500 Series Switch Command Reference and related publications at this location:

http://www.cisco.com/en/US/products/hw/switches/ps4324/index.html

If the command is not found in the Catalyst 4500 Command Reference, it is located in the larger Cisco

IOS library. Refer to the Catalyst 4500 Series Switch Cisco IOS Command Reference and related

publications at this location:

http://www.cisco.com/en/US/products/ps6350/index.html

Overview of MST

The following sections describe how MST works on a Catalyst 4500 series switch:

- IEEE 802.1s MST, page 15- - IEEE 802.1w RSTP, page 15- - MST-to-SST Interoperability, page 15- - Common Spanning Tree, page 15- - MST Instances, page 15- - MST Configuration Parameters, page 15- - MST Regions, page 15- - Message Age and Hop Count, page 15-

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Overview of MST

- MST-to-PVST+ Interoperability, page 15-

IEEE 802.1s MST

Note MST in this release is based on the draft version of the IEEE standard.

MST extends the IEEE 802.1w rapid spanning tree (RST) algorithm to multiple spanning trees. This

extension provides both rapid convergence and load balancing in a VLAN environment. MST converges

faster than Per VLAN Spanning Tree Plus (PVST+) and is backward compatible with 802.1D STP,

802.1w (Rapid Spanning Tree Protocol [RSTP]), and the Cisco PVST+ architecture.

MST allows you to build multiple spanning trees over trunks. You can group and associate VLANs to

spanning tree instances. Each instance can have a topology independent of other spanning tree instances.

This architecture provides multiple forwarding paths for data traffic and enables load balancing.

Network fault tolerance is improved because a failure in one instance (forwarding path) does not affect

other instances.

In large networks, you can more easily administer the network and use redundant paths by locating

different VLAN and spanning tree instance assignments in different parts of the network. A

spanning tree instance can exist only on bridges that have compatible VLAN instance assignments. You

must configure a set of bridges with the same MST configuration information, which allows them to

participate in a specific set of spanning tree instances. Interconnected bridges that have the same MST

configuration are referred to as an MST region.

MST uses the modified RSTP, MSTP. MST has the following characteristics:

- MST runs a variant of spanning tree called Internal Spanning Tree (IST). IST augments Common

Spanning Tree (CST) information with internal information about the MST region. The MST region

appears as a single bridge to adjacent single spanning tree (SST) and MST regions.

- A bridge running MST provides interoperability with SST bridges as follows: - MST bridges run IST, which augments CST information with internal information about the

MST region.

  • IST connects all the MST bridges in the region and appears as a subtree in the CST that includes

the whole bridged domain. The MST region appears as a virtual bridge to adjacent SST bridges

and MST regions.

  • The Common and Internal Spanning Tree (CIST) is the collection of the following: ISTs in each

MST region, the CST that interconnects the MST regions, and the SST bridges. CIST is

identical to an IST inside an MST region and identical to a CST outside an MST region. The

STP, RSTP, and MSTP together elect a single bridge as the root of the CIST.

- MST establishes and maintains additional spanning trees within each MST region. These spanning

trees are termed MST instances (MSTIs). The IST is numbered 0, and the MSTIs are numbered 1,

2, 3, and so on. Any MSTI is local to the MST region and is independent of MSTIs in another region,

even if the MST regions are interconnected.

MST instances combine with the IST at the boundary of MST regions to become the CST as follows:

  • Spanning tree information for an MSTI is contained in an MSTP record (M-record).

M-records are always encapsulated within MST bridge protocol data units (BPDUs). The

original spanning trees computed by MSTP are called M-trees, which are active only within the

MST region. M-trees merge with the IST at the boundary of the MST region and form the CST.

- MST provides interoperability with PVST+ by generating PVST+ BPDUs for the non-CST VLANs. - MST supports some of the PVST+ extensions in MSTP as follows:

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Overview of MST

- A root port or designated port role includes the port in the active topology. - An alternate port or backup port role excludes the port from the active topology.

RSTP Port States

The port state controls the forwarding and learning processes and provides the values of discarding,

learning, and forwarding. Table 15-1 shows the STP port states and RSTP port states.

In a stable topology, RSTP ensures that every root port and designated port transitions to the forwarding

state while all alternate ports and backup ports are always in the discarding state.

MST-to-SST Interoperability

A virtual bridged LAN may contain interconnected regions of SST and MST bridges. Figure 15-1 shows

this relationship.

Table 15-1 Comparison Between STP and RSTP Port States

Operational Status STP Port State RSTP Port State Port Included in Active Topology

Enabled Blocking 1

  1. IEEE 802.1D port state designation.

Discarding 2

  1. IEEE 802.1w port state designation. Discarding is the same as blocking in MST.

No

Enabled Listening Discarding No

Enabled Learning Learning Yes

Enabled Forwarding Forwarding Yes

Disabled Disabled Discarding No

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Overview of MST

Figure 15-1 Network with Interconnected SST and MST Regions

To STP running in the SST region, an MST region appears as a single SST or pseudobridge, which

operates as follows:

- Although the values for root identifiers and root path costs match for all BPDUs in all

pseudobridges, a pseudobridge differs from a single SST bridge as follows:

  • The pseudobridge BPDUs have different bridge identifiers. This difference does not affect STP

operation in the neighboring SST regions because the root identifier and root cost are the same.

  • BPDUs sent from the pseudobridge ports may have significantly different message ages.

Because the message age increases by one second for each hop, the difference in the message

age is measured in seconds.

- Data traffic from one port of a pseudobridge (a port at the edge of a region) to another port follows

a path entirely contained within the pseudobridge or MST region. Data traffic belonging to different

VLANs might follow different paths within the MST regions established by MST.

- The system prevents looping by doing either of the following: - Blocking the appropriate pseudobridge ports by allowing one forwarding port on the boundary

and blocking all other ports.

  • Setting the CST partitions to block the ports of the SST regions.

Common Spanning Tree

CST (802.1Q) is a single spanning tree for all the VLANs. In a Catalyst 4000 family switch running

PVST+, the VLAN 1 spanning tree corresponds to CST. In a Catalyst 4000 family switch running MST,

IST (instance 0) corresponds to CST.

MST

Region

MST

Region

SST

Region

SST

Region

F

F

F

F

F

F

R

F

F

F

F

F

F

F

B

B

B

B

B

r

r

r

r

r

r

b r

b

F/f = Forwarding

B/b = Blocking

R = Root Bridge

r = Root port

68285

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Overview of MST

If you connect two MST regions with different MST configurations, the MST regions do the following:

- Load balance across redundant paths in the network. If two MST regions are redundantly connected,

all traffic flows on a single connection with the MST regions in a network.

- Provide an RSTP handshake to enable rapid connectivity between regions. However, the

handshaking is not as fast as between two bridges. To prevent loops, all the bridges inside the region

must agree upon the connections to other regions. This situation introduces a delay. We do not

recommend partitioning the network into a large number of regions.

Boundary Ports

A boundary port is a port that connects to a LAN, the designated bridge of which is either an SST bridge

or a bridge with a different MST configuration. A designated port knows that it is on the boundary if it

detects an STP bridge or receives an agreement message from an RST or MST bridge with a different

configuration.

At the boundary, the role of MST ports do not matter; their state is forced to be the same as the IST port

state. If the boundary flag is set for the port, the MSTP Port Role selection mechanism assigns a port

role to the boundary and the same state as that of the IST port. The IST port at the boundary can take up

any port role except a backup port role.

IST Master

The IST master of an MST region is the bridge with the lowest bridge identifier and the least path cost

to the CST root. If an MST bridge is the root bridge for CST, then it is the IST master of that MST region.

If the CST root is outside the MST region, then one of the MST bridges at the boundary is selected as

the IST master. Other bridges on the boundary that belong to the same region eventually block the

boundary ports that lead to the root.

If two or more bridges at the boundary of a region have an identical path to the root, you can set a slightly

lower bridge priority to make a specific bridge the IST master.

The root path cost and message age inside a region stay constant, but the IST path cost is incremented

and the IST remaining hops are decremented at each hop. Enter the show spanning-tree mst command

to display the information about the IST master, path cost, and remaining hops for the bridge.

Edge Ports

A port that is connected to a nonbridging device (for example, a host or a switch) is an edge port. A port

that connects to a hub is also an edge port if the hub or any LAN that is connected to it does not have a

bridge. An edge port can start forwarding as soon as the link is up.

MST requires that you configure each port connected to a host. To establish rapid connectivity after a

failure, you need to block the non-edge designated ports of an intermediate bridge. If the port connects

to another bridge that can send back an agreement, then the port starts forwarding immediately.

Otherwise, the port needs twice the forward delay time to start forwarding again. You must explicitly

configure the ports that are connected to the hosts and switches as edge ports while using MST.

To prevent a misconfiguration, the PortFast operation is turned off if the port receives a BPDU. You can

display the configured and operational status of PortFast by using the show spanning-tree mst interface

command.

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Overview of MST

Link Type

Rapid connectivity is established only on point-to-point links. You must configure ports explicitly to a

host or switch. However, cabling in most networks meets this requirement, and you can avoid explicit

configuration by treating all full-duplex links as point-to-point links by entering the spanning-tree

linktype command.

Message Age and Hop Count

IST and MST instances do not use the message age and maximum age timer settings in the BPDU. IST

and MST use a separate hop count mechanism that is very similar to the IP time-to live (TTL)

mechanism. You can configure each MST bridge with a maximum hop count. The root bridge of the

instance sends a BPDU (or M-record) with the remaining hop count that is equal to the maximum hop

count. When a bridge receives a BPDU (or M-record), it decrements the received remaining hop count

by one. The bridge discards the BPDU (M-record) and ages out the information held for the port if the

count reaches zero after decrementing. The nonroot bridges propagate the decremented count as the

remaining hop count in the BPDUs (M-records) they generate.

The message age and maximum age timer settings in the RST portion of the BPDU remain the same

throughout the region, and the same values are propagated by the region’s designated ports at the

boundary.

MST-to-PVST+ Interoperability

Keep these guidelines in mind when you configure MST switches (in the same region) to interact with

PVST+ switches:

- Configure the root for all VLANs inside the MST region as shown in this example:

Switch# show spanning-tree mst interface gigabitethernet 1/

GigabitEthernet1/1 of MST00 is root forwarding Edge port: no (trunk) port guard : none (default) Link type: point-to-point (auto) bpdu filter: disable (default) Boundary : boundary (PVST) bpdu guard : disable (default) Bpdus sent 10, received 310

Instance Role Sts Cost Prio.Nbr Vlans mapped


0 Root FWD 20000 128.1 1-2,4-2999,4000- 3 Boun FWD 20000 128.1 3,3000-

The ports that belong to the MST switch at the boundary simulate PVST+ and send PVST+ BPDUs

for all the VLANs.

If you enable loop guard on the PVST+ switches, the ports might change to a loop-inconsistent state

when the MST switches change their configuration. To correct the loop-inconsistent state, you must

disable and renewable loop guard on that PVST+ switch.

- Do not locate the root for some or all of the VLANs inside the PVST+ side of the MST switch

because when the MST switch at the boundary receives PVST+ BPDUs for all or some of the

VLANs on its designated ports, root guard sets the port to the blocking state.

When you connect a PVST+ switch to two different MST regions, the topology change from the PVST+

switch does not pass beyond the first MST region. In such a case, the topology changes are propagated

only in the instance to which the VLAN is mapped. The topology change stays local to the first MST

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Configuring MST

This example show how to enable MST:

Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# spanning-tree mode mst

Switch(config)# spanning-tree mst configuration

Switch(config-mst)# show current Current MST configuration Name [] Revision 0 Instance Vlans mapped


0 1-

Switch(config-mst)# name cisco Switch(config-mst)# revision 2 Switch(config-mst)# instance 1 vlan 1 Switch(config-mst)# instance 2 vlan 1- Switch(config-mst)# show pending Pending MST configuration Name [cisco] Revision 2 Instance Vlans mapped


0 1001- 2 1-


Switch(config-mst)# no instance 2 Switch(config-mst)# show pending Pending MST configuration Name [cisco] Revision 2 Instance Vlans mapped


0 1-

Switch(config-mst)# instance 1 vlan 2000- Switch(config-mst)# no instance 1 vlan 1500 Switch(config-mst)# show pending Pending MST configuration Name [cisco] Revision 2 Instance Vlans mapped


0 1-1999,2500,3001-

Step 6 Switch(config-mst)# instance instance_number vlan

vlan_range

Maps the VLANs to an MST instance.

If you do not specify the vlan keyword, you can use the

no keyword to unmap all the VLANs that were mapped

to an MST instance.

If you specify the vlan keyword, you can use the no

keyword to unmap a specified VLAN from an MST

instance.

Step 7 Switch(config-mst)#^ show^ pending^ Displays the new MST configuration to be applied.

Step 8 Switch(config-mst)# end Applies the configuration and exit MST configuration

submode.

Step 9 Switch#^ show^ spanning-tree^ mst^ configuration^ Displays the current MST configuration.

Command Purpose

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Configuring MST

Switch(config-mst)# end Switch(config)# no spanning-tree mst configuration Switch(config)# end Switch# show spanning-tree mst configuration Name [] Revision 0 Instance Vlans mapped


0 1-

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Configuring MST

Configuring MST Instance Port Parameters

To configure MST instance port parameters, perform this task:

This example shows how to configure MST instance port parameters:

Switch(config)# interface fastethernet 4/ Switch(config-if)# spanning-tree mst 1? cost Change the interface spanning tree path cost for an instance port-priority Change the spanning tree port priority for an instance

Switch(config-if)# spanning-tree mst 1 cost 1234567

Switch(config-if)# spanning-tree mst 1 port-priority 240 Switch(config-if)# ^Z

Switch# show spanning-tree mst 1 interface fastethernet 4/

FastEthernet4/4 of MST01 is backup blocking Edge port:no (default) port guard :none (default) Link type:point-to-point (auto) bpdu filter:disable (default) Boundary :internal bpdu guard :disable (default) Bpdus (MRecords) sent 125, received 1782

Instance Role Sts Cost Prio.Nbr Vlans mapped


1 Back BLK 1234567 240.196 1-

Switch#

Restarting Protocol Migration

RSTP and MST have built-in compatibility mechanisms that allow them to interact properly with other

regions or other versions of IEEE spanning-tree. For example, an RSTP bridge connected to a legacy

bridge can send 802.1D BPDUs on one of its ports. Similarly, when an MST bridge receives a legacy

BPDU or an MST BPDU associated with a different region, it is also to detect that a port is at the

boundary of a region.

Unfortunately, these mechanisms cannot always revert to the most efficient mode. For example, an RSTP

bridge designated for a legacy 802.1D will stay in 802.1D mode even after the legacy bridge has been

removed from the link. Similarly, an MST port still assumes that it is a boundary port when the bridge(s)

to which it is connected have joined the same region. To force a Catalyst 4000 family switch to

renegotiate with the neighbors (that is, to restart protocol migration), you must enter the clear

spanning-tree detected-protocols command, as follows:

Switch# clear spanning-tree detected-protocols fastethernet 4/ Switch#

Command Purpose

Step 1 Switch(config-if)# spanning-tree mst x cost y Configures the MST instance port cost.

Step 2 Switch(config-if)#^ spanning-tree^ mst^ x^ port-priority^ y^ Configures the MST instance port priority.

Step 3 Switch(config-if)# Ctrl-Z Exits configuration mode.

Step 4 Switch#^ show^ spanning-tree^ mst^ x^ interface^ y^ Verifies the configuration.

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Configuring MST

Displaying MST Configurations

To display MST configurations, perform this task:

The following examples show how to display spanning tree VLAN configurations in MST mode:

Switch(config)# spanning-tree mst configuration Switch(config-mst)# instance 1 vlan 1- Switch(config-mst)# name cisco Switch(config-mst)# revision 1 Switch(config-mst)# Ctrl-D

Switch# show spanning-tree mst configuration Name [cisco] Revision 1 Instance Vlans mapped


0 11- 1 1-


Switch# show spanning-tree mst

MST00 vlans mapped: 11-

Bridge address 00d0.00b8.1400 priority 32768 (32768 sysid 0) Root address 00d0.004a.3c1c priority 32768 (32768 sysid 0) port Fa4/48 path cost 203100 IST master this switch Operational hello time 2, forward delay 15, max age 20, max hops 20 Configured hello time 2, forward delay 15, max age 20, max hops 20

Interface Role Sts Cost Prio.Nbr Status


Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p Fa4/48 Root FWD 200000 128.240 P2p Bound(STP)

MST01 vlans mapped: 1-

Bridge address 00d0.00b8.1400 priority 32769 (32768 sysid 1) Root this switch for MST

Interface Role Sts Cost Prio.Nbr Status


Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p Fa4/48 Boun FWD 200000 128.240 P2p Bound(STP)

Command Purpose

Step 1 Switch# show spanning-tree mst configuration Displays the active region configuration information.

Step 2 Switch#^ show^ spanning-tree^ mst^ [ detail ]^ Displays detailed MST protocol information.

Step 3 Switch# show spanning-tree mst instance-id [ detail ] Displays information about a specific MST instance.

Step 4 Switch#^ show^ spanning-tree^ mst^ interface^ interface

[ detail ]

Displays information for a given port.

Step 5 Switch#^ show^ spanning-tree^ mst^ instance-id

interface interface [ detail ]

Displays MST information for a given port and a given

instance.

Step 6 Switch#^ show^ spanning-tree^ vlan^ vlan_ID^ Displays VLAN information in MST mode.

Software Configuration Guide—Release 12.2(18)EW 78-16200-

Configuring MST

FastEthernet4/48 of MST01 is boundary forwarding Port info port id 128.240 priority 128 cost 200000 Designated root address 00d0.00b8.1400 priority 32769 cost 0 Designated bridge address 00d0.00b8.1400 priority 32769 port id 128. Timers:message expires in 0 sec, forward delay 0, forward transitions 1 Bpdus (MRecords) sent 78, received 0

Switch# show spanning-tree vlan 10

MST Spanning tree enabled protocol mstp Root ID Priority 32769 Address 00d0.00b8. This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 00d0.00b8. Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Interface Role Sts Cost Prio.Nbr Status


Fa4/4 Back BLK 1000 240.196 P2p Fa4/5 Desg FWD 200000 128.197 P2p

Switch# show spanning-tree summary Root bridge for:MST EtherChannel misconfiguration guard is enabled Extended system ID is enabled Portfast is disabled by default PortFast BPDU Guard is disabled by default Portfast BPDU Filter is disabled by default Loopguard is disabled by default UplinkFast is disabled BackboneFast is disabled Pathcost method used is long

Name Blocking Listening Learning Forwarding STP Active


MST00 1 0 0 2 3 MST01 1 0 0 2 3


2 msts 2 0 0 4 6 Switch#