Virtual Router Redundancy Protocol version 3 Commands

Use these commands to configure VRRPv3, which provides address redundancy for IPv4 and IPv6 router addresses.

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

VRRPv3 provides address redundancy for both IPv4 and IPv6 router addresses. VRRPv3 support is similar to VRRP support. The following table provides a summary of the differences.

VRRPv2 VRRPv3
Supports redundancy for IPv4 addresses. Supports redundancy for IPv4 and IPv6 addresses.
Supports authentication. Does not support authentication.
No link-local address support for IPv4 addresses. For IPv6 addresses, VRRP IP contains the link-local IPv6 address too.
The interval time used for sending VRRP Advertisement packets is in seconds. The interval time used for sending VRRP Advertisement packets is in centiseconds.
The VRRP MAC address format is 00-00-5E-00-01-{VRID}. The VRRP MAC address format for IPv6 VRRP is 00-00-5E-00-02-{VRID}.
SNMP MIB RFC according to 2787. The counters are 32-bit counters. SNMP MIB RFC as per RFC 6527. The counters are 64-bit counters.

To enable VRRP on the switch, use the ip vrrp command. This command enables VRRP (v2 or v3, depending on which version is the configured version) and makes it operational.

fhrp version vrrp v3

M4350

To enable Virtual Router Redundancy Protocol version 3 (VRRPv3) configuration on a device, use the fhrp version vrrp v3 command in global configuration mode.

When VRRPv3 is in use, VRRP version 2 (VRRPv2) is unavailable. If you enter the no fhrp version vrrp v3 command, VRRPv3 is disabled and VRRPv2 is enabled. Also, operational data is reset, and the VRRPv2 configuration is applied. The same guidelines apply when VRRPv2 is in use and you enter the no ip vrrp command.

Default Disabled
Format fhrp version vrrp v3
Mode Global Config

no fhrp version vrrp v3

This command disables VRRPv3 on the switch and enables VRRPv2 on the switch.

Format no fhrp version vrrp v3
Mode Global Config

vrrp address-family

M4350

If VRRPv3 is configured, this command creates a VRRPv3 group on an interface and lets the CLI enter VRRPv3 configuration mode.

Format vrrp group-id address-family {ipv4 | ipv6}
Mode Interface Config
Parameter Definition
group-id The virtual router group number, which is in the range from 1 to 255.
ipv4 An IPv4 address family for this VRRP group.
ipv6 An IPv6 address family for this VRRP group.

Command example:

CODE
(NETGEAR Switch)(Config)#interface 1/0/7
(NETGEAR Switch)(Interface 1/0/7)#vrrp 22 address-family ipv4
(NETGEAR Switch)(config-if-vrrp)

no vrrp address-family

This command removes a VRRPv3 group from an interface.

Before you can use this command, you must disable virtual router using the shutdown command in the appropriate VRRP Config mode.

Format no vrrp group-id address-family {ipv4 | ipv6}
Mode Interface Config

preempt (VRRPv3 Config mode)

M4350

This command configures the switch to take over as the primary virtual router for a VRRP group if the switch has a higher priority than the current primary virtual router.

The optional delay minimum keyword with the seconds argument specifies the number of seconds that the switch waits before issuing an advertisement claiming primary ownership. The default delay is 0 seconds. The range is from 0 to 3600 seconds.

Default Enabled with default delay value of 0.
Format preempt [delay minimum seconds]
Mode VRRPv3 Config

no preempt (VRRPv3 Config mode)

This command prevents the switch from taking over as the primary virtual router for a VRRP group if the switch has a higher priority than the current primary virtual router.

Format no preempt
Mode VRRPv3 Config

accept-mode (VRRPv3 Config mode)

M4350

This command lets a virtual router that functions as the primary virtual router accept packets that are addressed to the address owner’s virtual IP address if the virtual router is not owner of the virtual IP address.

Default Disabled
Format accept-mode
Mode VRRPv3 Config

no accept-mode (VRRPv3 Config mode)

This command prevents a virtual router that functions as the primary virtual router from accepting packets that are addressed to the address owner’s virtual IP address if the virtual router is not owner of the virtual IP address.

Format no accept-mode
Mode VRRPv3 Config

priority (VRRPv3 Config mode)

M4350

This command sets the priority level of the switch within a VRRPv3 group. The priority level controls which device becomes the primary virtual router. The range is from 1 to 254. The default is 100.

