Virtual Router Redundancy Protocol Commands

Use these commands to view and configure VRRP and to view VRRP status information.

Note: Virtual Router Redundancy Protocol (VRRP) commands are supported on the M4350 series switches only. The M4250 series switches do not support VRRP.

VRRP helps provide failover and load balancing when you configure two devices as a VRRP pair.

ip vrrp (Global Config)

M4350

Use this command in Global Config mode to enable the administrative mode of VRRP on the switch.

Default none
Format ip vrrp
Mode Global Config

no ip vrrp

Use this command in Global Config mode to disable the default administrative mode of VRRP on the switch.

Format no ip vrrp
Mode Global Config

ip vrrp (Interface Config)

M4350

Use this command in Interface Config mode to create a virtual router associated with the interface or range of interfaces. The parameter vrid is the virtual router ID, which has an integer value range from 1 to 255.

Format ip vrrp vrid
Mode Interface Config

no ip vrrp

Use this command in Interface Config mode to delete the virtual router associated with the interface. The virtual router ID, vrid, is an integer value that ranges from 1 to 255.

Format no ip vrrp vrid
Mode Interface Config

ip vrrp mode

M4350

This command enables the virtual router configured on the specified interface. Enabling the status field starts a virtual router. The parameter vrid is the virtual router ID which has an integer value ranging from 1 to 255.

Default disabled
Format ip vrrp vrid mode
Mode Interface Config

no ip vrrp mode

This command disables the virtual router configured on the specified interface. Disabling the status field stops a virtual router. The parameter vrid is the virtual router ID which has an integer value ranging from 1 to 255.

Format no ip vrrp vrid mode
Mode Interface Config

ip vrrp ip

M4350

This command sets the virtual router IP address value for an interface or range of interfaces. The value for ipaddr is the IP address which is to be configured on that interface for VRRP. The parameter vrid is the virtual router ID which has an integer value range from 1 to 255.

You can use the optional secondary keyword to designate the IP address as a secondary IP address.

Default none
Format ip vrrp vrid ip ipaddr [secondary]
Mode Interface Config

no ip vrrp ip

Use this command in Interface Config mode to delete a secondary IP address value from the interface. To delete the primary IP address, you must delete the virtual router on the interface.

The value for ipaddr is the IP address which is to be configured on that interface for VRRP. The parameter vrid is the virtual router ID which has an integer value range from 1 to 255.

Format no ip vrrp vrid ip ipaddress secondary
Mode Interface Config

ip vrrp accept-mode

M4350

Use this command to allow the VRRP primary router to accept ping packets sent to one of the virtual router’s IP addresses. The parameter vrid is the virtual router ID which has an integer value range from 1 to 255.

Note: VRRP accept-mode allows only ICMP Echo Request packets. No other type of packet is allowed to be delivered to a VRRP address.
Default disabled
Format ip vrrp vrid accept-mode
Mode Interface Config

no ip vrrp accept-mode

Use this command to prevent the VRRP primary router from accepting ping packets sent to one of the virtual router's IP addresses. The parameter vrid is the virtual router ID which has an integer value range from 1 to 255.

Format no ip vrrp vrid accept-mode
Mode Interface Config

ip vrrp authentication

M4350

This command sets the authorization details value for the virtual router configured on a specified interface or range of interfaces. The parameter none or simple specifies the authorization type for virtual router configured on the specified interface. The parameter key is optional and is only required when authorization type is a simple text password. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Default no authorization
Format ip vrrp vrid authentication {none | simple key}
Mode Interface Config

no ip vrrp authentication

This command sets the default authorization details value for the virtual router configured on a specified interface or range of interfaces. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Format no ip vrrp vrid authentication
Mode Interface Config

ip vrrp preempt

M4350

This command sets the preemption mode value for the virtual router configured on a specified interface or range of interfaces. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Default enabled
Format ip vrrp vrid preempt
Mode Interface Config

no ip vrrp preempt

This command sets the default preemption mode value for the virtual router configured on a specified interface or range of interfaces. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Format no ip vrrp vrid preempt
Mode Interface Config

ip vrrp priority

M4350

This command sets the priority of a router within a VRRP group. It can be used to configure an interface or a range of interfaces. Higher values equal higher priority. The range is from 1 to 254. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

The router with the highest priority is elected the primary router. If a router is configured with the address used as the address of the virtual router, the router is called the address owner. The priority of the address owner is always 255 so that the address owner is always the primary router. If the primary router has a priority less than 255 (it is not the address owner) and you configure the priority of another router in the group higher than the primary router’s priority, the router will take over as the primary router only if preempt mode is enabled.

