CANOGA PERKINS CanogaOS Configuration Guide User Manual

Page 155

Advertising
background image

CanogaOS Configuration Guide

Proprietary & Confidential Canoga Perkins Metro Ethernet Switches

Page 155 of 350

20.1.5 VRRP Configuration
This section contains basic VRRP configuration examples. To see details on the commands used
in these examples, or to see the outputs of the Validation commands, refer to the VRRP
Command Reference
.

Configuring VRRP (One Virtual Router)

In this configuration the end-hosts install a default route to the IP address of virtual router
1(VRID = 1) and both routers R1 and R2 run VRRP. R1 is configured to be the Master for
virtual router 1 (VRID = 1) and R2 as a Backup for virtual router 1. If R1 fails, R2 will take over
virtual router 1 and its IP addresses, and provide uninterrupted service for the hosts. Configuring
only one virtual router, doubles the cost and leaves R2 idle at all times.

R1
DUT# configure terminal

Enter the Configure mode.

DUT(config)#router vrrp 1

Create a new VRRP session on the router and specify the VRID for the
session.

DUT(config-router)#virtual-ip
10.10.10.50

Set the virtual IP address for the VRRP session.

DUT(config-router)#interface eth-0-1

Specify the physical interface that will participate in virtual routing.

DUT(config-router)#preempt-mode true Set the preempt mode to specify that the highest priority will function as

a backup to master when master is unavailable

DUT(config-router)#
advertisement-interval 5

Configure the advertisement interval to 5 seconds.

DUT(config-router)# enable

Enable the VRRP session on the router.











Advertising