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:
- Issue the svcinfo
lsclusterip command to list the current IP addresses that
are used by the cluster.
- Record the current IP addresses for future reference.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 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
- 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
- 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.