V Commands
This chapter describes the Cisco NX-OS Virtual Router Redundancy Protocol (VRRP) commands that begin with V.
vrrp
To create a Virtual Router Redundancy Protocol (VRRP) group on a particular Ethernet interface and assign a number to the VRRP group and enter VRRP configuration mode, use the vrrp command. To remove a VRRP group, use the no form of this command.
vrrp number
no vrrp number
Syntax Description
number |
VRRP group number, which you can configure for a Gigabit Ethernet port, including the main interfaces and subinterfaces. The range is from 1 to 255. |
Command Modes
Interface configuration mode
Command History
|
|
6.0(2)N1(1) |
This command was introduced. |
Usage Guidelines
You can configure VRRP only if its state is disabled. Make sure that you configure at least one IP address before you attempt to enable a virtual router.
Examples
This example shows how to create a VRRP group:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# vrrp 7
This example shows how to create a VRRP group and configure an IPv4 address for the group:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# no switchport
switch(config-if)# vrrp 7
switch(config-if-vrrp)# address 10.0.0.10
switch(config-if-vrrp)# no shutdown
Related Commands
|
|
clear vrrp |
Clears all the software counters for the specified virtual router. |
feature vrrp |
Enables VRRP. |
address (VRRP) |
Adds a primary or secondary IP address to a virtual router. |
show vrrp |
Displays VRRP configuration information. |
vrrpv3 address-family
To create a Virtual Router Redundancy Protocol version 3(VRRPv3) group and enter VRRPv3 group configuration mode, use the vrrpv3 address-family command. To remove a VRRPv3 group, use the no form of this command.
vrrpv3 number address-family [ipv4 | ipv6]
no vrrpv3
Syntax Description
number |
VRRPv3 group number. The range is from 1 to 255. |
ipv4 |
Specifies IPv4 address. |
ipv6 |
Specifies IPv6 address. |
Command Modes
Interface configuration (config-if)
Command History
|
|
7.3(0)N1(1) |
This command was introduced. |
Usage Guidelines
Ensure that you configure at least one IP address before you attempt to enable a virtual router group.
vrrs leader
To specify the name of the leader to be registered with Virtual Router Redundancy Service(VRRS), use the vrrs leader command.
vrrs leader vrrs-leader-name
Syntax Description
vrrs-leader-name |
VRRS leader name. |
Command Modes
VRRPv3 group configuration (config-if-vrrpv3-group)
Command History
|
|
7.3(0)N1(1) |
This command was introduced. |
Examples
The following example shows how to specify a leader’s name to be registered with VRRS:
switch# configure terminal
switch(config)# interface ethernet 2/1
switch(config-if)# vrrpv3 5 address-family ipv4
switch(config-if-vrrpv3-group)# address 100.0.1.10 primary
switch(config-if-vrrpv3-group)# description group3
switch(config-if-vrrpv3-group)# vrrs leader leader1
switch(config-if-vrrpv3-group)# shutdown
Related Commands
|
|
vrrpv3 address-family |
Creates a VRRPv3 group and enter VRRPv3 group configuration mode. |
vrrs pathway
To define the Virtual Router Redundancy Service (VRRS) pathway for a VRRS group and enter VRRS pathway configuration mode, use the vrrs pathway command.
vrrs pathway vrrs-tag
Command Modes
Interface configuration (config-if)
Command History
|
|
7.3(0)N1(1) |
This command was introduced. |
Examples
The following example shows how to configure VRRS pathway:
switch# configure terminal
switch(config)# interface port-channel 100
switch(config-if)# ip address 209.165.200.230 255.255255.224
switch(config-if)# vrrpvs pathway path1
switch(config-if-vrrs-pw)#
Related Commands
|
|
show vrrs pathway |
Displays the VRRS pathway information for different pathway states. |