交换机vrrp模拟实验演练

优质老薛主机推荐:15%终身付款折扣:xwseo15 25%首次付款折扣 : xwseo115 点击下图进入购买

企业组网交换机vrrp模拟实验演练

组网需求:

通过三层交换机实现企业的需求,通过vrrp冗余网关从而实现企业的双向链路进行通信。pc1电脑的ip为:192.168.10.1  掩码:24 网关:192.168.10.254

acsw交换机配置

<acsw>dis cu
#
sysname acsw
#
undo info-center enable
#
vlan batch 10 100
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 10

coresw1交换机配置

<Huawei>dis cu
#
sysname coresw1
#
undo info-center enable
#
vlan batch 10 100
#
interface Vlanif10
ip address 192.168.10.252 255.255.255.0
vrrp vrid 10 virtual-ip 192.168.10.254
vrrp vrid 10 priority 120
vrrp vrid 10 preempt-mode timer delay 20
vrrp vrid 10 track interface GigabitEthernet0/0/2 reduced 30
#
interface Vlanif100
ip address 192.168.100.1 255.255.255.252
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 100
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
ip route-static 0.0.0.0 0.0.0.0 192.168.100.2

coresw2交换机配置

<coresw2>dis cu
#
sysname coresw2
#
undo info-center enable
#
vlan batch 10 200
#
interface Vlanif10
ip address 192.168.10.253 255.255.255.0
vrrp vrid 10 virtual-ip 192.168.10.254
#
interface Vlanif200
ip address 192.168.200.1 255.255.255.252
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 200
#
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
ip route-static 0.0.0.0 0.0.0.0 192.168.200.2

AR1l路由器配置

<AR1>dis cu
#
sysname AR1
#
interface GigabitEthernet0/0/0
ip address 100.1.1.2 255.255.255.252
#
interface GigabitEthernet0/0/1
ip address 192.168.100.2 255.255.255.252
#
interface GigabitEthernet0/0/2
ip address 192.168.200.2 255.255.255.252
#
ip route-static 192.168.10.0 255.255.255.0 192.168.100.1
ip route-static 192.168.10.0 255.255.255.0 192.168.200.1

AR2l路由器配置

<Huawei>dis cu
#
interface GigabitEthernet0/0/0
ip address 100.1.1.1 255.255.255.252
#
ip route-static 192.168.10.0 255.255.255.0 100.1.1.2

验证实验现象:

网关ping

网关ping

ping外网互联网

ping外网互联网

我们看看走了哪条路:

路线

链路监听

链路监听

 

当第一条链路不通,切换到第二条链路:

链路切换

主备切换、

主备切换

 

赞 (0)
分享到:更多 ()