You can control how the netstat and ifconfig commands display output:
Use keywords that are 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 by specifying the DEFAULT_IP, then netstat and ifconfig displays both versions.
The inet or inet6 keyword option overrides the value that is set in the inet_type file when you use the netstat and ifconfig commands.
See How to Control the Display Output of IPv6 Related Commands for a description of procedures.