home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

interfaces <interface> vrrp vrrp-group <group-id> virtual-address <addr>

Sets the virtual IP address or network address of a VRRP group on an interface.

set interfaces interface vrrp vrrp-group group-id virtual-address addr
delete interfaces interface vrrp vrrp-group group-id virtual-address
show interfaces interface vrrp vrrp-group group-id virtual-address
interface
The interface type and identifier. For detailed keywords and arguments that can be specified as interfaces, refer to Supported Dataplane Interfaces.
group-id
The VRRP group to which the interface belongs. The identifier ranges from 1 through 255.
addr
The virtual IP address or network address of the VRRP group. The format of the address is ipv4-addr for IPv4 addresses, or ipv6-addr for IPv6 addresses.

Configuration mode


interfaces interface {
    vrrp {
        vrrp-group group-id {
            virtual-address addr
         }
		 }
}

Use this command to set the virtual IP address or network address of a VRRP group on an interface. Every VRRP group must have a virtual address, and all interfaces and vifs in the VRRP group must be configured with the same virtual address.

The virtual address is “shared” by the VRRP group and is dynamically assigned to the master interface in the group. The master links the virtual address to its own MAC address in the network by issuing a gratuitous ARP to the LAN segment. If the master interface fails, the group elects a new master to whom the virtual address is then assigned. The new master notifies the network of the changed MAC address by issuing another gratuitous ARP.

In general, a real interface or vif should not be configured with the virtual address of the VRRP group. In practice, if a real interface is configured with the virtual address, the interface is said to “own” the virtual address. The VRRP standard (RFC 3768) prescribes that a router owning the virtual address should be assigned a priority of 255, which automatically elects the router owning the VIP as the master. If you do assign a virtual address to a real interface, set the priority of the interface to 255.

Use the set form of the command to specify the virtual address or network address of a VRRP group on an interface.

Use the delete form of the command to remove the virtual address or network address of a VRRP group on an interface. However, note that the virtual address is mandatory in VRRP configuration.

Use the show form of the command to display the virtual address or network address of a VRRP group on an interface.