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 that is 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:
- Display the IP routing table (optional) by using the CLI command lsroute as
follows:
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.
- Issue the ping command (optional) to diagnose IP configuration problems. An
example of the command is as follows:
ping -srcip4source_ipv4_address destination_ipv4_address-srcip6source_ipv6_address destination_ipv6_address