Default 100 unless the router is the address owner, in which case its priority is automatically set to 255.
Format ip vrrp vrid priority priority
Mode Interface Config

no ip vrrp priority

This command sets the default priority value for the virtual router configured on a specified interface or range of interfaces. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Format no ip vrrp vrid priority
Mode Interface Config

ip vrrp timers advertise

M4350

This command sets the frequency, from 1–255 seconds, that an interface or range of interfaces on the specified virtual router sends a virtual router advertisement. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Default 1
Format ip vrrp vrid timers advertise seconds
Mode Interface Config

no ip vrrp timers advertise

This command sets the default virtual router advertisement value for an interface or range of interfaces. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Format no ip vrrp vrid timers advertise
Mode Interface Config

ip vrrp track interface

M4350

Use this command to alter the priority of the VRRP router based on the availability of its interfaces. This command is useful for tracking interfaces that are not configured for VRRP. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255. Only IP interfaces are tracked. A tracked interface is up if the IP on that interface is up. Otherwise, the tracked interface is down. You can use this command to configure a single interface or range of interfaces. The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.

When the tracked interface is down or the interface is removed from the router, the priority of the VRRP router is decremented by the value specified in the priority argument. When the interface is up for the IP protocol, the priority is incremented by the priority value.

A VRRP-configured interface can track more than one interface. When a tracked interface goes down, the priority of the router is decreased by 10 (the default priority decrement) for each interface that is down. The default priority decrement is changed using the priority argument. The default priority of the virtual router is 100, and the default decrement priority is 10. By default, no interfaces are tracked. If you specify just the interface to be tracked, without the optional priority, the default priority is set. The default priority decrement is 10.

Default priority: 10
Format ip vrrp vrid track interface {unit/slot/port | vlan vlan-id} [decrement priority]
Mode Interface Config

no ip vrrp track interface

Use this command to remove the interface or range of interfaces from the tracked list or to restore the priority decrement to its default. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Format no ip vrrp vrid track interface {unit/slot/port | vlan vlan-id} [decrement]
Mode Interface Config

ip vrrp track ip route

M4350

Use this command to track the route reachability on an interface or range of interfaces. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255. When the tracked route is deleted, the priority of the VRRP router will be decremented by the value specified in the priority argument. When the tracked route is added, the priority will be incremented by the same.

A VRRP configured interface can track more than one route. When a tracked route goes down, the priority of the router is decreased by 10 (the default priority decrement) for each route that is down. By default no routes are tracked. If you specify just the route to be tracked, without the optional priority, the default priority is set. The default priority decrement is 10. The default priority decrement is changed using the priority argument.

Default priority: 10
Format ip vrrp vrid track ip route ip-address/prefix-length [decrement priority]
Mode Interface Config

no ip vrrp track ip route

Use this command to remove the route from the tracked list or to restore the priority decrement to its default. When removing a tracked IP route from the tracked list, the priority should be incremented by the decrement value if the route is not reachable. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

Format no ip vrrp vrid track interface unit/slot/port [decrement]
Mode Interface Config

show ip vrrp

M4350

This command displays whether VRRP functionality is enabled or disabled on the switch. It also displays some global parameters which are required for monitoring.

Format show ip vrrp
Modes

Privileged EXEC

User EXEC

Term Definition
VRRP Admin Mode The administrative mode for VRRP functionality on the switch.
Router Checksum Errors The total number of VRRP packets received with an invalid VRRP checksum value.
Router Version Errors The total number of VRRP packets received with Unknown or unsupported version number.
Router VRID Errors The total number of VRRP packets received with invalid VRID for this virtual router.

show ip vrrp interface

M4350

This command displays all configuration information and VRRP router statistics of a virtual router configured on a specific interface. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.

Format show ip vrrp interface {unit/slot/port | vlan vlan-id} vrid
Modes

Privileged EXEC

User EXEC

Term Definition
IP Address The configured IP address for the virtual router.
VMAC address The VMAC address of the specified router.
Authentication type The authentication type for the specific virtual router.
Priority The priority value for the specific virtual router, taking into account any priority decrements for tracked interfaces or routes.
Configured Priority The priority configured through the ip vrrp vrid priority priority command.
Advertisement interval The advertisement interval in seconds for the specific virtual router.
Pre-Empt Mode The preemption mode configured on the specified virtual router.
Administrative Mode The status (Enable or Disable) of the specific router.
Accept Mode When enabled, the VRRP primary router can accept ping packets sent to one of the virtual router’s IP addresses.
State The state of the virtual router.

