IFCONFIG (1M)

IFCONFIG

metric n

Set the routing metric of the interface to n; the default metric is zero. Higher metrics have the effect of making a route less favorable; metrics are counted as additional hops to the destination network or host. The routing metric is used by the routing protocol routed(1M).

mtu mtu

Set the Maximum Transmission Unit of the interface to mtu; the default metric is the value that was returned by the interface when the network was started.

netmask mask

(Internet Address family only). Identify the portions of the Internet address to be used for the network and subnetwork specification; the remainder is used as the host specification. It is strongly recommended that the subnetwork field be contiguous with the network portion. The 32-bit address mask contains 1's for the bit positions in the network and subnet parts, and 0's for the host part. The mask can be specified as a single hexadecimal number (for example, 0xffffff00), with a dot notation Internet address (for example, 255.255.255.0), or with a pseudo-network name listed in the network table networks(4).

up Mark an interface as being UP. This is used to re-enable an interface after an marking it down. An interface is automatically marked up when its address is first set. If the interface was reset when previously marked down, the hardware will be re-initialized.

DIAGNOSTICS

Exit status is zero for normal termination, a positive number for error termination.

Messages may indicate the specified interface does not exist, the requested address is unknown, or that a nonprivileged user tried to alter an interface confi- guration.

NOTES

Trailers are not supported.

SEE ALSO

netstat(1)

inetinit.cf(4)

E-20

Issue 3