Default 100
Format priority level
Mode VRRPv3 Config

no priority (VRRPv3 Config mode)

This command sets the priority level of the switch within a VRRPv3 group to the default value of 100.

Format no priority
Mode VRRPv3 Config

timers advertize (VRRPv3 Config mode)

M4350

This command configures the interval between successive advertisements by the primary virtual router in a VRRP group.

The advertisements that are sent by the primary virtual router communicate the advertisement interval, state, and priority of the current primary virtual router. The VRRP timers advertise command configures the time between successive advertisement packets and the time before other routers declare the primary router to be down. VRRP backup routers learn timer values from the primary router advertisements. The timers configured on the primary router always override any other timer settings that are used for calculating the primary down time interval on VRRP backup routers. The range is from 1 to 4095 centiseconds.

Default 100
Format timers advertize centiseconds
Mode VRRPv3 Config

no timers advertize (VRRPv3 Config mode)

This command sets the timers advertize interval within a VRRPv3 group to the default value of 100 centiseconds.

Format no timers advertize
Mode VRRPv3 Config

address (VRRPv3 Config mode)

M4350

This command sets the primary or secondary IP address of the switch within a VRRPv3 group.

If you do not specify the primary or secondary option, the specified IP address is set as the primary IP address. The virtual IPv6 primary address must be a link-local address.

VRRPv3 for IPv6 requires that a primary virtual link-local IPv6 address is configured to allow the group to operate. After the primary link-local IPv6 address is established for the group, you can add the secondary global addresses.

Default 100
Format address ip-address [primary | secondary]
Mode VRRPv3 Config

no address (VRRPv3 Config mode)

This command removes the configured secondary IPv4 or IPv6 address. You cannot remove the primary address, but you can modify it.

Format no timers advertize
Mode VRRPv3 Config

shutdown (VRRPv3 Config mode)

M4350

This command disables the VRRPv3 group configuration.

Default 100
Format shutdown
Mode VRRPv3 Config

no shutdown (VRRPv3 Config mode)

This command updates the virtual router state after you complete the configuration.

Format no shutdown
Mode VRRPv3 Config

track interface (VRRPv3 Config mode)

M4350

This command configures tracking of the interface for the switch within a VRRPv3 group. Configure Bidirectional Forwarding Detection (BFD) by using the bfdneighbor keyword and ip-address argument to track the reachability to the uplink next hop address.

After you configure interface tracking, the switch receives notifications when the state of the interface changes. If BFD tracking is enabled, a BFD session is created with the BFD destination IP address of the configured BFD neighbor IP address, and the switch receives notification when the BFD session state changes.

Use the decrement keyword and number argument to decrease the priority of the switch within the VRRPv3 group by the specified value when the interface goes down, or the associated BFD session goes down. Similarly, the priority is increased by the same specified value when the interface comes up or the associated BFD session comes up. If you do not specify the decrement value, the default decrement value used is 10.

The overall state of a track interface is considered as up only when both of the events (the “interface up event” and the “BFD session up event”) are received. The decrement or increment of the priority is based on the overall state of the tracked interface.

Default

Enabled

Decrement value: 10

Format track interface {unit/slot/port | vlan vlan-id} [bfdneighbor ip-address] [decrement number]
Mode VRRPv3 Config
Parameter Definition
unit/slot/port The interface that must be tracked.
vlan vlan-id The VLAN ID that must be tracked.
bfdneighbor ip-address The IPv4 or IPv6 address of the BFD neighbor that must be tracked.
decrement number The VRRP priority decrement for the tracked interface. The range is from 1 to 254.

Command example:

CODE
(NETGEAR Switch)(config-if-vrrp)#track interface 1/0/6 bfdneighbor 19.168.2.99 decrement
76

no track interface (VRRPv3 Config mode)

This command disables tracking of the interface for the device within a VRRPv3 group.

Format no track interface {unit/slot/port | vlan vlan-id} [bfdneighbor ip-address] [decrement]
Mode VRRPv3 Config

track ip route (VRRPv3 Config mode)

M4350

This command configures tracking of the IP route for the switch in a VRRPv3 group. After you configure interface tracking, the switch receives notifications when the state of the IP route changes. The decrement option can be set to decrease the priority of the device within a VRRPv3 group by the specified value when the route becomes unavailable.

