OcNOS-SP : Layer 3 Guide : Virtual Router Redundancy Protocol Command Reference : VRRP Commands : virtual-ip
virtual-ip
Use this command to set the virtual IP address for the VRRP virtual router as VRRP Owner. This is the IP address used by end hosts to address their default gateway.
The VRRP Owner of the Virtual IP address only responds to packets destined to the Virtual IP address (for example, ICMP packets destined to the Virtual IP address).
Use the no parameter with this command to remove a virtual IP address assignment.
Syntax Description
virtual-ip A.B.C.D (owner|)
no virtual-ip (owner|)
Parameters
A.B.C.D
Virtual IP address of the interface that participates in virtual routing.
owner
IP address as the owner.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The example below shows how to configure the router as VRRP owner.
#configure terminal
(config)#router vrrp 1 eth0
(config-router)#virtual-ip 10.10.20.30 owner
The example below removes the virtual IP address assignment.
#configure terminal
(config)#router vrrp 1 eth0
(config-router)#no virtual-ip
Last modified date: 08/28/2023