跳转到内容
Ask AI

VRRP/VRRP6

此内容尚不支持你的语言。

Table 1 VRRP/VRRP6 View

CommandPurpose
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.

[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]

ParameterDescription
interface_nameInterface name (eg.0/1).
lag-idLAG ID, the range is [1,9999].
subinterface-numberSubinterface number.
vlan-idVLAN ID, the range is [1,4094].
vridVirtual 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.1

Table 2 VRRP/VRRP6 Config

CommandPurpose
{vrrp|vrrp6} vrid [version 2|3]Configure VRID and specify the running version.
{vrrp|vrrp6} vrid advertisement-interval timeConfigure 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 preemptEnable preempt mode.
{vrrp|vrrp6} vrid priority priConfigure VRRP instance priority.
{vrrp|vrrp6} vrid shutdownShutdown the VRRP instance.
no vrrp vrid checksum-with-ipv4-pseudoheaderConfigure checksum calculation with IPv4 packet pseudo-header.
{vrrp|vrrp6} vrid track-interface {ethernet interface_name|link-aggregation lag-id |vlan vlan-id} priority-dec priConfigure interface for instance association.
{vrrp|vrrp6} vrid bfd peer peer-ipEnable BFD for VRRP instances
{vrrp|vrrp6} vrid bfd profile bfd-profileConfigure BFD profile for VRRP instances

[Command] {vrrp|vrrp6} vrid [version 2|3]

[Purpose] Configure VRID.

[Parameters]

ParameterDescription
vridVirtual Router ID,the range is [0,255].
versionSpecify 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

[Command] {vrrp|vrrp6} vrid advertisement-interval time

[Purpose] Configure advertisement interval for VRRP messages.

[Parameters]

ParameterDescription
vridVirtual Router ID,the range is [0,255].
timeMessage 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

[Command] {vrrp|vrrp6} vrid {ip A.B.C.D/M | ipv6 X:X::X:X/M}

[Purpose] Configure virtual IP.

[Parameters]

ParameterDescription
vridVirtual Router ID,the range is [0,255].
A.B.C.D/MVirtual IP
X:X::X:X/MVirtual 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/24

[Command] no {vrrp|vrrp6} vrid preempt

[Purpose] Disable preempt mode.

[Parameters]

ParameterDescription
vridVirtual 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

[Command] {vrrp|vrrp6} vrid priority pri

[Purpose] Configure VRRP instance priority.

[Parameters]

ParameterDescription
vridVirtual Router ID,the range is [0,255].
priPriority.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

[Command] {vrrp|vrrp6} vrid shutdown

[Purpose] Shutdown the VRRP instance.

[Parameters]

ParameterDescription
vridVirtual 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 shutdown

[Command] no vrrp vrid checksum-with-ipv4-pseudoheader

[Purpose] Configure checksum calculation without IPv4 packet pseudo-header,but only for VRRP version 3.

[Parameters]

ParameterDescription
vridVirtual 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

[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]

ParameterDescription
vridVirtual Router ID,the range is [0,255].
interface_nameInterface name (eg.0/1).
lag-idLAG ID, the range is [1,9999].
vlan-idVLAN ID, the range is [1,4094].
priPriority 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

[Command] {vrrp|vrrp6} vrid bfd peer peer-ip

[Purpose] Enable BFD for VRRP instances

[Parameters]

ParameterDescription
vridVirtual Router ID,the range is [0,255].
peer-ipIP 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

[Command] {vrrp|vrrp6} vrid bfdprofile bfd-profile

[Purpose] Configure BFD profile for VRRP instances

[Parameters]

ParameterDescription
vridVirtual Router ID,the range is [0,255].
bfd-profileName 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