Modifying the cluster IP addresses using the CLI

You can use the command-line interface (CLI) to change the IP addresses that are associated with a cluster.

Attention: When you specify a new IP address for a cluster, the existing communication with the cluster is broken. You must reconnect to the cluster with the new IP address.

Perform the following steps to change the cluster IP address:

  1. Issue the svcinfo lsclusterip command to list the current IP addresses that are used by the cluster.
  2. Record the current IP addresses for future reference.
  3. To change an IPv4 cluster IP address, issue the following command:
    svctask chclusterip -clusterip cluster_ip_address -port cluster_port 

    where cluster_ip_address is the new IP address for the cluster and cluster_port specifies which port (1 or 2) to apply changes to.

  4. To change an IPv4 cluster IP address to an IPv6 cluster IP address, issue the following command:
    svctask chclusterip -clusterip_6 cluster_ip_address -port cluster_port

    where cluster_ip_address is the new IPv6 address for the cluster and cluster_port specifies which port (1 or 2) to apply changes to.

  5. To change an IPv4 default gateway IP address, issue the following command:
    svctask chclusterip -gw cluster_gateway_address -port cluster_port

    where cluster_gateway_address is the new gateway address for the cluster and cluster_port specifies which port (1 or 2) to apply changes to.

  6. To change an IPv6 default gateway address, issue the following command:
    svctask chclusterip -gw_6 cluster_gateway_address -port cluster_port

    where cluster_gateway_address is the new gateway address for the cluster and cluster_port specifies which port (1 or 2) to apply changes to.

  7. Issue the following command to change an IPv4 cluster subnet mask:
    svctask chclusterip -mask cluster_subnet_mask -port cluster_port

    where cluster_subnet_mask is the new subnet mask for the cluster and cluster_port specifies which port (1 or 2) to apply changes to.

  8. For IPv6 addresses, you can issue the following command to set the prefix for the cluster:
    svctask chclusterip -prefix_6 -port cluster_port 

    where cluster_port specifies which port (1 or 2) to apply changes to.

  9. Optionally, if you want to delete all of the IPv4 addresses in the cluster after you have changed all addresses to IPv6, issue the following command:
    svctask chcluster -noip 
  10. Optionally, if you want to delete all of the IPv6 addresses in the cluster after you have changed all addresses to IPv4, issue the following command:
    svctask chcluster -noip_6 
  11. The IP routing table provides details of the gateway that is used for IP traffic to a range of IP addresses for each Ethernet port. This information can be used to diagnose configuration node accessibility problems. To display the IP routing table, enter the following CLI command:
    svcinfo lsroute
  12. The ping command can be used to diagnose IP configuration problems by checking whether a given IP address is accessible from the configuration node. The command can be useful for diagnosing problems where the configuration node cannot be reached from a specific management server. For example, enter the following CLI command:
    svctask ping ipv4_address | ipv6_address 
    where ipv4_address | ipv6_address is either the IPv4 address or the IPv6 address.
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.