Configuration commands
Use these M4500 CLI commands to enable VRRP, create virtual routers, and set the virtual IP, priority, preemption, authentication, timers, and tracking.
ip vrrp
This command enables the administrative mode of VRRP in the router. To disable the administrative mode of VRRP in the router, use the no form of this command.
| Default | Disabled |
| Format |
|
| Mode | Global Config |
ip vrrp master-backup
This command disables the active active mode of VRRP in the router.
To enable the active active mode of VRRP in the router, use the no form of this command.
| Default | Disabled |
| Format |
|
| Mode | Global Config |
ip vrrp <vrid>
This command sets the virtual router ID on an interface for Virtual Router configuration in the router. To remove all VRRP configuration details of the virtual router configured on a specific interface, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
ip vrrp ip
This command sets the primary or secondary IP address of the device within a VRRPv2 group.
If the secondary option is not specified, the specified IP address is set as the primary. Also the removing of the primary virtual IP 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.
To remove the secondary address, use the no form of this command.
| Format | ip vrrp <1-255> ip <addr> [secondary] |
no ip vrrp <1-255> ip <addr> [secondary]
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
| <addr> | Secondary IP address of the router ID. |
| Default | None |
| Mode | Interface Config |
ip vrrp mode
This command enables the virtual router configured on the specified interface. Enabling the status field starts a virtual router. Disabling the status field stops a virtual router. To disable the virtual router configured on the specified interface, use the no form of this command.
| Default | Disabled |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
ip vrrp accept-mode
Use this command to allow the VRRP Master to accept ping packets sent to one of the virtual router's IP addresses. To prevent the VRRP Master from accepting ping packets sent to one of the virtual router's IP addresses, use the no form of this command.
| Default | Disabled |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
ip vrrp authentication
This command sets the authorization details value for the virtual router configured on a specified interface. To set the default authorization detailed value for the virtual router configured on a specified interface, use the no form of this command.
| Default | No authentication |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
| <key> | A text password used for authentication. |
ip vrrp preempt
This command sets the preemption mode value for the virtual router configured on a specified interface. To set the default preemption mode value for the virtual router configured on a specified interface, use the no form of this command.
| Default | Enabled |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
| <key> | A text password used for authentication. |
ip vrrp priority
This command sets the priority value for the virtual router configured on a specified interface. The router with the highest priority is elected master. 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 master. If the master 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 master's priority, the router will take over as master only if preempt mode is enabled. To set the default priority value for the virtual router configured on a specified interface, use the no form of this command.
| Default | The default priority value is 100 unless the router is the address owner, in which case its priority is automatically set to 255. |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
| <1-254> | The range of priority is 1 to 254. |
ip vrrp timers advertise
This command sets the advertisement value for a virtual router in seconds. To set the default advertisement value for a virtual router, use the no form of this command.
| Default | 1 second |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
| <1-255> | The range of advertisement interval is from 1 to 255 seconds. |
ip vrrp track interface
This command alters 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. Only IP interfaces are tracked. A tracked interface is up if the IP on that interface is up. Otherwise, the tracked interface is down.
When the tracked interface is down or the interface has been removed from the router, the priority of the VRRP router will be decremented by the value specified in the decrement argument. When the interface is up for IP protocol, the priority will be incremented by the decrement value. A VRRP configured interface can track more than one interface. When a tracked interface goes down, then the priority of the router will be decreased by 10 (the default priority decrement) for each downed interface. The default priority decrement is changed using the decrement 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 giving the optional priority, then the default priority will be set. The default priority decrement is 10. To remove the interface from the tracked list or to restore the priority decrement to its default, use the no form of this command.
| Default | Decrement: 10 |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
| <vlan-id> | VLAN ID. The range of VLAN ID is 1 to 4093. |
| < 1-254 > | The range of decrement is 1 to 254. |
ip vrrp track ip route
This command tracks the route reachability. When the tracked route is deleted, the priority of the VRRP router will be decremented by the value specified in the decrement 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, then the priority of the router will be decreased by 10 (the default priority decrement) for each downed route. By default no routes are tracked. If you specify just the route to be tracked, without giving the optional priority, then the default priority will be set. The default priority decrement is 10. The default priority decrement is changed using the decrement argument. To remove the route from the tracked list or to restore the priority decrement to its default, use the no form of this command. 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.
| Default | Decrement: 10 |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of virtual router ID is 1 to 255. |
| < 1-254 > | The range of decrement is 1 to 254. |