Using the CLI

This example configures a pair of SEs (10.10.22.80 and 10.10.22.123) for Legacy HA.
The following commands create a new SE group for the pair of SEs:
: > configure serviceenginegroup NewGroup3 : serviceenginegroup> ha_mode ha_mode_legacy_active_standby : serviceenginegroup> floating_intf_ip 10.10.1.100 : serviceenginegroup> : serviceenginegroup> save
The following commands create a new SE group for the pair of SEs:
: > configure serviceenginegroup NewGroup2 : serviceenginegroup> ha_mode ha_mode_legacy_active_standby : serviceenginegroup> save
The following commands add the SEs to the new SE group:
: > configure serviceengine 10.10.22.123 10.10.22.80 : > configure serviceengine 10.10.22.123 : serviceengine> se_group_ref NewGroup2 : serviceengine> save
  • If
    Avi Load Balancer
    is deployed in full access mode then, these commands add both SEs to the group.
  • If
    Avi Load Balancer
    is installed in no access mode then, additional commands are needed to add the second SE to the group.
: > configure serviceengine 10.10.22.123 10.10.22.80 : > configure serviceengine 10.10.22.80 : serviceengine> se_group_ref NewGroup2 : serviceengine> save
The following commands configure a virtual service vs1 with VIP 10.10.1.99 on the SE group:
: > configure virtualservice vs1 : virtualservice> address 10.10.1.99 : virtualservice> se_group_ref NewGroup2 : virtualservice> save