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

2014年(9)

2013年(20)

2012年(77)

2011年(323)

2009年(4)

分类:

2012-02-07 20:46:53

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

Services 1(config)#spanning-tree mst configuration

Services 1(config-mst)#name region1

Services 1(config-mst)#revision 10

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

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

Services 1(config-mst)#exit

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

Services 2(config)#spanning-tree mst configuration

Services 2(config-mst)#name region1

Services 2(config-mst)#revision 10

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

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

Services 2(config-mst)#exit

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

Services 1(config)#interface FastEthernet0/5

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

!

Services 1(config)#interface FastEthernet0/47

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

!

Services 1(config)#interface FastEthernet0/48

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

!

Services 2(config)#interface FastEthernet0/6

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

!

Services 2(config)#interface FastEthernet0/47

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

!

Services 2(config)#interface FastEthernet0/48

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

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

Services 1(config)#spanning-tree mode mst

Services 2(config)#spanning-tree mode mst

下面是配置两汇聚层交换机间的中继链路上的VLAN通信流负载均衡。这是通过配置Services 1交换机Fa 0/47端口对于MST2实例具有比Fa 0/46端口更低的端口开销值,使在Fa 0/47端口只传输MST2实例中的VLAN通信。注意,这里也只需要在中继链路的一端配置即可。然后在Services 2交换机配置Fa 0/6端口对于MST1实例中VLAN的路径开销值更高,从而禁止从Fa 0/46端口传输MST1实例中的VLAN通信,只允许传输MST2中的VLAN通信。

Services 1(config)#interface fastEthernet 0/46

Services 1(config-if)#spanning-tree mst 2 cost 200000   !--

Services 1(config-if)#exit

Services 1(config)#interface fastEthernet 0/47

Services 1(config-if)#spanning-tree mst 2 cost 100000

Services 1(config-if)#exit

 

Services 2(config)#interface FastEthernet 0/6

Services 2(config-if)#spanning-tree mst 1 cost 500000

Services 2(config-if)#exit

以下是清除两汇聚层交换机上的PVST+ UplinkFastBackboneFast特性配置,恢复Services 1交换机Fa0/5端口对于VLAN 100的路径开销值为默认值,恢复Services 2交换机Fa0/6端口对于VLAN 200的路径开销值为默认值,恢复Services 2交换机Fa0/48端口对于VLAN 200的端口优先级值为默认值。

Services 1(config)#no spanning-tree uplinkfast

Services 1(config)#no spanning-tree backbonefast

Services 1(config)#interface FastEthernet0/5

Services 1(config-if)#no spanning-tree vlan 100 cost 18

Services 1(config-if)#exit

 

Services 2(config)#no spanning-tree uplinkfast

Services 2(config)#no spanning-tree backbonefast

Services 2(config)#interface FastEthernet0/6

Services 2(config-if)#no spanning-tree vlan 200 cost 18

Services 2(config-if)#exit

Services 2(config)#interface FastEthernet0/48

Services 2(config-if)#no spanning-tree vlan 200 port-priority 64

Services 2(config-if)#exit

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