# SP Set IP Subcommand

access: Administrators, Managers

Sets or modifies the Service Processor network configuration.

> sp set ip DHCP [--nowait]

> sp set ip STATIC {-i | --ipaddress} IP ADDRESS [{-n | --netmask} NETMASK] [{-g | --gateway} GATEWAY}] [-w | --nowait]

Argument | Description
--- | ---
{-i | --ipaddress} | Specifies the IP address you wish to set.
{-n | --netmask} | Specifies the netmask; the default value is 255.255.255.0.
{-g | --gateway} | Specifies the gateway; the default value is the existing gateway.
{-w | --nowait} | If you specify the -nowait option, loss of connectivity will occur some time after the command returns. If you do not specify the -nowait option, your connections to the Service Processor will be lost before the command returns.

Return Codes

Following are the return values for this command:

Code | Numeric Code | Description
--- | --- | ---
NWSE_Success | 0 | Command successfully completed.
NWSE_InvalidUsage | 1 | Invalid usage: bad parameter usage, conflicting options specified.
NWSE_InvalidArgument | 4 | One or more arguments were incorrect or invalid. One of the specified addresses is invalid.
NWSE_NoPermission | 6 | Not authorized to perform this operation.
NWSE_NoMemory | 8 | Insufficient memory.
NWSE_Busy | 9 | Device or resource is busy.
NWSE_RPCConnected | 11 | RPC client already connected.
NWSE_RPCConnRefused | 12 | RPC connection refused.
NWSE_NoRouteToHost | 13 | No route to host (network down).
NWSE_HostDown | 14 | Host is down.
NWSE_UnknownError | 15 | An internal error occurred while attempting to set the network information.
NWSE_GatewayOffNet | 16 | Gateway address is not on network.
NWSE_NetMaskIncorrect | 17 | An inappropriate netmask was specified.

Related Topics

System Management Commands

SP Command