Command example:

CODE
show ip vrrp interface <u/s/p> vrid

Primary IP Address............................. 1.1.1.5
VMAC Address................................... 00:00:5e:00:01:01
Authentication Type............................ None
Priority....................................... 80
  Configured priority.......................... 100
Advertisement Interval (secs).................. 1
Pre-empt Mode.................................. Enable
Administrative Mode............................ Enable
Accept Mode.................................... Enable
State.......................................... Initialized
Track Interface             State          DecrementPriority
---------------             ------         ------------------
<1/0/1>                      down                 10

TrackRoute  (pfx/len)       State          DecrementPriority
------------------------    ------         ------------------
10.10.10.1/255.255.255.0     down                 10

show ip vrrp interface brief

M4350

This command displays information about each virtual router configured on the switch. It displays information about each virtual router.

Format show ip vrrp interface brief
Modes

Privileged EXEC

User EXEC

Term Definition
Interface The interface number.
VRID The router ID of the virtual router.
IP Address The virtual router IP address.
Mode Indicates whether the virtual router is enabled or disabled.
State The state (primary/backup) of the virtual router.

show ip vrrp interface stats

M4350

This command displays the statistical information about each virtual router configured on the switch. The parameter vrid is the virtual router ID which has an integer value ranges from 1 to 255.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.

Format show ip vrrp interface stats {unit/slot/port | vlan vlan-id} vrid
Modes

Privileged EXEC

User EXEC

Term Definition
Uptime The time that the virtual router has been up, in days, hours, minutes and seconds.
Protocol The protocol configured on the interface.
State Transitioned to Master The total number of times the virtual router state has changed to primary router.
Advertisement Received The total number of VRRP advertisements received by this virtual router.
Advertisement Interval Errors The total number of VRRP advertisements received for which advertisement interval is different than the configured value for this virtual router.
Authentication Failure The total number of VRRP packets received that don't pass the authentication check.
IP TTL errors The total number of VRRP packets received by the virtual router with IP TTL (time to live) not equal to 255.
Zero Priority Packets Received The total number of VRRP packets received by virtual router with a priority of '0'.
Zero Priority Packets Sent The total number of VRRP packets sent by the virtual router with a priority of '0'.
Invalid Type Packets Received The total number of VRRP packets received by the virtual router with invalid 'type' field.
Address List Errors The total number of VRRP packets received for which address list does not match the locally configured list for the virtual router.
Invalid Authentication Type The total number of VRRP packets received with unknown authentication type.
Authentication Type Mismatch The total number of VRRP advertisements received for which the authentication type is not equal to the locally configured type for this virtual router.
Packet Length Errors The total number of VRRP packets received with packet length less than length of VRRP header.

show vrrp

M4350

This command displays information for all active VRRPv3 groups (if you enter the command without any optional parameters), all active VRRPv3 groups that are configured in an IPv4 or IPv6 address family (if you use the ipv4 or ipv6 keyword), or the active VRRPv3 groups configured in an IPv4 or IPv6 address family for a specified interface or VLAN.

This command displays the statistical information about each virtual router configured on the switch. The parameter vrid is the virtual router ID, which has a value ranges from 1 to 255.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.

Format show vrrp [{ipv4 | ipv6}] [{unit/slot/port | vlan vlan-id} vrid]
Modes

Privileged EXEC

User EXEC

Command example:

This example shows command output when no parameters are specified.

CODE
(NETGEAR Switch)#show vrrp

Admin Mode..................................... Enable


1/0/2 - VRID 1 - Address-Family IPv4

Virtual IP address............................. 1.1.1.9
Secondary IP Address(es)....................... 1.1.1.4
............................................... 1.1.1.5
............................................... 1.1.1.6
Virtual MAC Address............................ 00:00:5e:00:01:01
Priority....................................... 0
Configured Priority............................ 111
Advertisement Interval......................... 120 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Initialized
Master Router IP / Priority.................... 1.1.1.3 (local) / 100
Master Advertisement interval.................. 120 centisec
Master Down interval........................... 360 centisec

Track Interface State DecrementPriority  BFD-Neighbor
--------------- ----- ------------------ ------------
1/0/9           Down  222        23.10.8.6

Track Route(pfx/len)   Reachable  DecrementPriority
---------------------  ---------  ------------------
14.14.14.0/24          True       14


1/0/3 - VRID 2 - Address-Family IPv4

