Command Line Reference
Reliability Configuration
VRRP Configuration
14 min
show vrrp interface show vrrp interface \[command] show vrrp \[ id ] \[interface {vlan vlan id |ethernet interface num |link aggregation lag id }] show vrrp \[purpose] view detailed information about the vrrp backup group \[view] system view \[use cases] sonic# show vrrp 1 virtual router id 1 protocol version 3 autoconfigured no shutdown no interface vlan10 vrrp interface (v4) vrrp4 1 1 vrrp interface (v6) none primary ip (v4) 10 1 1 1 primary ip (v6) virtual mac (v4) 00 00 5e 00 01 01 virtual mac (v6) 00 00 5e 00 02 01 status (v4) master status (v6) initialize priority 100 effective priority (v4) 100 effective priority (v6) 100 preempt mode yes accept mode yes advertisement interval 1500 ms master advertisement interval (v4) 1500 ms master advertisement interval (v6) 0 ms advertisements tx (v4) 2546 advertisements tx (v6) 0 advertisements rx (v4) 892 advertisements rx (v6) 0 gratuitous arp tx (v4) 2 neigh adverts tx (v6) 0 state transitions (v4) 4 state transitions (v6) 0 skew time (v4) 910 ms skew time (v6) 0 ms master down interval (v4) 5410 ms master down interval (v6) 0 ms ipv4 addresses 1 10 1 1 11 ipv6 addresses 0 show vrrp summary show vrrp summary \[command] show vrrp summary \[purpose] view vrrp backup group information \[view] system view \[use cases] sonic# show vrrp summary interface vrid priority ipv4 ipv6 state (v4) state (v6) \ vlan10 1 150 1 1 master master vlan10 2 30 1 1 backup backup show vrrp default show vrrp default \[command] show vrrp default \[purpose] view default configuration for vrrp backup group \[view] system view \[use cases] sonic# show vrrp default advertisement interval preempt mode priority shutdown \ 1000 true 100 false vrrp vrrp \[command] vrrp vrrp id \[version version id ] \[purpose] create a vrrp backup group and specify the vrrp version \[view] interface view \[parameter] parameter description vrrp id the range of value is 1 255 version id the default value is 3 \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# vrrp 1 version 2 vrrp priority vrrp priority \[command] vrrp id priority value \[purpose] configure the priority of the device in the vrrp backup group \[view] interface view \[parameter] parameter description value the range of value is 1 254, the default value is 100 higher numbers indicate higher priority \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# vrrp 1 priority 20 vrrp advertisement interval vrrp advertisement interval \[command] vrrp id advertisement interval value \[purpose] configure the interval for sending vrrp advertisement packets \[view] interface view \[parameter] parameter description value "the range is from 10 to 40950 milliseconds, default value is 1000 milliseconds \[usage scenario] the master device periodically sends vrrp advertisement packets to the backup devices within the group to notify them of its normal operation if a backup device does not receive vrrp advertisement packets even after the master down interval timer expires, a new master will be elected when the master device voluntarily relinquishes its master status (such as when it leaves the backup group), it sends an advertisement packet with a priority of 0 this triggers a fast transition of the backup device to become the master, without waiting for the master down interval timer to expire the time taken for this transition is known as the skew time, calculated as (256 priority of the backup device) / 256, in centiseconds when the master device encounters a network failure and cannot send advertisement packets, the backup device cannot immediately determine its working status only after the master down interval timer expires will the backup device consider the master device as unable to function normally and switch its status to master the master down interval timer is set to 3×advertisement interval + skew time, in centiseconds \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# vrrp 1 advertisement interval 2500 vrrp ip vrrp ip a b c d \[command] vrrp ip a b c d \[purpose] create a vrrp backup group and assign a virtual ip address to the backup group \[view] interface view \[usage scenario] vrrp allows multiple devices to form a virtual switch without changing the network topology by configuring the virtual switch as the gateway, it provides gateway redundancy \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# vrrp 1 ip 192 168 0 1 vrrp ip send gratuitous arp interval vrrp ip send gratuitous arp interval \[command] vrrp ip send gratuitous arp interval value \[purpose] configure the interval for master to send gratuitous arp packets \[parameter] parameter description value interval,the range is from 10 to 600 \[view] system view \[usage scenario] in a vrrp backup group, to ensure the mac table entries on downstream switches are correct, the master device periodically sends gratuitous arp packets to refresh the mac address table entries on the downstream switches \[use cases] sonic(config)# vrrp ip send gratuitous arp interval 150 vrrp preempt vrrp preempt \[command] vrrp id preempt \[purpose] configure the switch in vrrp backup group with preempt mode \[parameter] parameter description id the range is from 1 to 255 \[view] vlan view \[usage scenario] in an unstable network, the backup device may not always receive vrrp packets promptly, causing frequent vrrp state changes and network oscillations to enhance the stability of the active/standby state, the user configures the switch in vrrp backup group with preempt mode \[use cases] sonic(config vlanif 10)# vrrp 1 preempt vrrp shutdown vrrp shutdown \[command] vrrp shutdown \[purpose] configure the criteria for this backup group to withdraw from the vrrp election \[view] interface view \[usage scenario] configure the criteria for this backup group to withdraw from the vrrp election and set the interface's vrrp state to 'initial' \[use cases] sonic(config)# interface ethernet 1 sonic(config if 1)# vrrp shutdown vrrp default vrrp default \[command] vrrp default {advertisement interval interval |preempt|priotiry value |shutdown} \[purpose] configure default values for vrrp parameters \[view] system configuration view \[usage scenario] in the system configuration view, configure default information for vrrp backup groups once configured, all backup groups can use this configuration as default if a backup group specifies specific parameters, those will take precedence over the default configuration \[use cases] sonic(config)# vrrp default priotiry 10
