In a multi-node deployment, you can add,
delete, and show management routes for multiple management IP network.
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.
-
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.
-
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.
-
To generate a list of all management routes, run the following command.