实验背景:
为了保证办公室7x24小时无断网故障,特设计此网络,此设计为思科设备环境
网络拓扑:
VLAN100:10.62.100.0/24 VIP:10.62.100.254
VLAN200: 10.62.200.0/24 VIP:10.62.200.254
核心互联:10.62.101.0/30
核心交换机SW01基础配置:
interface Ethernet0/0
no switchport
ip address 10.62.101.1 255.255.255.252
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunkinterface Ethernet0/0
no switchport
router ospf 100
network 10.62.100.0 0.0.0.255 area 0
network 10.62.101.0 0.0.0.3 area 0
network 10.62.200.0 0.0.0.255 area 0
核心交换机SW02基础配置:
interface Ethernet0/0
no switchport
ip address 10.62.101.2 255.255.255.252
!
interface Ethernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
router ospf 100
network 10.62.100.0 0.0.0.255 area 0
network 10.62.101.0 0.0.0.3 area 0
network 10.62.200.0 0.0.0.255 area 0
SW01的HSRP配置
interface Vlan100
ip address 10.62.100.253 255.255.255.0
standby 100 ip 10.62.100.254
standby 100 priority 200
standby 100 preempt delay minimum 1
!
interface Vlan200
ip address 10.62.200.253 255.255.255.0
standby 200 ip 10.62.200.254
SW02的HSRP配置
interface Vlan100
ip address 10.62.100.252 255.255.255.0
standby 100 ip 10.62.100.254
!
interface Vlan200
ip address 10.62.200.252 255.255.255.0
standby 200 ip 10.62.200.254
standby 200 priority 200
standby 200 preempt delay minimum 1
MSTP配置
SW01:
spanning-tree mode mst
!
spanning-tree mst configuration
instance 1 vlan 100
instance 2 vlan 200
!
spanning-tree mst 1 priority 0
spanning-tree mst 2 priority 4096
SW02:
spanning-tree mode mst
!
spanning-tree mst configuration
instance 1 vlan 100
instance 2 vlan 200
!
spanning-tree mst 1 priority 4096
spanning-tree mst 2 priority 0
!
SW03:
spanning-tree mode mst
!
spanning-tree mst configuration
instance 1 vlan 100
instance 2 vlan 200
SW04:
spanning-tree mode mst
!
spanning-tree mst configuration
instance 1 vlan 100
instance 2 vlan 200