Use the command-line interface (CLI) to change the IP addresses that are associated with
a system.
About this task
Attention: When you specify a new IP address for a system, existing
communication with the system is broken. You must reconnect the system with the new IP
address. Additionally, the address for the system IP address cannot be the same IP
address as the service IP address. Using the same IP address for both causes
an error.
Procedure
To change the system IP address, complete the following
steps.
-
Run the lssystemip command to list IP addresses
in use by the system.
-
Record the IP addresses for future reference.
-
To change an Internet Protocol Version 4 (IPv4) system IP address, use the
-clusterip parameter.
chsystemip -clusterip cluster_ip_address -port cluster_port
The cluster_ip_address variable is the new IP address for the
system. The cluster_port variable specifies the port (1 or 2) where the
change applies.
-
To change an IPv6 system IP address, use the
-clusterip_6 parameter.
chsystemip -clusterip_6 cluster_ip_address -port cluster_port
The cluster_ip_address variable is the new Internet Protocol
Version 6 (IPv6) address for the system. The cluster_port variable specifies the
port (1 or 2) where the change applies.
-
To change an IPv4 default gateway IP address, use the -gw
parameter.
chsystemip -gw cluster_gateway_address -port cluster_port
The cluster_gateway_address variable is the new gateway IP address
for the system. The cluster_port variable specifies the port (1 or 2) where
the change applies.
-
To change an IPv6 default gateway address, use the -gw_6
parameter.
chsystemip -gw_6 cluster_gateway_address -port cluster_port
The cluster_gateway_address variable is the new gateway IP address
for the system. The cluster_port variable specifies the port (1 or 2) where
the change applies.
-
To change an IPv4 system subnet mask, use the -mask
parameter.
chsystemip -mask cluster_subnet_mask -port cluster_port
The cluster_subnet_mask variable is the new subnet mask for the
system. The cluster_port variable specifies the port (1 or 2) where
the change applies.
-
To set the prefix for IPv6 addresses, use the -prefix_6
parameter.
chsystemip -prefix_6 -port cluster_port
The
cluster_port variable specifies the port (1 or 2) where the
change applies.
-
To delete all of the IPv4 addresses in the system after you change all addresses to IPv6, use
the -noip parameter.
-
To delete all of the IPv6 addresses in the system after you change all addresses to IPv4, use
the -noip_6 parameter.
- Optional:
To display the IP routing table, use the
lsroute
command.
To diagnose configuration node accessibility problems, use the routing table gateway
details of IP traffic to a range of IP addresses for each Ethernet
port.
- Optional:
To diagnose IP configuration problems, run the ping command.
ping -srcip4 source_ipv4_address destination_ipv4_address
-srcip6 source_ipv6_address destination_ipv6_address