C H A P T E R  12

Feedback VRRP


Note - This chapter applies to the Sun Network 10GbE Switch 72p product only. VRRP is not supported on the Sun Blade 6000 Ethernet Switched NEM 24p 10GbE, so do not use any of the procedures in this chapter for that product.


VRRP is an election protocol that dynamically assigns responsibility for one or more virtual router to the VRRP routers on a LAN, allowing several routers on a multi-access link to utilize the same virtual IP address. A VRRP router is configured to run the VRRP protocol in conjunction with one or more other routers attached to a LAN. In a VRRP setup, one router is elected as the master router with the other routers acting as backups for the case of failure of the master router. VRRP is designed to eliminate the router as a single point of failure when static routes are used.


12.1 VRRP Commands

The list of CLI commands for the configuration of VRRP is as follows:

12.1.1 router VRRP

Related Commands

12.1.2 interface

Selects an interface to configure. The no form of the command deletes the virtual router entries on the given interface.


interface {vlan 1-4094 | interface-type interface-id}


no interface {vlan 1-4094 | interface-type interface-id}


Mode

VRRP Router Configuration

Example

SEFOS(config-vrrp)# interface vlan 3

Notes

  • VRRP must be enabled prior to the execution of this command.
  • This interface must have an ip address prior to the execution of this command.

Related Commands

12.1.3 vrrp - ipv4 address

Sets an associated IP address for the virtual router. The no form of the command deletes the associated IP address for the virtual router.


vrrp vr-id_1-255 ipv4 ucast-addr [secondary]


no vrrp vr-id_1-255 ipv4 ucast-addr [secondary]


Syntax Description

vr-id_1-255 - Virtual router identifier. VRID is a number which along with an interface index uniquely identifies a virtual router instance on a given VRRP router. This value ranges between 1 and 255.

ucast-addr - Associated IP address to be added.

secondary - Indicates that this is a secondary IP address.

Mode

VRRP Interface Configuration

Example

SEFOS(config-vrrp-if)# vrrp 3 ipv4 10.0.0.1

Notes

  • Once this command is executed, the VRRP Module starts the transition from initial state to either backup state or master state as per the election process on the specific interface.
  • This command should precede any other interface command for this VR identifier.

Related Commands

12.1.4 vrrp - ip address

Sets an associated IP address for the virtual router. The no form of the command deletes the associated IP address for the virtual router. This command operates similar to that of the command vrrp - ipv4 address.


vrrp vr-id_1-255 ip ucast-addr [secondary]


Syntax Description

vr-id_1-255 - Virtual router identifier. VRID is a number which along with an interface index uniquely identifies a virtual router instance on a given VRRP router. This value ranges between 1 and 255.

ucast-addr - Associated IP address to be added.

secondary - Indicates that this is a secondary IP address.

Mode

VRRP Interface Configuration

Example

SEFOS(config-vrrp-if)# vrrp 3 ip 10.0.0.1

Notes

  • Once this command is executed, the VRRP Module starts the transition from initial state to either backup state or master state as per the election process on the specific interface.
  • This command should precede any other interface command for this VR identifier.

Related Commands

12.1.5 vrrp group shutdown

Shuts down all VRRP groups. This command operates similar to the no form of the command vrrp - ipv4 address, except that all the associated IP addresses of the virtual router will be deleted.


vrrp group shutdown


Mode

VRRP Interface Configuration

Example

SEFOS(config-vrrp-if)# vrrp group shutdown


Related Commands

12.1.6 vrrp - priority

Sets the priority for the virtual router. The no form of the command sets the priority for the virtual router to the default value.


vrrp vr-id_1-255 priority 1-254


no vrrp vr-id_1-255 priority


Syntax Description

vr-id_1-255 - Virtual router identifier.

priority - Priority used for the virtual router master election process.

Mode

VRRP Interface Configuration

Defaults

priority - 100

Example

SEFOS(config-vrrp-if)# vrrp 3 priority 7

Notes

  • Higher values imply higher priority.
  • A priority of 255 is used for the router that owns the associated IP address (es).
  • The command vrrp <vrid(1-255)> ipv4 <ip address> must be entered for the current interface (with the proper vrid) before the execution of this command.

