OcNOS DC : Layer 3 Guide : Virtual Router Redundancy Protocol Command Reference : VRRP v6 Commands
VRRP v6 Commands
This chapter describes the commands for VRRP IPv6.
enable
advertisement-interval
Use this command to configure the advertisement interval of a virtual router. This is the length of time, in seconds, between each advertisement sent from the master to its backup(s). The master virtual router sends VRRP advertisements to other VRRP routers in the same group. The IPV6 VRRP advertisements are sent to the multicast address assigned to the VRRP IPV6 group (FF02:0:0:0:0:0:XXXX:XXXX) and a backup virtual router has to join all multicast groups within this range. As a convenient assignment, OcNOS sends a VRRP advertisement to the multicast address FF02::12.The advertisements are sent every second by default.
Note: VRRP Master router and backup routers should be configured with the same advertisement interval. If there is a mismatch in the configuration, VRRP goes to the INIT state.
Use the no parameter with this command to restore the default setting.
Command Syntax
advertisement-interval <5-4095>
no advertisement-interval
Parameter
<5-4095>
Specify the advertisement interval in centi-seconds (multiples of 5) when VRRPv3 is enabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The example below shows how to configure an advertisement interval of 10 seconds for the virtual router with VR ID 3 on interface eth0.
#configure terminal
(config)#router ipv6 vrrp 3 eth0
(config-router)#advertisement-interval 10
circuit-failover
Use this command to enable the VRRP circuit failover feature.
Use the no parameter with this command to disable this feature.
Command Syntax
circuit-failover IFNAME <1-253>
no circuit-failover IFNAME <1-253>
no circuit-failover (IFNAME|)
Parameters
IFNAME
Specify an interface of the router that is monitored by the virtual router. This is usually an upstream interface. Should the interface go down, another router, configured as backup within the VRRP group, may take over as a master.
<1-253>
Specify the delta value. The value by which the virtual router decrements its priority value during a circuit failover event. Configure this value to be greater than the difference of priorities between the master and backup routers.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The example below shows how to configure circuit failover for the VRRP session with VR ID 1. Interface eth1 is considered the monitored interface.
#configure terminal
(config)#router ipv6 vrrp 1 eth0
(config-router)#circuit-failover eth1 30
disable
Use this command to disable a VRRP session on the router (to stop the router from participating in virtual routing). Refer to enable to enable a VRRP session on the router.
When this command is configured, a backup router assumes the role of master depending on its priority.
Command Syntax
disable
Parameters
None
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The example below shows to disable VRRP session.
#configure terminal
(config)#router ipv6 vrrp 1 eth0
(config-router)#disable
enable
Use this command to enable a VRRP session on the router, so the router participates in virtual routing. To make any changes to the VRRP configuration, first disable the Router from participating in Virtual Routing using the disable command.
Note: Configure the virtual IP address and define an interface for the VRRP session (using the virtual-ip and interface commands) before using this command.
Command Syntax
enable
Parameters
None
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The example below shows to enable VRRP session with VR ID 1 on interface eth0
#configure terminal
(config)#router ipv6 vrrp 1 eth0
(config-router)#enable
preempt-mode
Use this command to configure preempt mode. If set to true, the highest priority backup is always the master when the default master is unavailable. If set to false, a higher priority backup does not preempt a lower priority backup that is acting as master.
When the master router fails, the backup routers come online in priority order — highest to lowest. Preempt mode set to true allows a higher priority backup router to relieve a lower priority backup.
By default, a preemptive scheme is enabled whereby a higher priority backup virtual router that becomes available takes over for the backup virtual router that was elected to become master virtual router. This preemptive scheme can be disabled using the preempt-mode false command. If preemption is disabled, the backup virtual router that is currently elected as Master does not transition to backup again when the alternate backup router with higher priority becomes available.
Command Syntax
preempt-mode true
preempt-mode false
Parameters
true
Specify that preemption is enabled.
false
Specify that preemption is disabled.
 
