VRRP/VRRP6
VRRP/VRRP6
VRRP/VRRP6 View
Table 1 VRRP/VRRP6 View
Command | Purpose |
|---|---|
show {vrrp|vrrp6} [interface {ethernet interface_name[.subinterface-number]|link-aggregation lag-id[.subinterface-number] |vlan vlan-id}] [vrid] [json|summary] | Display VRRP/VRRP6 status information. |
show {vrrp|vrrp6} [interface {ethernet interface_name[.subinterface-number]|link-aggregation lag-id[.subinterface-number] |vlan vlan-id}] [vrid] [json|summary]
[Command] show {vrrp|vrrp6} [interface {ethernet interface_name[.subinterface-number]|link-aggregation lag-id[.subinterface-number]|vlan vlan-id}] [vrid] [json|summary]
[Purpose] Display VRRP/VRRP6 status information.
[Parameters]
Parameter | Description |
|---|---|
interface_name | Interface name (eg.0/1). |
lag-id | LAG ID, the range is [1,9999]. |
subinterface-number | Subinterface number. |
vlan-id | VLAN ID, the range is [1,4094]. |
vrid | Virtual Router ID,the range is [0,255]. |
[View] Privileged User View
[Notes] Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# show vrrp 1
Virtual Router ID 1
Protocol Version 3
Shutdown No
Interface ethernet 0/4.3002
VRRP interface (v4) Vrrp4-1
Primary IP (v4) 107.2.0.171
Virtual MAC (v4) 00:00:5e:00:01:01
Status (v4) Master
Priority 110
Effective Priority (v4) 110
Preempt Mode Yes
Accept Mode Yes
Checksum with IPv4 Pseudoheader Yes
Advertisement Interval 1000 ms
Master Advertisement Interval (v4) 1000 ms
Advertisements Tx (v4) 36448
Advertisements Rx (v4) 8
Gratuitous ARP Tx (v4) 1216
State transitions (v4) 2
Skew Time (v4) 570 ms
Master Down Interval (v4) 3570 ms
Tracking interface 0
IPv4 Addresses 1
.................................. 107.2.0.1VRRP/VRRP6 Config
Table 2 VRRP/VRRP6 Config
Command | Purpose |
|---|---|
{vrrp|vrrp6} vrid [version 2|3] | Configure VRID and specify the running version. |
{vrrp|vrrp6} vrid advertisement-interval time | Configure advertisement interval for VRRP messages. |
{vrrp|vrrp6} vrid {ip A.B.C.D/M | ipv6 X:X::X:X/M} | Configure virtual IP. |
no {vrrp|vrrp6} vrid preempt | Enable preempt mode. |
{vrrp|vrrp6} vrid priority pri | Configure VRRP instance priority. |
{vrrp|vrrp6} vrid shutdown | Shutdown the VRRP instance. |
no vrrp vrid checksum-with-ipv4-pseudoheader | Configure checksum calculation with IPv4 packet pseudo-header. |
{vrrp|vrrp6} vrid track-interface {ethernet interface_name|link-aggregation lag-id |vlan vlan-id} priority-dec pri | Configure interface for instance association. |
{vrrp|vrrp6} vrid bfd peer peer-ip | Enable BFD for VRRP instances |
{vrrp|vrrp6} vrid bfd profile bfd-profile | Configure BFD profile for VRRP instances |
{vrrp|vrrp6} vrid [version 2|3]
[Command] {vrrp|vrrp6} vrid [version 2|3]
[Purpose] Configure VRID.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
version | Specify the VRRP running version, the default is 3, VRRP6 does not need to be specified. |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid to delete the VRRP instance configuratio. Run command no vrrp vrid version to delete the VRRP version configuration. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 1{vrrp|vrrp6} vrid advertisement-interval time
[Command] {vrrp|vrrp6} vrid advertisement-interval time
[Purpose] Configure advertisement interval for VRRP messages.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
time | Message advertisement interval, the range is [10, 40950].Unit is milliseconds, When the protocol version is 2, the value should be configured as a multiple of 1000; when the protocol version is 3, it should be configured as a multiple of 10. |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid advertisement-interval to restore the VRRP advertisement interval to the default value. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 1 advertisement-interval 100{vrrp|vrrp6} vrid {ip A.B.C.D/M | ipv6 X:X::X:X/M}
[Command] {vrrp|vrrp6} vrid {ip A.B.C.D/M | ipv6 X:X::X:X/M}
[Purpose] Configure virtual IP.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
A.B.C.D/M | Virtual IP |
X:X::X:X/M | Virtual IPV6 |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid {ip A.B.C.D/M | ipv6 X:X::X:X/M} to delete the virtual IP configuration. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 1 ip 1.1.1.1/24no {vrrp|vrrp6} vrid preempt
[Command] no {vrrp|vrrp6} vrid preempt
[Purpose] Disable preempt mode.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Default enable. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# no vrrp 0 preempt{vrrp|vrrp6} vrid priority pri
[Command] {vrrp|vrrp6} vrid priority pri
[Purpose] Configure VRRP instance priority.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
pri | Priority.Default is 100, with range is [1, 254]. |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid priority to delete the instance priority configuration. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 1 priority 200{vrrp|vrrp6} vrid shutdown
[Command] {vrrp|vrrp6} vrid shutdown
[Purpose] Shutdown the VRRP instance.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid shutdown to delete the shutdown the instance configuration. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 1 shutdownno vrrp vrid checksum-with-ipv4-pseudoheader
[Command] no vrrp vrid checksum-with-ipv4-pseudoheader
[Purpose] Configure checksum calculation without IPv4 packet pseudo-header,but only for VRRP version 3.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] By default, the checksum calculation includes the IPv4 packet pseudo-header. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# no vrrp 1 checksum-with-ipv4-pseudoheader{vrrp|vrrp6} vrid track-interface {ethernet interface_name|link-aggregation lag-id |vlan vlan-id} priority-dec pri
[Command] {vrrp|vrrp6} vrid track-interface {ethernet interface_name|link-aggregation lag-id |vlan vlan-id} priority-dec pri
[Purpose] Configure interface for instance association.
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
interface_name | Interface name (eg.0/1). |
lag-id | LAG ID, the range is [1,9999]. |
vlan-id | VLAN ID, the range is [1,4094]. |
pri | Priority Reduction Value. The range is [10, 50]. |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid track-interface {ethernet interface_name|link-aggregation lag-id |vlan vlan-id} to delete the interface for instance association configuration. Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 1 track-interface ethernet 0/4 priority-dec 50{vrrp|vrrp6} vrid bfd peer peer-ip
[Command] {vrrp|vrrp6} vrid bfd peer peer-ip
[Purpose] Enable BFD for VRRP instances
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
peer-ip | IP of BFD peer |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid bfd peer to disable BFD for VRRP instances Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 15 bfd peer 192.168.2.1{vrrp|vrrp6} vrid bfd profile bfd-profile
[Command] {vrrp|vrrp6} vrid bfdprofile bfd-profile
[Purpose] Configure BFD profile for VRRP instances
[Parameters]
Parameter | Description |
|---|---|
vrid | Virtual Router ID,the range is [0,255]. |
bfd-profile | Name of BFD profile |
[View] Physical Interface / Sub-interface/ VLANIF / LAGIF Configuration View
[Notes] Run command no {vrrp|vrrp6} vrid bfd profile to delete BFD profile for VRRP instances Currently only supported on CX308P-48Y-N-V2, CX532P-N-V2 and CX732Q-N-V2.
[Use Cases]
sonic# configure terminal
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# vrrp 15 bfd peer test