Command Reference VRRP Commands
4.8 vrrp ip
Use this command to enable VRRP on the interface and specify the related virtual IP address.
Use the no form of this command to restore the default setting.
vrrp group ip ipaddress [ secondary ]
no vrrp group ip ipaddress [ secondary ]
VRRP group number of the virtual device
IP address of the virtual device
Specifies the secondary IP address of the virtual device.
This function is disabled by default.
Interface configuration mode
If the secondary parameter is not used, the IP address set here will become the master IP address of
the virtual device.
The following example enables the VRRP function on Ethernet interface 0. The VRRP group number
is 1, primary IP address of the virtual device is 10.0.1.20 and secondary IP address is 10.0.2.20.
Ruijie#configure terminal
Ruijie(config)#interface GigabitEthernet 0/0
Ruijie(config-if-GigabitEthernet 0/0)#no switchport //used on the switch.
Ruijie(config-if-GigabitEthernet 0/0)#ip address 10.0.1.1 255.255.255.0
Ruijie(config-if-GigabitEthernet 0/0)#ip address 10.0.2.1 255.255.255.0
secondary
Ruijie(config-if-GigabitEthernet 0/0)#vrrp 1 ip 10.0.1.20
Ruijie(config-if-GigabitEthernet 0/0)#vrrp 1 ip 10.0.2.20 secondary
show vrrp [ brief | group ]
Displays the VRRP configuration.
Use this command to enable IPv6 VRRP on the interface and specify the related virtual IPv6 address.
Use the no form of the command to restore the default setting.
vrrp group ipv6 ipv6-address
no vrrp group ip ipv6-address