Use the decrement keyword and number argument to decrease the priority of the switch within the VRRPv3 group by the specified value when the IP route goes down. Similarly, the priority is increased by the same specified value when the IP route comes up. If you do not specify the decrement value, the default decrement value used is 10.

Default

Disabled

Decrement value: 10

Format track ip route ip-address/prefix-len [decrement number]
Mode VRRPv3 Config
Parameter Definition
ip-address/prefix-len The prefix and prefix length of the route to be tracked.
decrement number The VRRP priority decrement for the tracked interface. The range is from 1 to 254.

no track ip route (VRRPv3 Config mode)

This command disables tracking of the route for the device within a VRRPv3 group.

Format no track ip route ip-address/prefix-len [decrement]
Mode VRRPv3 Config

show vrrp

M4350

Without the optional parameters, this command displays information for all active VRRPv3 groups. With parameters, this command displays information for all active VRRPv3 groups configured in an IPv4 or IPv6 address family, or the active VRRPv3 groups configured in an IPv4 or IPv6 address family for the specified interface.

Format show vrrp [{ipv4 | ipv6}] [{unit/slot/port | vlan vlan-id} vr-id]
Mode Privileged EXEC
Parameter Definition
ipv4 (Optional) Indicates that the virtual router group belongs to an IPv4 address family.
ipv6 (Optional) Indicates that the virtual router group belongs to an IPv6 address family.
unit/slot/port (Optional) The interface number to which the virtual router belongs.
vlan vlan-id (Optional) The VLAN ID to which the virtual router belongs.
vr-id (Optional) The virtual router group number, which can be in the range from 1 to 255.

Command example:

The following example shows the 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:

The following example shows the 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:

The following example shows the 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:

The following example shows the command output when the ipv4 parameter, an interface, and a virtual router group number are specified.

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
Mode Privileged EXEC
Field Description
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. The state can be one of the following: Init, Backup (now referred to as secondary), or Master (now referred to as primary).
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
----------- ---- ---- --- -------- --- --- ------ -------------
0/1         1    IPv4 100 200s      Y   Y  Init   192.0.1.10
0/3         2    IPv4 200 200s      Y   Y  Init   124.0.3.17
0/1         7    IPv6 100 200s      Y   Y  Backup 5002::1
0/5         2    IPV6 20  200s      Y   Y  Master 2001::2

show vrrp statistics

M4350

Without the optional parameters, this command displays information for all active VRRPv3 groups. With parameters, this command displays information for all active VRRPv3 groups configured in an IPv4 or IPv6 address family, or the active VRRPv3 groups configured in an IPv4 or IPv6 address family for the specified interface.

Format show vrrp statistics [{ipv4 | ipv6}] [{unit/slot/port | vlan vlan-id} vr-id]
Mode Privileged EXEC
Parameter Definition
ipv4 (Optional) Indicates that the virtual router group belongs to an IPv4 address family.
ipv6 (Optional) Indicates that the virtual router group belongs to an IPv6 address family.
unit/slot/port (Optional) The interface number to which the virtual router belongs.
vlan vlan-id (Optional) The VLAN ID to which the virtual router belongs.
vr-id (Optional) The virtual router group number, which can be in the range from 1 to 255.

Command example:

The following example shows the 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:

The following example shows the command output when the ipv6 parameter, an interface, and a virtual router group number are specified.

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 vrrp statistics

M4350

Use this command to clear VRRP statistical information for a specific interface or VLAN within a VRRPv3 group and IP address family. If you enter this command without the optional arguments, the global statistics and all virtual routers (both IPv4 and IPv6) are reset.

If you specify the optional arguments, the statistics are reset for the virtual router that corresponds to the specified combination of the IP address family, interface or VLAN, and VR ID.

Format clear vrrp statistics [{ipv4 | ipv6} {unit/slot/port | vlan vlan-id} vrid]
Modes Privileged EXEC
Term Definition
ipv4 (Optional) Indicates that the virtual router group belongs to an IPv4 address family.
ipv6 (Optional) Indicates that the virtual router group belongs to an IPv6 address family.
unit/slot/port (Optional) The interface number to which the virtual router belongs.
vlan vlan-id (Optional) The VLAN ID to which the virtual router belongs.
vr-id (Optional) The virtual router group number, which can be in the range from 1 to 255.