Switch(config)#
spanning-tree vlan 10 prioity (4096的倍数) //配置vlan10生成树的优先级
Switch(config)#spanning-tree vlan 10 root //配置本交换机为vlan10生成树为主根
Switch(config)#spanning-tree vlan 10 secondary //配置本交换机为vlan10生成树为次根根
Switch#show apanning-tree vlan 10 //查看vlan 10 生成树的状态
vlan 10
vlan 20
vlan 30
vlan 40
配置VRRP)
Switch(config-if)#standby 20 ip 192.168.20.254 //配置虚拟ip
Switch(config-if)#standby 10 priority 105 //配置优先级
Switch(config-if)#standby 10 preempt //开启占先权
原文地址:http://blog.51cto.com/13562306/2074133