Use the command-line interface (CLI) to change the IP addresses
that are associated with a system.
Attention: When you specify a new IP address for a system, the
existing communication with the system is broken. You must reconnect
to the system with the new IP address. Additionally, the address for
a system IP cannot be the same address used for the service IP. Using
the same IP address causes an error.
To change the system IP address, complete the following
steps:
- Issue the lssystemip command
to list IP addresses that are used by the system.
- Record the IP addresses for future reference.
- To change an Internet Protocol Version 4 (IPv4) system
IP address, issue this command:
chsystemip -clusterip cluster_ip_address -port cluster_port
where cluster_ip_address is
the new IP address for the system and cluster_port specifies
the port (1 or 2) where changes apply.
- To change an IPv4 system IP address to an IPv6 system IP
address, issue this command:
chsystemip -clusterip_6 cluster_ip_address -port cluster_port
where cluster_ip_address is
the new Internet Protocol Version 6 (IPv6) address for the system
and cluster_port specifies the port (1 or 2)
where changes apply.
- To change an IPv4 default gateway IP address, issue this
command:
chsystemip -gw cluster_gateway_address -port cluster_port
where cluster_gateway_address is
the new gateway address for the system and cluster_port specifies
the port (1 or 2) where changes apply.
- To change an IPv6 default gateway address, issue this
command:
chsystemip -gw_6 cluster_gateway_address -port cluster_port
where cluster_gateway_address is
the new gateway address for the system and cluster_port specifies
the port (1 or 2) where changes apply.
- Issue this command to change an IPv4 system subnet mask
chsystemip -mask cluster_subnet_mask -port cluster_port
where cluster_subnet_mask is
the new subnet mask for the system and cluster_port specifies
the port (1 or 2) where changes apply.
- For IPv6 addresses, you can issue this command to set the
prefix for the system:
chsystemip -prefix_6 -port cluster_port
where cluster_port specifies
the port (1 or 2) where changes apply.
- Optionally, to delete all of the IPv4 addresses in the
system after you change all addresses to IPv6, issue this command:
- Optionally, to delete all of the IPv6 addresses in the
system after you change all addresses to IPv4, issue this command:
- 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 this CLI command:
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 this CLI command:
ping ipv4_address | ipv6_address
where
ipv4_address
| ipv6_address is either the IPv4 address or IPv6 address.