Related Commands

12.1.7 vrrp - preempt

Enables the pre-emption of state change from either Backup to Master or vice versa based on the election process. The no form of the command disables the preempt mode.


vrrp vr-id_1-255 preempt [delay minimum 0-30]


no vrrp vr-id_1-255 preempt


Syntax Description

vr-id_1-255 - Virtual router identifier.

delay minimum - Number of seconds that the router will delay before issuing an advertisement claiming master ownership. This value ranges between 0 and 30.

Mode

VRRP Interface Configuration

Defaults

Pre-emption is enabled.

delay minimum - 0

Example

SEFOS(config-vrrp-if)# vrrp 3 preempt

Notes

The command vrrp - ipv4 address must be entered for the current interface (with the proper vr-id) before the execution of this command.


Related Commands

12.1.8 vrrp - text-authentication

Sets the authentication type for the virtual router to simple password. The no form of the command sets the authentication type for the virtual router to none.


vrrp vr-id_1-255 text-authentication password


no vrrp vr-id_1-255 text-authentication


Syntax Description

vr-id_1-255 - Virtual router identifier.

password - Authentication password used to validate the incoming VRRP packets.

Mode

VRRP Interface Configuration

Example

SEFOS(config-vrrp-if)# vrrp 3 text-authentication abcdefgh

Notes

  • The authentication password is an alphanumeric string with up to 8 characters.
  • The command vrrp - ipv4 address must be entered for the current interface (with the proper vrid) before the execution of this command.

Related Commands

12.1.9 vrrp - authentication text

Sets the authentication type for the virtual router to simple password. This command operates similar to the command vrrp - text-authentication.


vrrp vr-id_1-255 authentication text password


Syntax Description

vr-id_1-255 - Virtual router identifier. This value ranges between 1 and 255.

password - Authentication password used to validate the incoming VRRP packets.

Mode

VRRP Interface Configuration

Example

SEFOS(config-vrrp-if)# vrrp 3 authentication text abcdefgh

Notes

  • The authentication password is an alphanumeric string of up to 8 characters.
  • The command vrrp - ipv4 address must be entered for the current interface (with the proper vr-id) before the execution of this command.

Related Commands

12.1.10 vrrp - interval

Sets the advertisement timer for a virtual router. The no form of the command sets the advertisement timer for a virtual router to the default value.


vrrp vr-id_1-255 timer interval-seconds_1-255


no vrrp vr-id_1-255 timer


Syntax Description

vr-id_1-255 - Virtual router identifier. This value ranges between 1 and 255.

timer - The time interval, in seconds, between successive advertisement messages. This value ranges between 1 and 255.

Mode

VRRP Interface Configuration

Defaults

1 second

Example

SEFOS(config-vrrp-if)# vrrp 4 timer 6

Notes

  • Only the master router sends advertisements.
  • On expiry of the advertise timer, the Master sends advertisement packets to the backup
  • The commandvrrp - ipv4 address must be entered for the current interface (with the proper vrid) before the execution of this command.

Related Commands

12.1.11 vrrp - timers advertise

Sets the advertisement timer for a virtual router. This command operates similar to that of the command vrrp - interval.


vrrp vr-id_1-255 timers advertise [msec] interval-seconds_1-255


Syntax Description

vr-id_1-255 - Virtual identifier. This value ranges between 1 and 255.

msec - Unit of advertisement time is changed from seconds to milliseconds.

interval - The time interval, in seconds, between successive advertisement messages. This value ranges between 1 and 255.

Mode

VRRP Interface Configuration

Defaults

1 second

Example

SEFOS(config-vrrp-if)# vrrp 3 timers advertise 100

Notes

  • Only the master router sends advertisements
  • On expiry of the advertise timer, the master sends advertisement packets to the backup.
  • The command vrrp - ipv4 address must be entered for the current interface (with the proper vr-id) before the execution of this command.

Related Commands

12.1.12 vrrp - accept-mode

Enables VRRP accept mode. The no form of the command disables the VRRP accept mode.


