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]]
ip-address |
Virtual router address (IPv4). This address should be in the same subnet as the interface IP address. |
secondary |
(Optional) Specifies a secondary virtual router address. |
None
VRRP configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
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 command does not require a license.
This example shows how to configure a virtual router IP address:
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# vrrp 250
switch(config-if-vrrp)# address 10.0.0.10
This example shows how to remove all the IP addresses (primary and secondary) using a single command:
switch(config-if-vrrp)# show running-config interface ethernet 9/10
!Command: show running-config interface Ethernet9/10
!Time: Mon Apr 14 06:04:18 2008
version 5.0(3)N1(1)
interface Ethernet9/10
vrrp 1
address 10.10.10.1/24
no shutdown
switch(config-if-vrrp)# no address
switch(config-if-vrrp)# show running-config interface ethernet 9/10
!Command: show running-config interface Ethernet1/5
!Time: Mon Apr 14 06:07:54 2008
version 5.0(3)N1(1)
interface Ethernet9/10
no switchport
vrrp 1
switch(config-if-vrrp)#
|
|
---|---|
clear vrrp |
Clears all the software counters for the specified virtual router. |
show vrrp |
Displays VRRP configuration information. |
vrrp |
Configures a VRRP group. |
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]
seconds |
Number of seconds between advertisement frames being sent. For IPv4, the range is from 1 to 255 seconds. |
1 second
VRRP configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
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:
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# vrrp 250
switch(config-if-vrrp)# advertisement-interval 200
switch(config-if-vrrp)#
|
|
---|---|
clear vrrp |
Clears all the software counters for the specified virtual router. |
show vrrp |
Displays VRRP configuration information. |
vrrp |
Configures a VRRP group. |
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.
authentication text password
no authentication [text password]
text password |
Selects to use simple text password of up to 8 alphanumeric characters. |
No authentication
VRRP configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This example shows how to configure MD5 authentication for VRRP:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# vrrp 250
switch(config-if-vrrp)# authentication text mypwasswd
switch(config-if-vrrp)#
|
|
---|---|
clear vrrp |
Clears all the software counters for the specified virtual router. |
show vrrp |
Displays VRRP configuration information. |
vrrp |
Configures a VRRP group. |