Virtual IP address............................. 3.3.2.9
Secondary IP Address(es)....................... 3.3.2.4
............................................... 3.3.2.5
............................................... 3.3.2.6
Virtual MAC Address............................ 00:00:5e:00:01:06
Priority....................................... 0
Configured Priority............................ 130
Advertisement Interval......................... 120 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Initialized
Master Router IP / Priority.................... 1.1.1.3 (local) / 100
Master Advertisement interval.................. 120 centisec
Master Down interval........................... 360 centisec

Track Interface State DecrementPriority   BFD-Neighbor
--------------- ----- ------------------  ------------
1/0/7           Down  125           55.16.27.8

Track Route(pfx/len)   Reachable  DecrementPriority
---------------------  ---------  ------------------
14.14.14.0/24          True       30


1/0/12 - VRID 3 - Address-Family IPv6

Virtual IP address............................. 4001::2
Secondary IP Address(es)....................... 4001::5
............................................... 4001::6
............................................... 4001::7
Virtual MAC Address............................ 00:00:5e:00:01:06
Priority....................................... 0
Configured Priority............................ 130
Advertisement Interval......................... 120 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Initialized
Master Router IP / Priority.................... 4001::3 (local) / 100
Master Advertisement interval.................. 120 centisec
Master Down interval........................... 360 centisec

Track Interface State DecrementPriority   BFD-Neighbor
--------------- ----- ------------------  ------------
1/0/2           Down  250           5001::3

Track Route(pfx/len)   Reachable  DecrementPriority
---------------------  ---------  ------------------
4004::3/32             True       20

Command example:

This example shows command output when the IPv4 parameter is specified.

CODE
(NETGEAR Switch)#show vrrp ipv4

Admin Mode..................................... Enable

1/0/2 - VRID 1 - Address-Family IPv4

Virtual IP address............................. 1.1.1.9
Secondary IP Address(es)....................... 1.1.1.4
............................................... 1.1.1.5
............................................... 1.1.1.6
Virtual MAC Address............................ 00:00:5e:00:01:01
Priority....................................... 0
Configured Priority............................ 111
Advertisement Interval......................... 120 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Initialized
Master Router IP / Priority.................... 1.1.1.3 (local) / 100
Master Advertisement interval.................. 120 centisec
Master Down interval........................... 360 centisec

Track Interface State DecrementPriority
--------------- ----- ------------------
1/0/9           Down  222

Track Route(pfx/len)   Reachable  DecrementPriority
---------------------  ---------  ------------------
14.14.14.0/24          True       14


1/0/3 - VRID 2 - Address-Family IPv4

Virtual IP address............................. 3.3.2.9
Secondary IP Address(es)....................... 3.3.2.4
............................................... 3.3.2.5
............................................... 3.3.2.6
Virtual MAC Address............................ 00:00:5e:00:01:06
Priority....................................... 0
Configured Priority............................ 130
Advertisement Interval......................... 120 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Initialized
Master Router IP / Priority.................... 1.1.1.3 (local) / 100
Master Advertisement interval.................. 120 centisecsec
Master Down interval........................... 360

Track Interface State DecrementPriority
--------------- ----- ------------------
1/0/7           Down  125

Track Route(pfx/len)   Reachable  DecrementPriority
---------------------  ---------  ------------------
14.14.14.0/24          True       30

Command example:

This example shows command output when the IPv6 parameter is specified.

CODE
(NETGEAR Switch)#show vrrp ipv6

Admin Mode..................................... Enable

1/0/2 - VRID 1 - Address-Family IPv6

Virtual IP address............................. 1001::8
Secondary IP Address(es)....................... 1001::5
............................................... 1001::6
............................................... 1001::7
Virtual MAC Address............................ 00:00:5e:00:01:01
Priority....................................... 0
Configured Priority............................ 100
Advertisement Interval......................... 100 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Initialized
Master Router IP / Priority.................... 1001::1 (local) / 100
Master Advertisement interval.................. 100 centisec
Master Down interval........................... 300 centisec

Track Interface State DecrementPriority
--------------- ----- ------------------
1/0/9           Down  222

Track Route(pfx/len)   Reachable  DecrementPriority
---------------------  ---------  ------------------
2001::2/32             True       14


1/0/12 - VRID 3 - Address-Family IPv6

Virtual IP address............................. 4001::2
Secondary IP Address(es)....................... 4001::5
............................................... 4001::6
............................................... 4001::7
Virtual MAC Address............................ 00:00:5e:00:01:06
Priority....................................... 130
Configured Priority............................ 130
Advertisement Interval......................... 120 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Master
Master Router IP / Priority.................... 4001::3 (local) / 130
Master Advertisement interval.................. 120 centisec
Master Down interval........................... 360 centisec

