chip
Use the chip command to change the system IP address.
Syntax
Parameters
- -ip ipv4_address ipv6_address
- (Optional) Specifies the Internet Protocol Version 4 (IPv4) address or Internet Protocol Version 6 (IPv6) for system Ethernet port 1.
- -prefix subnet_prefix
- (Optional) Specifies the IPv4 or IPv6 prefix for system Ethernet port 1.
- -gw ipv4_address ipv6_address
- (Optional) Specifies the IPv4 or IPv6 gateway for system Ethernet port 1.
- -vlan vlan_id
- (Optional) Specifies the VLAN ID for a IPv4 or IPv6 address.
- ip_address_id
- (Required) Specifies the row index of IP address to be changed from lsip command output.
Description
This command modifies IP configuration parameters for the system.
If the system IP address is changed, the open command-line shell closes during the processing of the command. You must reconnect to the new IP address if connected through that port.
To modify an IP address, issue the chip command and list the IP address of the system by issuing the lsip command.
An invocation example
The following example uses specific -ip, -gw, and -mask parameters.
chip -ip 9.122.123.193 -prefix 24 -gw 9.122.123.1 -vlan 100 2
chip -ip 9.122.123.193 -prefix 24 2
The resulting output:
lsip
id node_id node_name port_id portset_id portset_name IP_address prefix vlan gateway owner_id owner_name
0 1 72 SystemManagement 192.168.1.52 24 192.168.1.1
1 3 72 SystemManagement 192.168.10.52 24 192.168.10.1
$ chip -ip 9.122.123.193 -prefix 24 -gw 9.122.123.1 0
$ lsip
id node_id node_name port_id portset_id portset_name IP_address prefix vlan gateway owner_id owner_name
0 3 72 SystemManagement 192.168.10.52 24 192.168.10.1
1 1 72 SystemManagement 9.122.123.193 24 9.122.123.1