System information
Configuring VRRP
13-3
Configuring a Virtual IP Address
To configure a virtual IP address or addresses, use the ip vrrp address command in
Interface Configuration mode, as shown below. VRRP is not enabled for the virtual
router until you specify at least one IP address. If you specify one or more IP
addresses, those addresses are used as the designated IP address or addresses by
associated routers. Use the no ip vrrp address to remove the virtual IP address or
addresses.
MOT(config-if)#ip vrrp <number>> address <ip-address> [...<ip-address>]
where:
number is the VRID; valid values are 1 to 255.
ip-address is the virtual IP address.
Example
The following example configures the system to use 198.112.190.1 and 20.20.20.1 as
the virtual IP addresses of virtual router 1 on the configured Ethernet interface on slot
1, port 0:
interface ethernet 1/0
ip vrrp 1 address 198.112.190.1 20.20.20.1
Specifying Authentication String
To specify the authentication key for use with the authentication type, text only, use
the ip vrrp authentication key in Interface Configuration mode, as shown below.
This sets a simple text key in VRRP messages. The unencrypted authentication string
is transmitted for authentication type simple text in all VRRP protocol messages.
Use the no ip vrrp authentication key command to remove the specified
authentication string for use with the authentication type, text only.
Note: You must configure the same authentication string on all routers
associated with a virtual router. An Authentication mismatch does not prevent
a router from taking over as the designated master, however, it may cause
VRRP to work incorrectly. This can result in lack of communication between
virtual routers.