The
ifconfig(1Mtcp)
command displays information
about the configuration for a named network interface.
To find out the configuration
for all network devices
that are currently installed, enter:
ifconfig -a
This command will display output similar to the following. The exact format will depend on the network interfaces that are configured on your system.
net0: flags=4043<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 150.162.7.7 netmask ffffff00 broadcast 150.162.7.255
perf. params: recv size: 4096; send size: 8192; full-size frames: 1
ether 00:20:af:f2:91:19
(alias) inet 150.162.7.52 netmask ffffff00 broadcast 150.162.7.255
(alias) inet 150.162.7.54 netmask ffffff00 broadcast 150.162.7.255
lo0: flags=4049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
perf. params: recv size: 4096; send size: 8192; full-size frames: 1
(alias) inet 127.0.0.1 netmask ff000000
From this output, several things can be deduced about the
net0 interface:
The lo0 entry is for the loopback interface. This is used for communication using the Internet protocols on the host itself.