vrrp vr-id_1-255 accept-mode enable


no vrrp vr-id_1-255 accept-mode enable


Syntax Description

vr-id_1-255 - V irtual router identifier. This value ranges between 1 and 255.

accept-mode - Identifies the mode to be enables.

Mode

VRRP Interface Configuration

Default

Accept mode disabled.

Example

SEFOS(config-vrrp-if)# vrrp 1 accept-mode enable


Related Commands

12.1.13 show vrrp interface - vrid

Displays the VRRP status information.


show vrrp [interface {vlan 1-4094 | interface-type interface-id} vr-id_1-255] [{brief | detail | statistics}]


Syntax Description

interface vlan - VRRP information on the given VLAN ID and VRID.

brief - Information about VRRP in brief.

detail - Information about VRRP in detail.

statistics - VRRP statistics.

vr-id_1-255 - Virtual Router ID.

interface-type - Interface type.

interface-id - Interface identifier.

Mode

Privileged EXEC

Example

SEFOS# show vrrp interface vlan 2 detail

vlan2 - vrID 1

---------------

State is Master

Virtual IP address is 12.0.0.2

Virtual MAC address is 00:00:5e:00:01:01

Master router is 12.0.0.2

Associated IpAddresses :

----------------------

 

12.0.0.2

Advertise time is 1 secs

Current priority is 100

Configured priority is 100, may preempt

vlan2 - vrID 2

---------------

State is Master

Virtual IP address is 12.0.0.1

 

Virtual MAC address is 00:00:5e:00:01:02

Master router is 12.0.0.1

Associated IpAddresses :

----------------------

12.0.0.1

 

Advertise time is 1 secs

Current priority is 255

Configured priority is 255, may preempt

 

SEFOS# show vrrp interface vlan 2 brief

P indicates configured to preempt

Interface vrID Priority P State Master VRouter

Addr Addr

--------- ---- -------- - ----- ------- -------

vlan2 1 100 P Master local 12.0.0.2

vlan2 2 255 P Master local 12.0.0.1

 

SEFOS# show vrrp interface vlan 2 statistics

vlan2 - vrID 1

---------------

Transitions to Master : 2

Advertisements Received : 0

Advertise Internal Errors : 0

Authentication Failures : 0

TTL Errors : 0

Zero Priority Packets Received : 1

Zero Priority Packets Sent : 0

 

Invalid Type Packets Received : 0

Address List Errors : 0

Invalid Authentication Type : 0

Authentication Type Mismatch : 0

Packet Length Errors : 0

vlan2 - vrID 2

---------------

Transitions to Master : 1

 

Advertisements Received : 0

Advertise Internal Errors : 0

Authentication Failures : 0

TTL Errors : 0

Zero Priority Packets Received : 0

Zero Priority Packets Sent : 0

Invalid Type Packets Received : 0

Address List Errors : 0

 

Invalid Authentication Type : 0

Authentication Type Mismatch : 0

Packet Length Errors : 0

 

SEFOS# show vrrp interface vlan 2

P indicates configured to preempt

Interface vrID Priority P State Master VRouter

Addr Addr

--------- ---- -------- - ----- ------- -------

vlan2 1 100 P Master local 12.0.0.2

vlan2 2 255 P Master local 12.0.0.1

Notes

This command can be executed with the VLAN identifier (1-4094) as the mandatory parameter.


Related Commands

12.1.14 show vrrp interface

Displays the VRRP status information.


show vrrp interface [{vlan 1-4094 | interface-type interface-id }] [{brief | detail | statistics}]


Syntax Description

interface vlan - VRRP information on the given VLAN identifier.

brief - Information about VRRP in brief.

detail - Information about VRRP in detail.

statistics - VRRP statistics.

interface-type - Interface type.

interface-id - Interface identifier.

Mode

Privileged EXEC

Example

SEFOS# show vrrp interface

P indicates configured to preempt

Interface vrID Priority P State Master Addr VRouter Addr

--------- ---- -------- - ----- ----------- ------------

vlan2 1 100 P Master local 21.0.0.1


Related Commands

 

Feedback