ServerIron ADX Switch and Router Guide
12.0.00
June 10, 2009

Table of Contents Previous Next Print


Configuring VRRP and VRRP-E > Configuration Examples

Configuration Examples
The following sections contain the CLI commands for implementing the VRRP and VRRP-E configurations shown in Figure 7.2 and Figure 7.3.
VRRP Example
To implement the VRRP configuration shown in Figure 7.2, use either of the following methods.
Configuring Router1
To configure VRRP Router1, enter the following commands:
NOTE: When you configure the Master (Owner), the address you enter with the ip-address command must already be configured on the interface.
The ip vrrp owner command specifies that this router owns the IP address you are associating with the VRID. Because this router owns the IP address, this router is the default Master router and its VRRP priority is thus 255.
Configuring Router2
To configure Router2 in Figure 7.2 after enabling VRRP, enter the following commands:
The backup command specifies that this router is a VRRP Backup for virtual router VRID1. The IP address entered with the ip-address command is the same IP address as the one entered when configuring Router1. In this case, the IP address cannot also exist on Router2, but the interface on which you are configuring the VRID Backup must have an IP address in the same subnet. By entering the same IP address as the one associated with this VRID on the Owner, you are configuring the Backup to back up the address, but you are not duplicating the address.
NOTE: When you configure a Backup router, the router interface on which you are configuring the VRID must have a real IP address that is in the same subnet as the address associated with the VRID by the Owner. However, the address cannot be the same.
The priority parameter establishes the router’s VRRP priority in relation to the other VRRP router(s) in this virtual router. The track-priority parameter specifies the new VRRP priority that the router receives for this VRID if the interface goes down. See “Track Ports and Track Priority”.
The activate command activates the VRID configuration on this interface. The interface does not provide backup service for the virtual IP address until you activate the VRRP configuration.
Syntax: router vrrp
Syntax: ip vrrp vrid <vrid>
Syntax: owner [track-priority <value>]
Syntax: backup [priority <value>] [track-priority <value>]
Syntax: track-port ethernet <portnum> | pos <portnum> | ve <num>
Syntax: ip-address <ip-addr>
Syntax: activate
VRRP-E Example
To implement the VRRP-E configuration shown in Figure 7.3, use the following CLI method.
Configuring Router1
To configure VRRP Router1 in Figure 7.3, enter the following commands:
Router1(config)# router vrrp-extended
Router1(config)# interface ethernet 1/6
Router1(config-if-1/6)# ip address 192.53.5.2/24
Router1(config-if-1/6)# ip vrrp-extended vrid 1
Router1(config-if-1/6-vrid-1)# backup priority 110 track-priority 20
Router1(config-if-1/6-vrid-1)# track-port ethernet 2/4
Router1(config-if-1/6-vrid-1)# ip-address 192.53.5.254
Router1(config-if-1/6-vrid-1)# activate
VRRP router 1 for this interface is activating
Router1(config-if-1/6-vrid-1)# exit
Router1(config)# interface ethernet 1/6
Router1(config-if-1/6)# ip vrrp-extended vrid 2
Router1(config-if-1/6-vrid-1)# backup priority 100 track-priority 20
Router1(config-if-1/6-vrid-1)# track-port ethernet 2/4
Router1(config-if-1/6-vrid-1)# ip-address 192.53.5.253
Router1(config-if-1/6-vrid-1)# activate
VRRP router 2 for this interface is activating
NOTE: The address you enter with the ip-address command cannot be the same as a real IP address configured on the interface.
Configuring Router2
To configure Router2, enter the following commands:
Router2(config)# router vrrp-extended
Router2(config)# interface ethernet 5/1
Router2(config-if-5/1)# ip address 192.53.5.3/24
Router2(config-if-5/1)# ip vrrp-extended vrid 1
Router2(config-if-5/1-vrid-1)# backup priority 100 track-priority 20
Router2(config-if-5/1-vrid-1)# track-port ethernet 3/2
Router2(config-if-5/1-vrid-1)# ip-address 192.53.5.254
Router2(config-if-5/1-vrid-1)# activate
VRRP router 1 for this interface is activating
Router2(config-if-5/1-vrid-1)# exit
Router2(config)# interface ethernet 5/1
Router2(config-if-5/1)# ip vrrp-extended vrid 2
Router2(config-if-5/1-vrid-1)# backup priority 110 track-priority 20
Router2(config-if-5/1-vrid-1)# track-port ethernet 2/4
Router2(config-if-5/1-vrid-1)# ip-address 192.53.5.253
Router2(config-if-5/1-vrid-1)# activate
VRRP router 2 for this interface is activating
The backup command specifies that this router is a VRRP-E Backup for virtual router VRID1. The IP address entered with the ip-address command is the same IP address as the one entered when configuring Router1. In this case, the IP address cannot also exist on Router2, but the interface on which you are configuring the VRID Backup must have an IP address in the same subnet. By entering the same IP address as the one associated with this VRID on the Owner, you are configuring the Backup to back up the address, but you are not duplicating the address.
NOTE: When you configure a Backup router, the router interface on which you are configuring the VRID must have a real IP address that is in the same subnet as the address associated with the VRID by the Owner. However, the address cannot be the same.
The priority parameter establishes the router’s VRRP-E priority in relation to the other VRRP-E router(s) in this virtual router. The track-priority parameter specifies the new VRRPE priority that the router receives for this VRID if the interface goes down. See “Track Ports and Track Priority”.
The activate command activates the VRID configuration on this interface. The interface does not provide backup service for the virtual IP address until you activate the VRRP-E configuration. Alternatively, you can use the enable command. The activate and enable commands do the same thing.
Syntax: router vrrp-extended
Syntax: ip vrrp-extended vrid <vrid>
Syntax: backup [priority <value>] [track-priority <value>]
Syntax: track-port ethernet <portnum> | pos <portnum> | ve <num>
Syntax: ip-address <ip-addr>
Syntax: activate
 

Configuring VRRP and VRRP-E > Configuration Examples

Table of Contents Previous Next Print
Copyright © 2009 Brocade Communications Systems, Inc.