
The TCP/IP Guide - Version 3.0 (Contents) ` 1665 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
this is done by setting any of several dozen configuration parameters, using the syntax
shown in the last row of Table 305; I have provided a brief description of some sample
parameters in Table 307 (see your ifconfig documentation for a complete list).
Table 305: Typical UNIX ifconfig Syntaxes, Options and Parameters
Syntax, Options and
Parameters
Description
ifconfig [-L] [-m] <interface>
When ifconfig is called with just an interface specification and no other
options (other than possibly “-L” and “-m”), it displays the configuration
information for that network interface.
Note that entering “ifconfig” by itself with no interface just causes help
information for the parameter to be displayed; to see all interfaces, the
“-a” parameter should be used.
ifconfig -a [-L] [-m] [-b] [-d]
[-u] [-s] [<family>]
Displays information about all the interfaces on the host. The output
may be restricted using the universal parameters shown, or by speci-
fying an address family (see Table 306).
ifconfig -l [-b] [-d] [-u] [-s] Lists all available interfaces on the system.
ifconfig <interface> create
Creates the specified logical network interface on the host, which is
then configured using the syntax shown in the last row of this table.
Note that some variations of UNIX allow certain parameters to be set
at the time of creation.
ifconfig <interface> destroy Destroys the specified logical interface.
ifconfig <interface> [<family>]
[<address> [<dest_address>]]
[<parameters>]
Configures parameters for a particular interface on the host. If the
address is being set, it is the first parameter specified, after the
optional address family, if present. The “<dest_address>” is used to
specify a destination address for a point-to-point link. After this, any of
several dozen parameters may be specified for the interface, some of
which are shown in Table 307.
Table 306: Typical UNIX ifconfig Universal Options and Parameters
Option / Parameter Description
-L Displays the address lifetime for IPv6 addresses.
-m Displays all supported media for the interface.
-b Limits the display of interface information to broadcast interfaces.
-d Shows only interfaces that are presently down (disabled).
-u Shows only interfaces that are presently up (operational).
-s Shows only interfaces that may be connected.
<family>
Specifies a particular address family, either to limit output or indicate what
address type is being configured. The value “inet” is used for IPv4 and
“inet6” for IPv6.