Change the Default Gateway of a TPVM

Use this procedure to change the default gateway of a TPVM.​ This procedure has no impact on the functioning of EFA high-availability mode.

Ensure that the gateway IP address is in the same subnet as one of the subinterfaces that are created in EFA.

  1. Add static IP addresses to the subinterface.
    You can assign a maximum of one pair of static IP addresses.
    efa mgmt subinterface staticip --name <sub-int-name> --ip1 <ip-addr> 
    --ip2 <ip-addr>
  2. Change the gateway of the standby TPVM.
    Run the following commands in the order specified.
    • efa inventory device execute-cli --ip <standby-slx-ipaddr> 
      --command="tpvm stop"
    • efa inventory device execute-cli --ip <standby-slx-ipaddr> 
      --command "tpvm TPVM,interface management ip <standby-tpvm-ipaddr> 
      gw <new-gateway-ipaddr>" --config
    • efa inventory device execute-cli --ip <standby-slx-ipaddr> 
      --command="tpvm start" 
  3. Stop the active EFA TPVM node.
    This step forces a failover of EFA to the standby node.
    efa inventory device execute-cli --ip <active-slx-ipaddr> 
    --command="tpvm stop"
    The standby node becomes the active node. The node that you stopped becomes the standby node.
  4. Verify that the new active node is ready.
    efa status
    The output of this command indicates the status of the node, which should be 'Up.'
  5. Change the gateway of the new standby TPVM.
    This standby TPVM was the active TPVM before the failover. Run the following commands in the order specified.
    • efa inventory device execute-cli --ip <active-slx-ipaddr> 
      --command "tpvm TPVM,interface management ip <active-tpvm-ipaddr> 
      gw <new-gateway-ipaddr>" --config
    • efa inventory device execute-cli --ip <active-slx-ipaddr> 
      --command="tpvm start"