VRRP/VRRP6
19 min
\<font color="#1d50a2">vrrp/vrrp6\</font> \<font color="#1d50a2">vrrp/vrrp6 view\</font> \<font color="#1d05a2">table 1 vrrp/vrrp6 view\</font> 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 \<font color="#1d50a2">show {vrrp|vrrp6} \[interface {ethernet \</font> \[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 1 \<font color="#1d50a2">vrrp/vrrp6 config\</font> \<font color="#1d05a2">table 2 vrrp/vrrp6 config\</font> 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 \<font color="#1d50a2">{vrrp|vrrp6} \</font> \[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 \<font color="#1d50a2">{vrrp|vrrp6} \</font> \[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 \<font color="#1d50a2">{vrrp|vrrp6} \</font> \[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/24 \<font color="#1d50a2">no {vrrp|vrrp6} \</font> \[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 \<font color="#1d50a2">{vrrp|vrrp6} \</font> \[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 \<font color="#1d50a2">{vrrp|vrrp6} \</font> \[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 shutdown \<font color="#1d50a2">no vrrp v\</font> \[command] no vrrp v rid 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 \<font color="#1d50a2">{vrrp|vrrp6} \</font> \[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 \<font color="#1d50a2">{vrrp|vrrp6} vrid bfd peer peer ip\</font> \[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 \<font color="#1d50a2">{vrrp|vrrp6} \</font> \[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
