System information
Configuring VRRP
13-7
Specifying Priority
To specify the priority of the router to act as master for a virtual router, use the ip vrrp
priority command in Interface Configuration mode, as shown below. Use the ip vrrp
priority command to select a master when multiple routers are associated with the
same virtual router. If two routers have the same priority, the system compares their
primary IP addresses. The router with the higher IP address value takes precedence. A
priority of 255 is reserved for VRRP routers that own the virtual IP address. During
configuration, the system automatically sets the priority to 255 for the router owning
that IP address. This value cannot be changed. The system reserves the value 0 for the
master to indicate the relinquishing of responsibility of the virtual router. This value
cannot be changed. The default value is 100.
Use the no form of this command to restore the default priority value of the router.
MOT(config-if)#ip vrrp <number> priority <priority:1,254>
where:
number is the VRID; valid values are 1 to 255.
priority is the priority value for the virtual router; valid entries are 1 to 254.
Example
This example shows that the system is configured with a priority of 150 for virtual
router 1 on the configured interface 1/0.
interface ethernet 1/0
ip vrrp 1 priority 150
Note: If you set up a virtual IP address on a router with the same IP address
on a physical interface, it receives priority 255 and is always master, unless it
fails.