Command ReferenceA-47
duplex 10Base-T RJ-45 twistedpair), or 100tx (100Base-T RJ-45 twisted-
pair), or 100tx-fd (Full duplex 100Base-T RJ-45 twisted-pair), or auto
(Auto RJ-45 twisted-pair). The default media type is set to tp or to auto
where applicable.
On a 10/100 Mbps auto-negotiable interface, the system will auto-negotiate
a 10 Mbps half or full duplex or 100 Mbps half or full duplex link and set the
network interface accordingly when it is configured up. If the other end does
not support auto-negotiation and full duplex operation is desired, it must be
explicitly set using the mediatype command.
On a 10/100 Mbps interface, the system will auto-detect a 10 Mbps or
100M bps link and set the link speed accordingly when the network inter-
face is configured up. The hardware is not currently capable of autodetecting
full duplex interfaces, so if full duplex operation is desired, it must be explic-
itly set using the mediatype command. Only the 10/100 Mbps interfaces are
capable of full duplex operation.
mtusize size
Specifies the MTU (maximum transmission unit) to use for the network
interface.
netmask mask
The mask includes the network part of the local address and the subnet part,
which is taken from the host field of the address. The mask can be specified
as a single hexadecimal number with a leading 0x, with a dot-notation Inter-
net address, or with a pseudo-network name listed in the network table
/etc/networks. The mask contains 1s for the bit positions in the 32-bit
address that are to be used for the network and subnet parts, and 0s for the
host part. The mask should contain at least the standard network portion,
and the subnet field should be contiguous with the network portion. A
default netmask is chosen according to the class of the IP address.
up
Marks a network interface up. This may be used to enable a network inter-
face after an ifconfig down. It happens automatically when setting the first
address on a network interface. If the network interface was reset when pre-
viously marked down, the hardware will be re-initialized.
alias
Establishes an additional network address for this network interface. This is
sometimes useful when changing network numbers and one wishes to
accept packets addressed to the old network interface. It is required when
creating IP virtual host addresses.
-alias
Remove a network address for this network interface.
trusted
Specifies that the network to which the network interface is attached is
trusted relative to firewall-style security (default).
ifconfig