内容发布更新时间 : 2024/12/27 13:40:55星期一 下面是文章的全部内容请认真阅读。
VRRP+MSTP实验
要求:
1.client1属于VLAN2(192.168.1.1/24) client2属于VLAN3 (192.168.2.1/24)
2.SW1SW2 SW3运行MSTP+VRRP,SW1作为1.0的根桥(同时作为网关VRRP为MASTER)SW2作为2.0 的根桥(同时作为网关VRRP为MASTER) 3.SW1SW2之间链路聚合
4.用R1的两个环回口模拟OABOSS服务器 IP分别为1.1.1.1,2.2.2.2 5.client1选择SW1到OABOSS ,client2选择SW2到OABOSS 6.SW1SW2 AR1之间运行OSPF协议
7.在AR1上起两个环回口模拟OABOSS服务器
8.CLIENT1和CLIENT2能相互通信并且二者都可以和OABOSS服务器通信
配置如下: AR1:
interface GigabitEthernet0/0/0
ip address 172.16.1.2 255.255.255.0 #
interface GigabitEthernet0/0/1
ip address 172.16.2.2 255.255.255.0 #
interface LoopBack0
ip address 1.1.1.1 255.255.255.255//模拟OA网 #
interface LoopBack1
ip address 2.2.2.2 255.255.255.255//模拟BOSS网 #
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0 network 2.2.2.2 0.0.0.0 network 172.16.1.2 0.0.0.0 network 172.16.2.2 0.0.0.0 # SW1:
vlan batch 2 to 3 20 #
stp instance 1 root primary stp instance 2 root secondary #
stp region-configuration region-name xx instance 1 vlan 2 instance 2 vlan 3
active region-configuration #
interface Vlanif2
ip address 192.168.1.251 255.255.255.0 vrrpvrid 1 virtual-ip 192.168.1.254 vrrpvrid 1 priority 120 #
interface Vlanif3
ip address 192.168.2.251 255.255.255.0 vrrpvrid 2 virtual-ip 192.168.2.254 #
interface Vlanif20
ip address 172.16.1.1 255.255.255.0
#
interface Eth-Trunk0 port link-type trunk
port trunk allow-pass vlan 2 to 3 #
interface GigabitEthernet0/0/1 port link-type access port default vlan 20 #
interface GigabitEthernet0/0/2 port link-type trunk
port trunk allow-pass vlan 2 to 3 #
interface GigabitEthernet0/0/23 eth-trunk 0 #
interface GigabitEthernet0/0/24 eth-trunk 0 #
interface NULL0 #
ospf 1
area 0.0.0.0
network 192.168.1.251 0.0.0.0 network 192.168.2.251 0.0.0.0 network 172.16.1.1 0.0.0.0 # SW2:
vlan batch 2 to 3 30 #
stp instance 1 root secondary stp instance 2 root primary #
stp region-configuration region-name xx instance 1 vlan 2 instance 2 vlan 3
active region-configuration #
interface Vlanif2
ip address 192.168.1.252 255.255.255.0 vrrpvrid 1 virtual-ip 192.168.1.254 #
interface Vlanif3