Add and Delete Management Routes

In a multi-node deployment, you can add, delete, and show management routes for Multiple Management IP (MMIP) networks.

Typically, the create and delete operations do not cause a high-availability failover. The route is instantiated on the active node of the cluster. If failover does occur from node 1 to node 2, then keepalived ensures that the route transitions from node 1 to node 2.
  1. To add a management route, run the following command.
    $ efa mgmt route create --src <mmip-vip> --to <dest-cidr> --via <next-hop-ip>
    If a route with the same destination exists, the operation fails. This operation updates the keepalived configuration file on both nodes of the high-availability cluster.
  2. To delete a management route, run the following command.
    $ efa mgmt route delete --src <mmip-vip> --to <dest-cidr> --via <next-hop-ip>
    If a route matching the three parameters does not existing, the operation fails. If a matching route is found, the keepalived configuration file is updated and reloaded on both nodes of the high-availability cluster.
  3. To generate a list of all management routes, run the following command.
    $ efa mgmt route show 
    +-------------+------------------+-------------+ 
    |  Route-Src  |     Route-To     |  Route-Via  | 
    +-------------+------------------+-------------+ 
    | 10.21.30.40 | 192.168.100.0/24 | 10.21.30.41 | 
    +-------------+------------------+-------------+