三层设备-SHRP详解-编程知识网

步骤:
3-sw1
en
conf t
vlan database
vtp domain s2t117
vtp server
vlan 10
vlan 20
vlan 30
vlan 40
exit
int r f0/7 – 9
sw t e d
sw m t
exit
int vlan10
ip add 10.1.1.1 255.0.0.0
no sh
int vlan20
ip add 20.1.1.1 255.0.0.0
no sh
int vlan30
ip add 30.1.1.1 255.0.0.0
no sh
int vlan40
ip add 40.1.1.1 255.0.0.0
no sh
exit
int f0/5
no switch
ip add 50.1.1.1 255.0.0.0
no sh

3-sw2
en
conf t
vlan database
vtp domain s2t117
vtp client
exit
int r f0/7 – 9
sw t e d
sw m t
exit
int f0/6
no switch
ip add 60.1.1.1 255.0.0.0
no sh
exit

2-sw1
en
conf t
vlan database
vtp domain s2t117
vtp client
exit
int r f0/8 – 9
sw m t
exit
int f0/1
sw a v 10
int f0/2
sw a v 20

2sw-2
en
conf t
vlan database
vtp domain s2t117
vtp client
exit
int r f0/8 – 9
sw m t
exit
int f0/3
sw a v 30
int f0/4
sw a v 40

3sw-1
spanning-tree vlan 10 priority
spanning-tree vlan 20 priority
spanning-tree vlan 30 secondary
spanning-tree vlan 40 secondary

3-sw2
spanning-tree vlan 10 secondary
spanning-tree vlan 20 secondary
spanning-tree vlan 30 priority
spanning-tree vlan 40 priority

3-sw1
int vlan10
standby 10 ip 10.1.1.254
standby 10 priority 150
standby 10 track f0/5 60
standby 10 track f0/7 60
standby 10 track f0/9 60
exit
int vlan20
standby 20 ip 20.1.1.254
standby 20 priority 150
standby 20 track f0/5 60
standby 20 track f0/7 60
standby 20 track f0/9 60

3sw-2
int vlan30
standby 30 ip 30.1.1.254
standby 30 priority 150
standby 30 track f0/6 60
standby 30 track f0/7 60
standby 30 track f0/9 60
exit