beautypg.com

8 virtual-ip – CANOGA PERKINS 9175 Command Reference User Manual

Page 318

background image

CanogaOS Command Reference

17-6

Examples

The following is sample output from the track command:

router vrrp 1

track interface eth-0-1


Related Commands

router vrrp

17.8 virtual-ip

To enable the Virtual Router Redundancy Protocol (VRRP) on an interface and identify the IP address of

the virtual router, use the virtual-ip command in router configuration mode. To disable VRRP on the

interface and remove the IP address of the virtual router, use the no form of this command.


Command Syntax

virtual-ip ip-address

no virtual-ip

ip-address IP address of the virtual router.


Default

VRRP is not configured on the interface.


Command Mode

Router configuration


Usage

For VRRP to elect a designated router, at least one router on the cable must have been configured with

the primary address of the virtual router.

VRRP does not support address learning. All addresses must be configured.

All routers in the VRRP group must be configured with the same primary address for the virtual router. If

different primary addresses are configured, the routers in the VRRP group will not communicate with

each other and any misconfigured routers in the group will change their state to master.


Examples

The following example shows how to enable VRRP on eth-0-1. The VRRP group is 1. IP address

10.0.1.20 is the address of the virtual router.

interface eth-0-1

no switchport

ip address 10.0.1.1/24

!

router vrrp 1

interface eth-0-1

virtual-ip 10.0.1.20

enable