VRRP simple experiment---

VRRP personal understanding and simple experiment of topology map

VRRP stands for Virtual Router Redundancy Protocol (Virtual Router Redundancy Protocol), which is a fault-tolerant protocol to avoid a single point of failure of routers.

Personal understanding :
1. Abstract multiple routers running the vrrp protocol into a virtual router.
2. The virtual router selects the Master and Backup devices by priority. The higher the priority, the more it can become the Master device.
3. When the Master device times out or fails down, a preemption mechanism will be enabled to put the Backup device on top; or the Master and Backup will negotiate by sending vrrp messages, who will do (master) and who will do (standby) )
4. In this way, the pressure of the main router is shared and the impact and loss caused by the failure are reduced

Topology experiment:

Insert picture description here
LS1:建立vlan10 20,并加入到各access接口中
sys
[Huawei]v b 10 20
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]p l a
[Huawei-Ethernet0/0/1]p d v 10
[Huawei-Ethernet0/0/1]un sh
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]p l a
[Huawei-Ethernet0/0/2]p d v 20
[Huawei-Ethernet0/0/2]un sh
[Huawei-Ethernet0/0/2]int g0/0/1
[Huawei-GigabitEthernet0/0/1]p l t
[Huawei-GigabitEthernet0/0/1]p t a v 10 20
[Huawei-GigabitEthernet0/0/1]un sh
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]p l t
[Huawei-GigabitEthernet0/0/2]p t a v 10 20
[Huawei-GigabitEthernet0/0/2]un sh

LS2: Dual active and dual standby
sys
[Huawei]sys LS2
[LS2]vb 10 20 100 #####Establish vlan 10 20 100
[LS2]int g0/0/1
[LS2-GigabitEthernet0/0/1]pla ##
#Set the access port [LS2-GigabitEthernet0/0/1]pdv 100
[LS2-GigabitEthernet0/0/1]un sh
[LS2-GigabitEthernet0/0/1]int g0/0/2
[LS2-GigabitEthernet0/0/2] plt
[LS2-GigabitEthernet0/0/2]ptav 10 20
[LS2-GigabitEthernet0/0/2]un sh
[LS2-GigabitEthernet0/0/2]q
[LS2]int vlanif 10
[LS2-Vlanif10]ip add 192.168.10.10 24
[LS2-Vlanif10]vrrp vrid 1 virtual-ip 192.168.10.1######Set vrrp virtual interface and set ip
[LS2-Vlanif10]vrrp vrid 1 priority 120######Set vrrp priority
[LS2 -Vlanif10]vrrp vrid 1 track int g0/0/1
[LS2-Vlanif10]vrrp vrid 1 track int g0/0/2######Set monitoring ports g0/0/1 and g0/0/2
[LS2-Vlanif10]int vlanif 20
[LS2-Vlanif20]ip add 192.168.20.10 24
[LS2-Vlanif20]vrrp vrid 2 virtual-ip 192.168.20.1######Set vlan20 vrrp virtual interface and set ip
[LS2-Vlanif20]vrrp vrid 2 priority 115######Set vrrp Priority, because it is a backup line, there is no need to monitor
[LS2-Vlanif20]int vlanif 100
[LS2-Vlanif100]ip add 11.0.0.2 30
[LS2-Vlanif100]q
[LS2]ip route-static 0.0.0.0 0.0.0.0 11.0 .0.1 ########Set the default route

LS3: Dual active dual standby
sys
[Huawei]sys LS3
[LS3]vb 10 20 100
[LS3]int vlanif 10
[LS3-Vlanif10]ip add 192.168.10.20 24
[LS3-Vlanif10]vrrp vrid 1 virtual-ip 192.168.10.1 ######Set the virtual port of vrrp and set ip
[LS3-Vlanif10]vrrp vrid 1 priority 115######Set the priority of vrrp, because it is a backup line, there is no need to monitor
[LS3-Vlanif10]int vlanif 20 [LS3-Vlanif20]ip add 192.168.20.20 24
[LS3-Vlanif20]vrrp vrid 2 virtual-ip 192.168.20.1######Set the vrrp virtual port and set ip
[LS3-Vlanif20]vrrp vrid 2 priority 120## ####Set the vrrp priority
[LS3-Vlanif20]vrrp vrid 2 track int g0/0/1
[LS3-Vlanif20]vrrp vrid 2 track int g0/0/2######Set the monitoring port g0/0 /1 and g0/0/2
[LS3-Vlanif20]int vlanif 100
[LS3-Vlanif100]ip add 12.0.0.2 30
[LS3-Vlanif100]int g0/0/1
[LS3-GigabitEthernet0/0/1]p l a
[LS3-GigabitEthernet0/0/1]p d v 100
[LS3-GigabitEthernet0/0/1]un sh
[LS3-GigabitEthernet0/0/1]int g0/0/2
[LS3-GigabitEthernet0/0/2]p l t
[LS3-GigabitEthernet0/0/2]p t a v 10 20
[LS3-GigabitEthernet0/0/2]un sh
[LS3-GigabitEthernet0/0/2]q
[LS3]ip route-static 0.0.0.0 0.0.0.0 12.0.0.1

R1: Set the cyclic ip address loo 0, set four static routes
sys
[Huawei]sys R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 11.0.0.1 30
[R1-GigabitEthernet0/0/ 0]un sh
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 12.0.0.1 30
[R1-GigabitEthernet0/0/1]q
[R1]ip route- static 192.168.10.0 24 11.0.0.2
[R1]ip route-static 192.168.10.0 24 12.0.0.2 permanent 70
[R1]ip route-static 192.168.20.0 24 11.0.0.2 preference 70
[R1]ip route-static 192.168.20.0 24 12.0.0.2
[R1]int loo 0
[R1-LoopBack0]ip add 1.1.1.1 24

The most is ping test and packet capture test OK

If you think it's good, please like it-

Guess you like

Origin blog.csdn.net/XCsuperman/article/details/107048781