chtcpip Command
Purpose
Changes the Virtual I/O Server TCP/IP settings and parameters.
Syntax
chtcpip [-interface Interface -inetaddr Address -netmask SubnetMask]
chtcpip [-interface Interface -gateway -add New_gateway_address -remove Old_gateway_address []
Description
The chtcpip command changes the TCP/IP settings and configuration on the
Virtual I/O Server.
Flags
| -add New_Gateway_Address |
New Default Gateway address to be added. |
| -inetaddr Address |
Changes the IP address of the host. Specify the address
in dotted decimal notation. |
| -interface Interface |
Specifies a particular network interface, for example en0. |
| -gateway Gateway |
Changes the gateway address for a static route. Specify
both the current address and new address in dotted decimal notation |
| -netmask SubnetMask |
Specifies the subnet mask the gateway. Use to determine
the appropriate subnetwork for routing. |
| -remove Old_Gateway_Address |
Old Default Gateway address to removed. |
Exit Status
| 0 |
The command completed successfully |
| >0 |
An error occurred. |
Examples
- To changes the current network address and mask to the new settings, type:
chtcpip -interface en0 -inetaddr 9.1.1.1 -netmask 255.255.255.0
- To changes the default gateway from 9.1.2.3 to 9.2.3.4, type:
chtcpip -interface en0 -gateway -add 9.2.3.4 -remove 9.1.2.3
Note:
If more than one default gateway is defined, an error will occur. Only one
default gateway can be defined by the mktcpip command.
Related Information
The topas command, and the mktcpip command.