|Skip Navigation Links|
|Exit Print View|
|man pages section 1M: System Administration Commands Oracle Solaris 11 Express 11/10|
- VRRP administration tool
vrrpadm create-router -V vrid -l link -A inet | inet6 [-p priority] [-i adv_interval] [-o flags] router_name
vrrpadm delete-router router_name
vrrpadm disable-router router_name
vrrpadm enable-router router_name
vrrpadm modify-router [-p priority] [-i adv_interval] [-o flags] [router_name]
vrrpadm show-router [-P | -x] [-p] [-o field[,...]] [router_name]
The vrrpadm command is used to administer the VRRP (Virtual Router Redundancy Protocol) service in a system.
VRRP specifies an election protocol that dynamically assigns responsibility for a virtual router to one of the VRRP routers within a LAN. At a given moment, only one VRRP router controls the IPv4 or IPv6 virtual address(es) associated with a virtual router (known as the master), and forwards packets sent to these IP addresses. The election process provides dynamic failover of the forwarding responsibility should the master become unavailable.
Each vrrpadm subcommand operates on a VRRP router, which is identified by a name given by the administrator. VRRP routers with the same VRID and address family within a LAN comprise a virtual router, which protects a set of virtual IP addresses.
A system can have multiple VRRP routers; each belongs to a different virtual router.
The following subcommands are supported. Note that all subcommands but show-router require the solaris.network.vrrp authorization. The show-router subcommand does not require special authorizations.
Create a VRRP router with a specified configuration.
Address family. Either IPv4 or IPv6.
The advertisement interval in milliseconds. Default is 1000 (one second). The valid interval range is 10-40950.
The data link on which the VRRP router is configured. This determines the LAN this VRRP router is running in. The data-link can be a physical link, a VLAN, or an aggregation.
The preempt and accept modes, delimited by a comma. Values can be:
By default both modes are set to true.
The preempt mode controls whether an enabled higher priority backup router preempts a lower priority master router. If preempt mode is true, then the preemption is allowed; otherwise, preemption is prohibited. Note that the preempt mode must be true if the VRRP router is the owner of the virtual IP addresses.
The accept mode controls the local packet acceptance of the virtual IP addresses. If accept mode is true, the master must accept packets sent to the virtual IP addresses. If accept mode is false, the master does not accept those packets, although it does respond to ARP requests or ND Solicitations and Advertisement for those non-accepted virtual IP addresses. It also must forward packets for the router specified in this subcommand. Note that accept mode must be true if the VRRP router is the owner of the virtual IP addresses. An example of syntax for this option:
The priority of the specified VRRP router used in master selection. The higher the value, the greater the possibility the router is selected as the master.
The default value is 255, which indicates the specified VRRP router is the IP Address Owner and owns all the virtual IP addresses. An IP Address Owner will respond to the packets addressed to one of the virtual IP addresses for ICMP pings, TCP connections, and so forth.
The range 1-254 is available for VRRP routers backing up a virtual router. Master selection is weighted toward the VRRP router with the higher priority.
The virtual router identifier (VRID). Together with the address family, it identifies a virtual router within a LAN.
The name of a VRRP router. This name is used to identify a VRRP router in other vrrpadm subcommands.
The maximum length of a valid router name is 31 characters. Legal characters are alphanumeric (a-z, A-Z, 0-9) and the underscore ('_').
Delete the VRRP router identified by router_name.
Disable the virtual router identified by router_name. Once the router is disabled, it will stop participating in the master selection process in the virtual router.
Re-enable the virtual router identified by router_name that was disabled. The router will resume participating in the master selection process in the virtual router.
Modify the configuration of the VRRP router identified by router_name. Only the priority, the advertisement interval, the preempt mode, and the accept mode can be modified.
The new priority of this VRRP router.
The new advertisement interval.
The new preempt and accept modes. Either one or both can be specified. If both are specified, they are delimited by a comma. For example:
Display the information for the VRRP router identified by router_name. If no router_name is specified, display information for all the VRRP routers on the system.
By default (with no options), the following fields are displayed:
The name of the VRRP router.
The VRID of the VRRP router.
The data link on which the VRRP router is created.
he address family of the VRRP router, either IPv4 or IPv6.
The priority of this VRRP router used in master selection.
The advertisement interval, in milliseconds.
The current state of the VRRP router, INIT (Initialize), BACK (Backup), or MAST (Master).
A set of flags associated with the VRRP router. Possible values are:
The router has been enabled.
Preempt mode is true.
Accept mode is true.
Virtual address owner.
The VRRP VNIC created for this VRRP router.
Note that the name of the VNIC can change over time unless the router is enabled.
The show-router subcommand has the following options:
Display additional information of the given VRRP router:
The primary IP address selected by the VRRP router.
The virtual IP addresses configured on the VRRP router.
The previous state of the VRRP router.
Time since the last state transition.
Display information for the backup VRRP router. This option is meaningful only when the VRRP router is in the backup state.
The following fields are displayed:
The name of the VRRP router.
The primary IP address of the peer VRRP router.
The priority of the peer VRRP router contained in the advertisement received from the peer.
The advertisement interval (in milliseconds) contained in advertisements received from the peer.
Time since last received advertisement from the peer.
Time interval (in milliseconds) after which to declare Master down.
Display the VRRP router information in the machine parseable format.
A case-insensitive, comma-separated list of output fields to display. The field name must be one of the fields listed above, or the special value all to display all fields. By default (without -o), vrrpadm show displays all fields.
See attributes(5) for descriptions of the following attributes: