The net set command
Sets the configuration for the network interfaces of the Management server, DNS server, host name, and default gateway. Choose the net set autohost command to automatically add the hostname/IP address to the Management server. You can also set the amount of time before reporting a lost carrier. You can execute multiple net set commands, then run net show memory to confirm your different settings. Once confirmed, you can run net restart for the settings to take effect.
To improve startup time in networks that do not have a DHCP server, configure all items to either static values or none so the Management server does not search for a DHCP server. For best results, configure all your settings (such as IP address, hostname, domain, etc.) to use either Static or Dynamic addressing and not a mixture of both.
If you configure any value to be obtained through DHCP, startup time could be delayed as the Management server tries to locate an available DHCP server.
| Command name | Action | Syntax |
|---|---|---|
| net set autohost | Allows the Management server to find its IP address from its own hostname. When you enabled this option and the Management server cannot find an IP address corresponding to its hostname, either through DNS or an entry you entered manually into the /etc/hosts directory, the Management server automatically adds an entry into the /etc/hosts directory to allow the CIOS to operate normally. Enable or disable this option through the net set autohost command. | net set autohost [enable|disable ] |
| net set carrier | Specifies the time, in seconds, until a missing Ethernet link carrier is reported as an error. Setting the value to zero disables the carrier checking and no errors are reported. | net set carrier timeout <timeout> |
| net set domain | Sets the domain name for this Management server. The effect is that most queries for names within this domain can use short names relative to the local domain. | net set domain {dhcp eth<n>|static <value>|none} Example
1:
Example
2: Set a specific domain name.
|
| net set eth<n> net set interface |
Sets the IP address, Netmask and Broadcast address
for the specified interface. Note: The V3.0.3 net set eth<n>
command replaces the V3.0.2 and V3.0.1 net set interface command.
|
net set eth<n>
{dhcp eth<n>|address <ipaddress>
mask <mask> [bcast <bcast>]}I Example:
|
| net set gateway | Specifies the gateway and the interface to use for that gateway. The Management server supports only one default gateway for both management and data traffic (as opposed to one gateway per interface), but additional routes can be added separately. | net set gateway {dhcp eth<n>|static <ipaddress> eth<n>|none} |
| net set hostname | Sets the name of the Management server. This should be the short host name, without the domain name. For example, if the fully qualified domain name of the server is server1.mydomain.com, set the host name to server1. |
net set hostname {dhcp eth<n>|static <value>} |
| net set link eth<n> | Sets the Ethernet link to autonegotiate (the default) or to specific values. In most cases autonegotiate is preferable, but setting specific values can sometimes help improve throughput when network conditions are not optimal. | net set link eth<n> {autonegotiate|speed <speed> duplex {half|full}} |
| net set mtu eth<n> | Sets the Maximum Transmission Unit (MTU) size between a range of (68-9000). The default MTU is 1500. | net set mtu eth<n> <MTU> |
| net set nameserver | Sets DNS server list (maximum 2). | net set nameserver {dhcp eth<n>|static <value>|none} |
| net set ntp | Sets the time server. | net set ntp {dhcp eth<n>|static <value>|none} Example: Ask
a DHCP server on the management NIC for an NTP server.
|
| net set search | Specifies the search list. If you do not set this option, the search list is the same as the value of the domain setting. | net set search {dhcp eth<n>|static <value>|none} Example
1: Search for host names in specified domains.
Example 2: Do not search for host names in other domains. |