System Administration Guide, Volume 3

netstat(1M)

In addition to displaying IPv4 network status, netstat can display IPv6 network status as well. You can choose what protocol information to display by setting the DEFAULT_IP value in the /etc/default/inet_type file and the -f command-line option. With a permanent setting of DEFAULT_IP, you can make sure netstat displays only IPv4 information. You can override this setting with the -f option. For more information on the inet_type file, see the inet_type(4) man page.

The new -p option displays the net-to-media table, which is the ARP table for IPv4 and neighbor cache for IPv6. See netstat(1M) man page for details. See "How to Display Network Status" for descriptions of procedures using this command.