Table of Contents
If no arguments are given, ifconfig just displays the status of the currently defined interfaces. If the single interface argument is given, it displays the status of the given interface only. Otherwise, it assumes that things have to be set up.
[-]arp Enable or disable the use of the ARP protocol on this interface. If the minus (-)sign is present, the flag is turned OFF.
Enable or disable the use of trailers on Ethernet frames. This is not used in the current implementation of NET.
Enable or disable the promiscuous mode of the interface. This means that all incoming frames get sent to the network layer of the system kernel, allowing for networking monitoring.
This parameter sets the interface metric. It is not used at present, but we implement it for the future.
mtu N This parameter sets the Maximum Transfer Unit (MTU) of an interface. For Ethernet, this is a number in the range of 1000-2000 (default is 1500). For SLIP, use something between 200 and 4096. Note, that the current implementation does not handle IP fragmentation yet, so you'd better make the MTU large enough!
Set the "other end"'s IP address in case of a Point-To-Point link, like PPP. This keywords is obsoleted by the new pointopoint keyword.
Set the IP network mask for this interface. This value defaults to the usual class A, B or C network mask (as deducted from the interface IP address), but it can be set to any value for the use of subnetting.
Set the interrupt line used by this device. Many devices don't support dynamic IRQ setting.
If the address argument is also given, set the protocol broadcast address for this interface. Otherwise, it only sets the IFF_BROADCAST flag of the interface. If the keyword was preceded by a minus (-) sign, then the flag is cleared instead.
This keyword enables the point-to-point mode of an interface, meaning that it is a direct link between two machines with nobody else listening on it (or, at least we hope that this is the case, grin :-) If the address argument is also given, set the protocol address of the other side of the link, just like the obsolete dstaddr keyword does. Otherwise, it only sets the IFF_POINTOPOINT flag of the interface. If the keyword was preceded by a minus (-) sign, then the flag is cleared instead.
The host name or IP address (a host name will be resolved into an IP address) of that interface. This parameter is required, although the syntax doesn't currently require it.