Skip to content
Ask AI

HA sync Configuration

[Command]

ha_sync enable

[Purpose]

Enable session synchronization

[View]

System configuration view

[Notes]

Before using the session synchronization feature, enable this switch first

[Use Cases]

sonic(config)# ha_sync enable

[Command]

show ha_sync statistics

[Purpose]

Display session synchronization statistics

[View]

System view

[Use Cases]

sonic# show ha_sync statistics

[Command]

show ha_sync summary

[Purpose]

Display session synchronization configuration information

[View]

System view

[Use Cases]

sonic# show ha_sync summary

[Command]

ha_sync global

[Purpose]

Global session synchronization configuration

[View]

System configuration view

[Notes]

All session synchronization configurations are configured here

[Use Cases]

sonic(config)# ha_sync global

[Command]

domain_id id

[Purpose]

Configure HA sync domain ID, default 0

[View]

ha_sync global configuration view

[Parameter]

idHA sync domain ID, range 0–4294967295

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# domain_id 1

[Command]

heartbeat_interval interval

[Purpose]

Configure HA sync heartbeat interval in seconds, default 5

[View]

ha_sync global configuration view

[Parameter]

intervalrange 0–4294967295

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# heartbeat_interval 10

[Command]

heartbeat_max_fail_counts counts

[Purpose]

Configure HA sync heartbeat max fail counts, default 3

[View]

ha_sync global configuration view

[Parameter]

countsrange 0–4294967295

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# heartbeat_max_fail_counts 5

[Command]

packet_size size

[Purpose]

Configure HA sync packet size, default 1400

[View]

ha_sync global configuration view

[Parameter]

sizerange 0–4294967295

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# packet_size 1300

[Command]

peer_address ip_address

[Purpose]

Configure HA sync peer address, this must be configured

[View]

ha_sync global configuration view

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# peer_address 1.1.1.1

[Command]

retransmit_interval interval

[Purpose]

Configure HA sync retransmit interval in seconds, default 2

[View]

ha_sync global configuration view

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# retransmit_interval 5

[Command]

retransmit_times times

[Purpose]

Configure HA sync retransmit times, default 3

[View]

ha_sync global configuration view

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# retransmit_times 5

[Command]

src_address ip_address

[Purpose]

Configure HA sync source address, , this must be configured

[View]

ha_sync global configuration view

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# src_address 2.2.2.2

[Command]

src_intfc ethernet interface_num

[Purpose]

Configure HA sync source interface, , this must be configured

[View]

ha_sync global configuration view

[Use Cases]

sonic(config)# ha_sync global
sonic(config-ha-sync-global)# src_intfc ethernet 1