Example for Configuring Standard VRRPv3 for IPv4



Networking Requirements

In figure 1, Switch connects to the internet through gateway switches Switch A and Switch B. To ensure nonstop service availability, a VRRP group in standard mode needs to be configured on SwitchA and SwitchB.

  •  Configure the VRRP router ID as 1, Switch A is the Master and Switch B is the Backup switch of VRRP group.
  •  The virtual IP of VRRP router is 192.168.1.5, virtual MAC is 00:00:5e:00:01:01.
  •  The gateway address of the downstream host PC1 and PC2 needs to be configured as the IP address of the VRRP virtual router device.

Figure 1. Networking of Standard VRRP


Procedure

Switch A

Step1         Configure VLAN.

    admin@SwitchA# set vlans vlan-id 100

    admin@SwitchA# set interface gigabit-ethernet ge-1/1/2 family ethernet-switching native-vlan-id 100

    admin@SwitchA# set l3-interface vlan-interface vlan100 address 192.168.1.1 prefix-length 24

    admin@SwitchA# set vlans vlan-id 100 l3-interface vlan100

Step2         Create a VRRP group.

                   admin@SwitchA# set protocols vrrp interface vlan100 vrid 1

Step3         Configure the VRRP version number to v3.

   admin@SwitchA#set protocols vrrp interface vlan100 vrid 1 version 3

   By default, the system uses VRRPv2.

Step4         Enable the VRRP function.

    admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 disable false

                   By default, the VRRP function is enabled.

Step5         Configure a virtual IP address for the VRRP group.

                   admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 ip 192.168.1.5

Step6         Configure the priority of a device in a VRRP group.

    admin@SwitchA# set protocols vrrp interface vlan100 vrid 1 priority 250

Step7         Commit the configuration.

    admin@SwitchA# commit

Switch B

Step1         Configure VLAN.

    admin@SwitchB# set vlans vlan-id 100

    admin@SwitchB# set interface gigabit-ethernet ge-1/1/3 family ethernet-switching native-vlan-id 100

    admin@SwitchB# set l3-interface vlan-interface vlan100 address 192.168.1.2 prefix-length 24

    admin@SwitchB# set vlans vlan-id 100 l3-interface vlan100

Step2         Create a VRRP group.

                   admin@SwitchB# set protocols vrrp interface vlan100 vrid 1

Step3         Configure the VRRP version number to v3.

   admin@SwitchB#set protocols vrrp interface vlan100 vrid 1 version 3

   By default, the system uses VRRPv2.

Step4         Enable the VRRP function.

    admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 disable false

                   By default, the VRRP function is enabled.

Step5         Configure a virtual IP address for the VRRP group.

                   admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 ip 192.168.1.5

Step6         Configure the priority of the device in a VRRP group.

    admin@SwitchB# set protocols vrrp interface vlan100 vrid 1 priority 100

Step7         Commit the configuration.

    admin@SwitchB# commit

Verify the Configuration

•     After the configuration is complete, run run show vrrp command to view the configuration information of VRRP group. The result of show command on the master is as follows.

admin@SwitchA# run show vrrp
Interface:                    vlan100
VRID:                         1
Version:                      3
Load-balance:                 disable
State:                        Master
Master IP:                    192.168.1.1
Virtual MAC:                  00:00:5e:00:01:01
Preempt:                      enable
Adver Interval:               4
Priority:                     250
Virtual IP:                   192.168.1.5
Auth-type:                    none
Auth-key:

•     When showing MAC address table on the downstream switch to check the MAC address of the device, you can see the virtual MAC entries corresponding to the virtual IP address of the VRRP group.

•     On PC1 and PC2, ping the virtual IP address 192.168.1.5 to check the connectivity with the devices in VRRP group.




Copyright © 2024 Pica8 Inc. All Rights Reserved.