You can control how the netstat and ifconfig commands display output:
Use keywords added to the command line to specify either inet or inet6 addresses.
Set the configuration variable DEFAULT_IP in the /etc/default/inet_type file.
You can set the value of DEFAULT_IP to IP_VERSION4, IP_VERSION6, or BOTH. If you do not create this file specifying the DEFAULT_IP, then netstat and ifconfig displays both versions.
The inet or inet6 keyword options used as part of the command-line argument override the value set in the inet_type file (if it exists) when using the netstat and ifconfig commands.
See "How to Control the Display Output of IPv6 Related Commands" for a description of related procedures.