Network commands

Network commands that you can use to manage the network configuration.

For information about how to configure multiple NICs, see Adding a second NIC.

Table 1.
Command name Action Syntax
net add etchost

Adds an entry to the /etc/hosts configuration file in the Management server.

The IP address is typically the management IP address of the Management server. It is best practice to specify a fully qualified host name (for example, myhost.mydept.mycompany.com). Also, although alias is an optional parameter, it is best practice to specify an alias (for example, myhost).

Here is an example of a net add etchost command.
net add etchost address 111.222.333.444 hostname myhost.mydept.mycompany.com alias myhost

If an entry was previously added with a host name that is not fully qualified, that entry must first be removed by using the net del etchost command before you add an entry with a fully qualified host name. Verify that the entry was successfully deleted by using the net show etchost command.

net add etchost address <ip-address> hostname <fully-qualified-hostname> [alias <short-alias-name>]
net add route address

Adds a static route to the routing table.

net add route address <destination> mask <netmask> [gateway <gateway>] eth<n>
net del etchost

Removes one or more entries from the /etc/hosts configuration file in the Management server.

Specify the identical parameters that were used when the entry was added by using the net add etchost command. You can verify the details by using the net show etchost command.

net del etchost address <ip-address> hostname <fully-qualified-hostname> [alias <short-alias-name>]
net del route address

Removes a static route from the routing table.

net del route address <ip-address> mask <mask>
net flush dhcp

Erases cached DHCP values from the Management server.

net flush dhcp
net ping

Queries the specified host to determine if it is responding on the network.

net ping {<ip-address>|<nodename>}
net restart

Saves and applies any new network settings. You must use this command after net set, net add, or net del commands to apply the changes.

net restart
net restore

Restores the memory to active or backup settings.

net restore {active|backup}
net traceroute

Traces the network route to the specified node.

net traceroute <ip-address>|<nodename>
net validate

Tests the current in-memory settings and displays any warnings or errors that might prevent the network from operating correctly.

When all network settings are acceptable, issuing this command returns the following statement, Current network settings can be applied.

When an invalid setting is entered, issuing this command returns the appropriate warning or error messages. For example,

warning: Route to 9.43.79.4 requires static Data IP address

error: Gateway 9.9.9.9 is not reachable from emgmt

Current network settings cannot be applied
net validate
For the net set and net show commands, see the following topics: