You can change the default gateway of
a TPVM.
About this task
Follow this procedure to change the default gateway of a
TPVM. This procedure has no impact on the functioning of XCO high-availability mode.
- The gateway IP address must be in
the same subnet as one of the subinterfaces that are created in XCO.
- To configure a default gateway
for the subinterface subnet, use only static IPv4 addresses.
- Perform this procedure on both
nodes where XCO is deployed, to avoid a
loss of XCO functionality.
- Perform this procedure with
caution. XCO and SLX-OS do not validate
reachability of the gateway during this operation.
- Vital services, such as DNS, NTP,
and LDAP, must be reachable from the new gateway.
Procedure
-
Add static IP addresses to the
sub interface.
You can assign a maximum of one
pair of static IP addresses. Only one sub interface at a time can have static IP
addresses.
efa mgmt subinterface staticip --name <sub-int-name> --ip1 <ip-addr>
--ip2 <ip-addr>
-
Change the gateway of the
standby TPVM.
efa inventory device execute-cli --ip <standby-slx-ipaddr>
--command "tpvm TPVM,interface management ip <standby-tpvm-ipaddr>
gw <new-gateway-ipaddr>" --config
-
Change the gateway of the active
TPVM.
efa inventory device execute-cli --ip <active-slx-ipaddr>
--command "tpvm TPVM,interface management ip <active-tpvm-ipaddr>
gw <new-gateway-ipaddr>" --config