Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2042061
  • 博文数量: 433
  • 博客积分: 4775
  • 博客等级: 上校
  • 技术积分: 8054
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-19 16:15
文章存档

2014年(9)

2013年(20)

2012年(77)

2011年(323)

2009年(4)

分类:

2012-02-07 20:45:48

以下是Distribution 1交换机的MST实例配置:

Distribution 1(config)#spanning-tree mst configuration

Distribution 1(config-mst)#name region1

Distribution 1(config-mst)#revision 10

Distribution 1(config-mst)#instance 1 vlan 10, 30, 100

Distribution 1(config-mst)#instance 2 vlan 20, 40, 200

Distribution 1(config-mst)#exit

Distribution 1(config)#spanning-tree mst 0-1 root primary  !--配置Distribution 1作为IST0MST1两个实例的根交换机

Distribution 1(config)#spanning-tree mst 2 root secondary  !--配置Distribution 1作为MST2实例的从根交换机

以下是Distribution 2交换机的MST实例配置:

Distribution 2(config)#spanning-tree mst configuration

Distribution 2(config-mst)#name region1

Distribution 2(config-mst)#revision 10

Distribution 2(config-mst)#instance 1 vlan 10, 30, 100

Distribution 2(config-mst)#instance 2 vlan 20, 40, 200

Distribution 2(config-mst)#exit

Distribution 2(config)#spanning-tree mst 2 root primary            !--配置Distribution 2作为MST2实例的根交换机

Distribution 2(config)#spanning-tree mst 0-1 root secondary         !--配置Distribution 2作为IST0MST1两个实例的从根交换机

 

以下是配置两分布层交换机中的所有中继链路上可以承载所有VLAN通信。

Distribution 1(config)#interface FastEthernet1/0/1

Distribution 1(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200    !--允许在FastEthernet1/0/1中继接口上承载当前实例

                                                                                                                !--中的所有VLAN通信

!

Distribution 1(config)#interface FastEthernet1/0/3

Distribution 1(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

!

Distribution 1(config)#interface FastEthernet1/0/5

Distribution 1(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

!

Distribution 1(config)#interface FastEthernet1/0/23

Distribution 1(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

!

Distribution 1(config)#interface FastEthernet1/0/24

Distribution 1(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

 

Distribution 2(config)#interface FastEthernet1/0/2

Distribution 2(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

!

Distribution 2(config)#interface FastEthernet1/0/4

Distribution 2(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

!

Distribution 2(config)#interface FastEthernet1/0/6

Distribution 2(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

!

Distribution 2(config)#interface FastEthernet1/0/23

Distribution 2(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

!

Distribution 2(config)#interface FastEthernet1/0/24

Distribution 2(config-if)#switchport trunk allowed vlan 10,20,30,40,100,200

以下是把两分布层交换机上当前的PVST+模式迁移到MSTP模式。

Distribution 1(config)#spanning-tree mode mst

Distribution 2(config)#spanning-tree mode mst

以下是通过配置Distribution 2交换机上Fa1/0/24端口更高的优先级(优先级值比默认的128更小)来承载MST2实例中的语音通信。注意,这里只需要在中继链路的一端配置即可(当然也可以只配置Distribution 1中的Fa1/0/24端口)。

Distribution 2(config)#interface FastEthernet1/0/24

Distribution 2(config-if)#spanning-tree mst 2 port-priority 64

以下配置是清除原来PVST+模式中的BackboneFast特性配置,并且删除Distribution 2交换机上Fa1/0/24端口的优先级配置。因为在本示例前面的配置中已把Distribution 1作为IST0实例的根交换机,所以Distribution 1也就自然成为了CIST的根。

Distribution 1(config)#no spanning-tree backbonefast

Distribution 2(config)#no spanning-tree backbonefast

Distribution 2(config)#interface FastEthernet1/0/24

Distribution 2(config-if)#no spanning-tree vlan 20,40,200 port-priority 64    !--删除Distribution 2作为VLAN 2040200所在实例的

                                                                                                           !--根交换机配置(是通过恢复其Fa1/0/24端口优先级为

                                                                                                           !--默认的128来实现的)

Distribution 1Distribution 2交换机是在MST region1(区域1)中,PVST+交换机把region1看成一***立的交换机。你也可以配置利用不同中继端口均衡MST1MST2两实例中的VLAN通信。

阅读(912) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~