Information Technology Reference
In-Depth Information
of a particular interface as a command-line argument. The following listing
shows use of these two command-line arguments:
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
elx0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.99.9 netmask ffffff00 broadcast 192.168.99.255
ether 0:a0:24:c:32:97
lo0: flags=2000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6> mtu 8252 index 1
inet6 ::1/128
elx0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
ether 0:a0:24:c:32:97
inet6 fe80::2a0:24ff:fe0c:3297/10
# ifconfig elx0
elx0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.99.9 netmask ffffff00 broadcast 192.168.99.255
ether 0:a0:24:c:32:97
#
The netstat(1M) command is used to display network statistics and config-
uration information. Table 10.5 lists the command-line arguments support-
ed by the netstat command.
Table 10.5
The netstat Command-Line Arguments
Argument
Description
-a
Lists the status of all sockets, routing table entries, and all network inter-
faces.
-D
Lists the status of DHCP-configured network interfaces.
-f family
Lists information only for the specified protocol family . Possible values
are inet (IP version 4), inet6 (IP version 6), and unix (Unix).
-g
Lists multicast membership of each interface.
-i
Lists statistics for all network interfaces.
-I interface
Lists statistics for the specified network interface .
-m
Lists STREAMS statistics.
-M
Displays a multicast routing table.
-n
Displays network address instead of network names.
-p
Displays hardware (Ethernet) addresses for each interface.
-P protocol
Lists statistics only for the specified protocol .
-r
Displays the dynamic routing table.
-s
Lists per-protocol statistics.
-v
Lists additional socket and routing table information.
Search WWH ::




Custom Search