Track Interface State DecrementPriority
--------------- ----- ------------------
1/0/24          Down  320

Track Route(pfx/len)   Reachable  DecrementPriority
---------------------  ---------  ------------------
7003::4/32             True       50

Command example:

This example shows command output when the IPv4 parameter is specified with an interface.

CODE
(NETGEAR Switch)#show vrrp ipv4 1/0/3 1

Virtual IP address............................. 1.1.1.9
Secondary IP Address(es)....................... 1.1.1.4
............................................... 1.1.1.5
............................................... 1.1.1.6
Virtual MAC Address............................ 00:00:5e:00:01:01
Priority....................................... 0
Configured Priority............................ 111
Advertisement Interval......................... 222 centisec
Pre-empt Mode.................................. Enable
Accept Mode.................................... Enable
Administrative Mode............................ Enable
State.......................................... Initialized
Master Router IP / Priority.................... 1.1.1.3 (local) / 100
Master Advertisement interval.................. 1000 centisec
Master Down interval........................... 3000 centisec


Track Interface State Decrement-Priority
--------------- ----- ------------------
0/9             Down  222

Track Route(pfx/len)   Reachable  Decrement-Priority
---------------------  ---------  ------------------
14.14.14.0/24          True       14

show vrrp brief

M4350

This command displays brief information for all active VRRPv3 groups.

Format show vrrp brief
Modes

Privileged EXEC

User EXEC

Term Definition
Interface The interface on which VRRP is configured.
VR The ID of the virtual router.
A-F The IP address family type (IPv4 or IPv6) to which the virtual router belongs.
Pri The priority range of the virtual router.
AdvIntvl The advertisement interval configured for the virtual router.
Pre The preemption state of the virtual router.
Acc The accept mode of the virtual router.
State The VRRP group state, which can be one of the following: Init, Backup, or Master.
VR IP address The virtual IP address for the VRRP group.

Command example:

CODE
(NETGEAR Switch)#show vrrp brief

Interface   VRID A-F  Pri AdvIntvl Pre Acc State  VR IP Address
----------- ---- ---- --- -------- --- --- ------ -------------
1/0/1       1    IPv4 100 200s      Y   Y  Init   192.0.1.10
1/0/3       2    IPv4 200 200s      Y   Y  Init   124.0.3.17
1/0/1       7    IPv6 100 200s      Y   Y  Backup 5002::1
1/0/5       2    IPV6 20  200s      Y   Y  Master 2001::2

show vrrp statistics

M4350

This command displays statistical information for a VRRPv3 group. If you do not include optional arguments, the command displays the global statistics.

If you specify optional arguments, the statistics are displayed for the virtual router that corresponds to a combination of an IP address family, interface, and virtual router ID (vrid), which is a value ranges from 1 to 255.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id can be a number from 1–4093.

Format show vrrp statistics [{ipv4 | ipv6} {unit/slot/port | vlan vlan-id} {vrid}]
Modes

Privileged EXEC

User EXEC

Command example:

This example shows command output when no parameters are specified.

CODE
(NETGEAR Switch)#show vrrp statistics

Router Checksum Errors......................... 2
Router Version Errors.......................... 3
Router VRID Errors............................. 4
Global Statistics Discontinuity Time........... 0 days 0 hrs 0 mins 0 secs

Command example:

This example shows command output when the IPv6 parameter is specified, along with an interface and a VRID.

CODE
(NETGEAR Switch)#show vrrp statistics ipv6 1/0/1 2

Master Transitions............................. 2
New Master Reason.............................. Priority
Advertisements Received........................ 64
Advertisements Sent............................ 12
Advertisement Interval Errors.................. 0
IP TTL Errors.................................. 1
Last Protocol Error Reason..................... Version Error
Zero Priority Packets Received................. 0
Zero Priority Packets Sent..................... 1
Invalid Type Packets Received.................. 0
Address List Errors............................ 2
Packet Length Errors........................... 4
Row Discontinuity Time......................... 0 days 0 hrs 0 mins 0 secs
Refresh Rate (in milliseconds)................. 0

clear ip vrrp interface stats

M4350

This command clears VRRP statistical information from an interface or a VLAN. The virtual router ID, vrid, is an integer value that ranges from 1 to 255.

Format clear ip vrrp interface stats {unit/slot/port vrid | vlan vlan-id vrid}
Modes Interface Config