Default
Default is true.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The example below shows to configure preempt mode as False.
#configure terminal
(config)#router ipv6 vrrp 1 eth0
(config-router)#preempt-mode false
priority
Use this command to configure the VRRP router priority within the virtual router. Priority determines the role that each VRRP router plays and what happens if the master virtual router fails. If a VRRP router owns the IP address of the virtual router and the IP address of the physical interface, this router functions as the master virtual router.
Priority also determines whether a VRRP router functions as a backup virtual router and the order of ascendancy to becoming a master virtual router if the master virtual router fails.
Use the no parameter with this command to disable this feature.
Command Syntax
priority <1-255>
no priority
Parameter
<1-255>
Specify a priority. For the master router, specify 255; otherwise use any number in the range <1-254>.
Default
Default values for priority are:
master router = 255
backup = 100
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The example below shows to set the priority
#configure terminal
(config)#router ipv6 vrrp 1 eth0
(config-router)#priority 101
router ipv6 vrrp
Use this command to associate an IPv6 interface with a VRRP session. When issued, this command enters the Router mode.
Use the no parameter with this command to remove the IPv6 VRRP configuration. Disable the IPv6 VRRP session before using this command.
Command Syntax
router ipv6 vrrp <1-255> IFNAME
no router ipv6 vrrp <1-255> IFNAME
Parameters
<1-255>
Specify the ID of the virtual router session to create.
IFNAME
Specify the name of the IPv6 interface on which VRRP is enabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The example below shows how to enable an IPv6 VRRP session with VR ID 1 on interface eth0.
#configure terminal
(config)#router ipv6 vrrp 1 eth0
(config-router)#
router ipv6 vrrp vlan
Use this command to associate a VLAN with a VRRP session. When issued, this command enters the Router mode.
Use the no parameter with this command to remove the IPv6 VRRP configuration. Disable the IPv6 VRRP session before using this command.
Command Syntax
router ipv6 vrrp <1-255> vlan <1-4094>
no router ipv6 vrrp <1-255> vlan <1-4094>
Parameters
<1-255>
Specify a virtual router identifier. Must be unique for each routing process.
<1-4094>
Specify the actual VLAN identifier
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This example shows the use of the router vrrp command to enter router mode. Note the change in the prompt.
#configure terminal
(config)#router ipv6 vrrp 100 vlan 123
(config-router)#
 
 
show running-config router ipv6 vrrp
Use this command to show the running configuration for VRRP.
Command Syntax
show running-config router ipv6 vrrp
Parameters
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The example below shows the running configuration of IPv6 VRRP. Virtual Router is configured as Master and Owner of IP address.
#show running-config router ipv6 vrrp
!
router ipv6 vrrp 1 eth0
virtual-ip fe80::202:b3ff:fed5:983e master
circuit-failover eth1 30
advertisement-interval 6
preempt-mode false
enable
!
#
virtual-ipv6
Use this command to set the virtual IPv6 address for the VRRP virtual router. This is the IPv6 address used by end hosts to address their default gateway. A maximum of one link-local and one global IPv6 address can be configured as virtual IP.
The VRRP Owner of the Virtual IPv6 address only responds to packets destined to the Virtual IPv6 address.
Use the no parameter with this command to remove a virtual IPv6 address assignment.
Syntax Description
virtual-ipv6 X:X::X:X (owner|)
no virtual-ip (X:X::X:X |)
Parameters
X:X::X:X
Virtual IPv6 address of the interface that participates in virtual routing.
owner
Specify the IPv6 address as the owner.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The example below shows how to configure a router as VRRP Owner:
#configure terminal
(config)#router ipv6 vrrp 1 eth1
(config-router)#virtual-ipv6 fe80::1 owner
(config-router)#virtual-ipv6 2001::10
The example below removes the virtual IP address assignment.
#configure terminal
(config)#router ipv6 vrrp 1 eth1
(config-router)#no virtual-ipv6