STP的配置
原创
©著作权归作者所有:来自51CTO博客作者renxinfang的原创作品,请联系作者获取转载授权,否则将追究法律责任
1、配置交换机SW1和SW2上配置PVST
交换机SW1的PVST配置:
RXF-SW1 (config)#spanning-tree
vlan 10 root primary
RXF-SW1 (config)#spanning-tree
vlan 20 root primary
RXF-SW1 (config)#spanning-tree
vlan 30 root secondary
RXF-SW1 (config)#spanning-tree
vlan 40 root secondary
交换机SW2的PVST配置
RXF-SW2(config)#spanning-tree
vlan 10 root secondary
RXF-SW2
(config)#spanning-tree vlan 20 root secondary
RXF-SW2
(config)#spanning-tree vlan 30 root primary
RXF-SW2
(config)#spanning-tree vlan 40 root primary
2、配置以太网通道
交换机SW1上的配置:
RXF-SW1(config)#int
range f0/0 -1
RXF-SW1(config-if-range)#channel-group
1 mo on
交换机SW2上的配置
RXF-SW2(config)#int
range f0/0 -1
RXF-SW2(config-if-range)#channel-group
1 mo on
3、在交换机SW3和SW4上配置uplinkfast
RXF-SW3(config)#spanning-tree
uplinkfast
RXF-SW4(config)#spanning-tree
uplinkfast