Sun Ethernet Fabric Operating System VRRP Administration Guide

Exit Print View

Updated: July 2015
 
 

Configure VRRP Priority

See the first figure in VRRP Topology for the toplology used in this example. You can configure a VRRP instance with a priority so that the router with higher priority will become the master for that instance. You can configure the priority from 1 to 254, with 1 being the lowest priority. A priority of 255 is used for the router that owns the associated IP addresses.

  1. Type the following commands in switch 1 to configure VRRP instance 1's priority as 200.
    1. Enter Global Configuration mode.
      SEFOS# configure terminal
      
    2. Enter Router Configuration mode.
      SEFOS(config)# router vrrp
      
    3. Enter Interface Configuration mode for VLAN 2.
      SEFOS(config-vrrp)# interface vlan 2
      
    4. Configure the priority as 200.
      SEFOS(config-vrrp-if)# vrrp 1 priority 200
      
    5. Exit Interface Configuration mode.
      SEFOS(config-vrrp-if)# end
      
  2. Type the following commands in switch 2 to configure the priority for VRRP instance 1 as 150.
    1. Enter Global Configuration mode.
      SEFOS# configure terminal
      
    2. Enter Router Configuration mode.
      SEFOS(config)# router vrrp
      
    3. Enter Interface Configuration mode for VLAN 2.
      SEFOS(config-vrrp)# interface vlan 2
      
    4. Configure the priority as 150.
      SEFOS(config-vrrp-if)# vrrp 1 priority 150
      
    5. Exit Interface Configuration mode.
      SEFOS(config-vrrp-if)# end
      
  3. View the priority in switch 1.
    SEFOS# show vrrp interface vlan 2
    P indicates configured to preempt
     
    Interface vrID Priority  P  State  Master Addr   VRouter Addr
    --------- ----  -------- -  -----  -----------   ------------
    vlan2    1      200      P  Master local         12.0.0.5
    
  4. View the priority in switch 2.
    SEFOS# show  vrrp  interface  vlan 2
    P indicates configured to preempt
     
    Interface vrID Priority P  State   Master Addr     VRouter Addr
    --------- ---- -------- -  -----   -----------     ------------
    vlan2     1      150    P  Backup   12.0.0.5       12.0.0.5