Forgot password?
 Register now

Welcome to use this form to feedback your problems with Ruijie Community

The category of your feedback

Your Feedback

Your Email address (optional):

How to configure VRRP on Ruijie switch? Reply

GTAC-Bancroft

Level 1

How to configure VRRP on Ruijie switch?
2595 0 2023-8-15 13:31:05
Original
Introduction of VRRP

VRRP (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



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.

RG-S5300-48GT4XS-E

Configuration Switch
There are no replies.
Related Posts
Product Model

Share this topic to

Cancel

This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.

More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.

©2000-2023 Ruijie Networks Co,Ltd