How to configure VRRP on Ruijie switch?
Introduction of VRRPVRRP (Virtual Router Redundancy Protocol) is a routing fault tolerance protocol. When the device that undertakes the routing and forwarding function in the LAN fails, another one will automatically take over, thus realizing hot backup and fault tolerance of IP routing, and also ensuring the continuity and reliability of host communication in the LAN, mainly used in the scenario of redundant backup of LAN routing egress.
Applied scenario:
If a host in the existing network uses the default gateway to contact the external network, if the Gateway fails, the hosts connected to it will lose contact with the outside world, resulting in service interruption.
VRRP solves this problem by forming multiple devices into a virtual device and configuring the IP address of the virtual device as the default gateway to enable backup of the default gateway. When a gateway device fails, the VRRP mechanism is able to elect a new gateway device to take up the data traffic, thus guaranteeing reliable communication in the network.
Case of configuration
a) Requirement
The cluster of Work Station A and Work Station B (192.168.201.0/24) uses the virtual IP address 192.168.201.1of the VRRP group constituted by the routers R1 and R2asthe gateway address to communicate with Work Station B (192.168.12.0 /24).
GigabitEthernet 2/1on R1 is configured as the tracked interface.
No VRRP but an ordinary routing function is configured on R3.
b) Network Topology
data/attachment/forum/202308/15/133017g71yaizuvckdsk0j.png
c) Configuration
R3
R3#configure terminal
R3(config)#interface GigabitEthernet0/0// The command “no switchport” is only required for a switch. R3(config-if-GigabitEthernet0/0)#no switchport
R3(config-if-GigabitEthernet0/0)#ip address 192.168.12.217 255.255.255.0
R3(config-if-GigabitEthernet0/0)#exit
R3(config)#interface GigabitEthernet 1/1// The command “no switchport” is only required for a switch. R3(config-if-GigabitEthernet 1/1)#no switchport
R3(config-if-GigabitEthernet 1/1)#ip address 60.154.101.5 255.255.255.0
R3(config-if-GigabitEthernet 1/1)#exit
R3(config)#interface GigabitEthernet 2/1// The command “no switchport” is only required for a switch.
R3(config-if-GigabitEthernet 2/1)#no switchport
R3(config-if-GigabitEthernet 2/1)#ip address 202.101.90.61 255.255.255.0
R3(config-if-GigabitEthernet 2/1)#exit
R3(config)#router ospf
R3(config-router)#network 202.101.90.0 0.0.0.255 area 10
R3(config-router)#network 192.168.12.0 0.0.0.255 area 10
R3(config-router)#network 60.154.101.0 0.0.0.255 area 10
R1
R1#configure terminal
R1(config)#interface GigabitEthernet0/0
R1(config-if-GigabitEthernet0/0)#ip address 192.168.201.217 255.255.255.0
R1(config-if-GigabitEthernet0/0)#vrrp 1 priority 120
R1(config-if-GigabitEthernet0/0)#vrrp 1 version 3
R1(config-if-GigabitEthernet0/0)#vrrp 1 timers advertise 3
R1(config-if-GigabitEthernet0/0)#vrrp 1 ip 192.168.201.1
R1(config-if-GigabitEthernet0/0)#vrrp 1 track GigabitEthernet 2/1 30
R1(config-if-GigabitEthernet0/0)#exit
R1(config)#interface GigabitEthernet 2/1
R1(config-if-GigabitEthernet 2/1)#ip address 202.101.90.63 255.255.255.0
R1(config-if-GigabitEthernet 2/1)#exit
R1(config)#router ospf
R1(config-router)#network 202.101.90.0 0.0.0.255 area 10
R1(config-router)#network 192.168.201.0 0.0.0.255 area 10
R2
R2#configure terminal
R2(config)#interface GigabitEthernet0/0
R2(config-if-GigabitEthernet0/0)#ip address 192.168.201.213 255.255.255.0
R2(config-if-GigabitEthernet0/0)#vrrp 1 ip 192.168.201.1
R2(config-if-GigabitEthernet0/0)#vrrp 1 version 3
R2(config-if-GigabitEthernet0/0)#vrrp 1 timers advertise 3
R2(config-if-GigabitEthernet0/0)#exit
R2(config)#interface GigabitEthernet 1/1// The command “no switchport” is only required for a switch.
R2(config-if-GigabitEthernet 1/1)#no switchport
R2(config-if-GigabitEthernet 1/1)#ip address 60.154.101.3 255.255.255.0
R2(config-if-GigabitEthernet 1/1)#exit
R2(config)#router ospf
R2(config-router)#network 60.154.101.0 0.0.0.255 area 10
R2(config-router)#network 192.168.201.0 0.0.0.255 area 10
Verification
Run the show vrrp command to verify the configuration.
Check whether R1, which acts as the Master, reduces its VRRP priority from 120 to 90 when GigabitEthernet2/1 connected to the Wide Area Network(WAN) is unavailable. If yes, R2 becomes the Master.
Check whether R1 resumes its VRRP priority from 30 to 120 when GigabitEthernet 2/1 connected to the WAN recovers. If yes, R1 is re-elected as the Master.
Pages:
[1]