RSTP Configuration

By configuring RSTP, edge port, when the switch to modify the priority, changing the topology of the port state fast switching.

1.1.1 Topology

 

1.1.2 Configuration

1) at STP configuration, as modifications spanning tree mode rstp.

xNet#configure terminal

xNet(config)#spanning-tree mode rstp

xNet(config)#end

XNET #

Check that the port status, block the port 208 ge48

2) Set ge25 as edge ports to achieve rapid transition to the forwarding state properties

xNet#configure terminal

xNet(config)#interface ge25

xNet(config-if)#spanning-tree edgeport

xNet(config-if)#end

XNET #

Priority 3) changing the switch, so that a topology change

xNet#configure terminal

xNet(config)#spanning-tree priority 4096

xNet(config)#end

XNET #

4) Check the port status change

When the topology changes, the port can be quickly switched state, becomes ge1 207 becomes the Discarding state, the other port is Forwarding.

1.1.3 results

By configuring RSTP, edge port, when the switch to modify the priority, changing the topology, the port state can be quickly switched.

 

1.2         MSTP

Configuration Example 3, Example 1: vlan11, vlan12; Example 2: vlan13, vlan14; Example 3: vlan15; calculating port state change by different instances of the protocol.

1.2.1 Topology

 

Configuring

1) three exchange points arranged Example 3

Example 1: vlan11, vlan12;

Example 2: vlan13, vlan14;

Example 3: vlan15;

In an example configuration unit 207, 208 and 206 similar to the machine configuration:

a) create vlan

xNet#configure terminal

xNet(config)#vlan database

xNet(config-vlan)#vlan 11-15

xNet(config-vlan)#end

XNET #

b) Configuration MSTP

xNet#configure terminal

xNet(config)#spanning-tree mode mstp

xNet(config)#spanning-tree mst configuration

xNet(config-mst)#instance 1 vlan 11-12

xNet(config-mst)#instance 2 vlan 13-14

xNet(config-mst)#instance 3 vlan 15

xNet(config-mst)#exit

c) Examples of the port to

xNet(config)#interface ge1

xNet(config-if)#switchport

xNet(config-if)#switchport mode trunk

xNet(config-if)#switchport trunk allowed vlan add 11-15

xNet(config-if)#spanning-tree instance 1

xNet(config-if)#spanning-tree instance 2

xNet(config-if)#spanning-tree instance 3

xNet(config-if)#exit

xNet(config)#interface xe3

xNet(config-if)#switchport

xNet(config-if)#switchport mode trunk

xNet(config-if)#switchport trunk allowed vlan add 11-15

xNet(config-if)#spanning-tree instance 1

xNet(config-if)#spanning-tree instance 2

xNet(config-if)#spanning-tree instance 3

xNet(config-if)#end

XNET #

 

2) three are view each switch port in the port state in each instance, the result is:

command:

xNet#show spanning-tree mst instance 1 interface ge1

Examples 1 block of port: 206 xe1

Example 2 block of port: 206 xe1

Example 3 block of port: 206 xe1

Other ports are Forwarding

3) change the priority of a switch, each switch as an example of the root (root 207 of Example 1, Example 2 as the root 208, the root 206 of Example 3):

207:

xNet#configure terminal

xNet(config)#spanning-tree instance 1 priority 0

xNet(config)#end

XNET #

208:

xNet#configure terminal

xNet(config)#spanning-tree instance 2 priority 0

xNet(config)#end

XNET #

206:

xNet#configure terminal

xNet(config)#spanning-tree instance 3 priority 0

xNet(config)#end

XNET #

 

4) Check the port status after the Priority Review:

Examples 1 block of port: 206 xe1

Example 2 block of port: 206 xe3

Example 3 block of port: 208 ge1

Other ports are Forwarding

1.2.3 results

Configuration Example 3, Example 1: vlan11, vlan12; Example 2: vlan13, vlan14; Example 3: vlan15; calculated by different instances of the port status protocol can vary.

Guess you like

Origin www.cnblogs.com/niezhongle/p/11075318.html