vrrp ip
This command enables the Virtual Router Redundancy Protocol (VRRP) on an
interface and specifies the IP address of the virtual router. Use the
no
form to
disable VRRP on an interface and remove the IP address f rom the virtu al router.
Syntax
[no] vrrp group ip ip-address
group - Identifies the virtual router group. (Ra nge: 1-255)
ip-addre ss - The IP address of the virtu al router. This is the IP ad dress that
end-hosts set as their default gateway.
Default Setting
No virtual router groups are configured.
Command Mode
Interface (VLAN)
Command Usage
The interfaces of all routers participating in a virtual router group mus t be
within the same IP subnet.
If the IP address assigned to the virtual router with this command is already
configured as the primary address on this interface, this router is considered
the Owner, and will assume the role of the Master virtual router in the gr oup.
This interface is used for two purposes - to send/receive a dvertisem ent
messages and to forward on behalf of the virtual router when operating as the
Master VRRP router.
VRRP is enabled as soon as this command is entered. If you need to
customize any of the other parameters for VRRP such as authenticat ion,
priority, or advertisement interval, then first configure these parameters before
enabling VRRP.
Example
This example creates VRRP group 1 usin g the prim ary inter face for VLAN 1 as the
VRRP group Owner.
Console(config)#interface vlan 1
Console(config-if)#vrrp 1 ip 192.168.1.6
Console(config-if)#
40-2
Router Redundancy Commands
40