Configuration commands

Use these M4500 CLI commands to enable VRRPv3 and configure groups, preemption, priority, timers, virtual addresses, and tracking.

fhrp version vrrp v3

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 invoke no fhrp version vrrp v3, 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 the no ip vrrp command is issued. To disable the VRRPv3 and enable VRRPv2 in the router, use the no form of this command.

Default Disabled
Format

fhrp version vrrp v3

no fhrp version vrrp v3

Mode Global Config

vrrp

This command creates a VRRPv3 group and enters VRRPv3 group configuration mode. To remove the specified VRRPv3 group, use the no form of this command. Before you can use this command, you must disable Virtual Router using the shutdown command in the appropriate VRRP Config mode

Default None
Format

vrrp <group-id> address-family {ipv4 | ipv6}

no vrrp <group-id> address-family {ipv4 | ipv6}

Mode Interface Config
Fields Definition
<group-id> The virutal router group number. The range is from 1 to 255.
address-family Specifies the address family for the VRRP.
ipv4 (Optional) Specifies IPv4 address.
ipv6 (Optional) Specifies IPv6 address.

preempt

This command configures the device to take over as master virtual router for a VRRP group if it has higher priority than the current master virtual route. To prevent the device from taking over as master virtual router for a VRRP group if it has higher priority than the current master virtual route, use the no form of this command.

Default Enabled with default delay value of 0
Format

preempt [delay minimum <centiseconds>]

no preempt

Mode VRRPv3 Config
Fields Definition
<centiseconds> Number of seconds that the device will delay before issuing an advertisement claiming master ownership. The default delay is 0 centiseconds. The valid range is 0–3600 centiseconds.

accept-mode

This command controls whether a virtual router in master state will accept packets addressed to the address owner's virtual IP address as its own if it is not the virtual IP address owner. To reset the accept mode to the default value, use the no form of this command.

Default Disabled
Format

accept-mode

no accept-mode

Mode VRRPv3 Config

priority

This command sets the priority level of the device within a VRRPv3 group. The priority level controls which device becomes the master virtual router. To reset the priority level of the device to the default value, use the no form of this command.

Default 100
Format

priority <level>

no priority

Mode VRRPv3 Config
Fields Definition
level Priority of the device within the VRRP group. The range is from 1 to 254.

timers advertise

This command configures the interval between successive advertisements by the master virtual router in a VRRP group. The advertisements being sent by the master virtual router communicate the advertisement interval, state, and priority of the current master virtual router. The VRRP timers advertise command configures the time between successive advertisement packets and the time before other routers declare the master router to be down. VRRP backup routers learn timer values from the master router advertisements. The timers configured on the master router always override any other timer settings that are used for calculating the master down time interval on VRRP backup routers. To restore the default value, use the no form of this command.

Default 1 (100 milliseconds)
Format

timers advertise <milliseconds>

no timers advertise

Mode VRRPv3 Config
Fields Definition
milliseconds Time interval between successive advertisements by the master virtual router. The unit of the interval is in 100 milliseconds. The valid range is 100 to 40000 milliseconds

shutdown

This command disables the VRRP group configuration. To enable and update the virtual router state after completing configuration.restore the default value, use the no form of this command.

Default shutdown
Format

shutdown

no shutdown

Mode VRRPv3 Config

address

This command set the primary or secondary IP address of the device within a VRRPv3 group. If the primary or secondary option is not specified, the specified IP address is set as the primary. The Virtual IPv6 primary address should be a link-local address only. When a global IPv6 address is given as a primary address for the VRRP IP then the config fails with the following error message – “Error! Primary virtual IPv6 address should be a link-local address only.” Also the removing of the primary virtual IP (IPv4 or IPv6) is not allowed. The primary virtual IP of a virtual router can only be modified. The secondary virtual IP can be removed using the no form of the this command. Also, 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 on the group, you can add the secondary global addresses. To remove the secondary address, use the no form of this command.

Default None
Format

address <ip-address> [primary | secondary]

no address <ip-address> secondary

Mode VRRPv3 Config
Fields Definition
ip-address IPv4 or IPv6 address You can specify an IPv4 address in the following format: ipv4-address You can specify an IPv6 address in the following format: ipv6-link-local-address
primary (Optional) Set primary IP address of the VRRPv3 group.
secondary (Optional) Set additional IP address of the VRRPv3 group.

track interface

This command configures tracking of the interface for the device within a VRRPv3 group. Once interface tracking is configured, the VRRPv3 feature receives notifications when the interface changes state. The decrement option can be set to decrease the priority of the device within a VRRPv3 group by the specified value when the interface goes down. To disable tracking of the interface for the device within a VRRPv3 group, use the no form of this command.

Default Disabled (the default of the decrement number is 10)
Format

track interface {<slot/port> | vlan <vlan-id>} [decrement number]

no track interface {<slot/port> | vlan <vlan-id>} [decrement number]

Mode VRRPv3 Config
Fields Definition
slot/port The interface to track.
vlan-id The VLAN to track.
decrement number (Optional) Specify the VRRP priority decrement for the tracked object. The number is the amount by which priority is decremented. The range is 1–254.

track ip route

This command configures tracking of the IP route for the device within a Virtual Router Redundancy Protocol (VRRPv3) group. Once IP route tracking is configured, the VRRPv3 feature receives notifications when IP route changes state. 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. To disable tracking of IP route for the device within a VRRPv3 group, use the no form of this command.

Default None (the default of the decrement number is 10)
Format

track ip route <ip-address/prefix-len> [decrement number]

no track ip route <ip-address/prefix-len> [decrement number]

Mode VRRPv3 Config
Fields Definition
ip-address/prefix-len Prefix and prefix length of the route to be tracked
decrement number (Optional) Specify the VRRP priority decrement for the tracked route. The number is the amount by which priority is decremented. The range is 1–254.

clear vrrp statistics

This command clears VRRP statistical information for given interface of the device within a VRRPv3 group and IP address family. If this command is issued without the optional arguments then the global statistics and all virtual routers (both IPv4 and IPv6) are reset. If the optional arguments are specified, the statistics are reset for the virtual router corresponding to the given (IP address family, interface and VR-id) combination.

Format clear vrrp statistics [{ipv4| ipv6} {<slot/port> | vlan <vlan-id>} <vr-id>]
Mode Privileged Exec
Fields Definition
ipv4 (Optional) The Virtual router group belongs to IPv4 address family.
ipv6 (Optional) The Virtual router group belongs to IPv6 address family.
slot/port (Optional) The interface number to which the Virtual router belongs.
vlan-id (Optional) The VLAN number to which the virtual router belongs. The range is from 1 to 4093.
vr-id (Optional) The virtual router group number. The range is from 1 to 255.