Administering TCP/IP Networks, IPMP, and IP Tunnels in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Filtering netstat Output by Address Type

You can use the netstat command to display both IPv4 and IPv6 network status. You can choose which protocol information to display by setting the DEFAULT_IP value in the /etc/default/inet_type file or by using the –f option. By permanently setting the DEFAULT_IP value, you can ensure that the netstat command displays only IPv4 information. To override this setting, use the –f option from the command line. For more information about the inet_type file, see the inet_type (4) man page.

Use can also use the –f option to specify the inet, inet6, unix (for Unix domain sockets that used for internal communication) or sdp (Socket Description Protocol) arguments.