Changing the system gateway address by using the CLI

You can use the command-line interface (CLI) to change the gateway address for a system.

To change the system gateway address, complete the following steps.

  1. Issue the lssystemip command to list the current gateway address of the system.
  2. Record the current gateway address for future reference.
  3. Issue the following command to change an IPv4 system gateway address:
    chsystemip -gw cluster_gateway_address -port cluster_port

    where cluster_gateway_address is the new gateway address for the system. The port parameter specifies which port (1 or 2) to apply changes to.

  4. Issue the following command to change an IPv6 system gateway address:
    chsystemip -gw_6 cluster_gateway_address -port cluster_port

    where cluster_gateway_address is the new gateway address for the system. The port parameter specifies which port (1 or 2) to apply changes to.