The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Virtual Router Redundancy Protocol (VRRP) commands that begin with A.
To add a single, primary IP address to a virtual router, use the address command. To remove an IP address from a virtual router, use the no form of this command.
address ip-address [ secondary ]
no address [ ip-address [ secondary ]]
Virtual router address (IPv4). This address should be in the same subnet as the interface IP address. |
|
|
|
---|---|
You can configure one virtual router IP address for a virtual router. If the configured IP address is the same as the interface IP address, this switch automatically owns the IP address. You can configure an IPv4 address only.
The master VRRP router drops the packets addressed to the virtual router's IP address because the virtual router is only intended as a next-hop router to forward packets. In NX-OS devices, some applications require that packets addressed to the virtual router's IP address be accepted and delivered. By using the secondary option to the virtual router IPv4 address, the VRRP router will accept these packets when it is the master.
This example shows how to configure a virtual router IP address:
This example shows how to remove all the IP addresses (primary and secondary) using a single command:
Need new output1
|
|
---|---|
Clears all the software counters for the specified virtual router. |
|
To specify the time interval between the advertisement packets that are being sent to other Virtual Router Redundancy Protocol (VRRP) routers in the same group, use the advertisement-interval command. To return to the default interval value of 1 second, use the no form of this command.
advertisement-interval seconds
no advertisement-interval [ seconds ]
Number of seconds between advertisement frames being sent. For IPv4, the range is from 1 to 255 seconds. |
|
|
---|---|
VRRP advertisements communicate the priority and state of the virtual router master. The advertisements are encapsulated in IP packets and are sent to the IPv4 multicast address that is assigned to the VRRP group.
VRRP uses a dedicated Internet Assigned Numbers Authority (IANA) standard multicast address (224.0.0.18) for VRRP advertisements. This addressing scheme minimizes the number of routers that must service the multicasts and allows test equipment to accurately identify VRRP packets on a segment. The IANA-assigned VRRP IP protocol number is 112.
This example shows how to specify an advertisement interval of 200 seconds for VRRP group 250:
|
|
---|---|
Clears all the software counters for the specified virtual router. |
|
To configure an authentication for the Virtual Router Redundancy Protocol (VRRP), use the authentication command. To disable authentication, use the no form of this command.
no authentication [ text password ]
Selects to use simple text password of up to 8 alphanumeric characters. |
|
|
---|---|
This example shows how to configure MD5 authentication for VRRP:
|
|
---|---|
Clears all the software counters for the specified virtual router. |
|