High Availability neighborΒΆ

High Availability neighbor enables synchronizing dynamic ARP/NDP entries between two HA nodes in master/backup mode.

If the HA state is switched between the two nodes, the new master node will be able to take over dataplane traffic and synchonize its dynamic ARP/NDP entries with the backup node.

Caution

Static ARP/NDP entries (i.e. in the neighbor permanent state) are not synchronized. They must be configured on both nodes.

The HA state of a node can be statically configured using CLI/netconf or dynamically using the VRRP service.

../../../_images/ha-sample.svg

In this example, ARP/NDP entries learned by the ha1 (the master) will be sent to ha2 (the backup) through eth3.

HA neighbor parameters are configured in the ha-neighbor context:

ha1 running config# vrf main ha-neighbor
ha1 running ha-neighbor#!

Configure the ha1:

ha1 running ha-neighbor#! node-id 1
ha1 running ha-neighbor#! interface eth3
ha1 running ha-neighbor#! local-address 10.150.0.1
ha1 running ha-neighbor#! listen-ha-group ha-group1
ha1 running ha-neighbor#
  • node-id is a unique identifier for this node in the HA cluster. It ranges from 1 to 15.

  • interface is the network interface on which synchronization packets are exchanged

  • local-address is the IPv4 or IPv6 addresses of the other HA node.

  • listen-ha-group is the high-availability group that controls the activity state of this HA node. See High-availability Groups for more information.

Display ha1 HA neighbor state:

ha1 running ha-neighbor# show state
ha-neighbor
    enabled true
    node-id 1
    local-address 10.150.0.1
    listen-ha-group ha-group1
    interface eth3
    state master
    ..

On ha2, the node-id, interface and the local-address must be adjusted:

ha2 running config# vrf main ha-neighbor
ha2 running ha-neighbor#! node-id 2
ha2 running ha-neighbor#! interface eth3
ha2 running ha-neighbor#! local-address 10.150.0.2
ha2 running ha-neighbor#! listen-ha-group ha-group1
ha2 running ha-neighbor#

Display ha2 HA neighbor state:

ha2 running ha-neighbor# show state
ha-neighbor
    enabled true
    node-id 2
    local-address 10.150.0.2
    listen-ha-group ha-group1
    interface eth3
    state backup
    ..