/sbin/ip 2>&1 |grep -qw 'inet6' && echo "utility 'ip' is IPv6-ready"
If the package doesn't support, update to a more recent version.
If we want to show the address of the network interfaces, we have to execute the following command:
ip -6 addr show 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue inet6 ::1/128 scope host 2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100 inet6 fe80::205:1cff:fe06:1d6a/10 scope link
We can see the loopback interface an our network interface card. We can see, as with the ifconfig command, that our inteface has the link local address associated. And finally we can see the ipv6 route table:
ip -6 route fe80::/10 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 ff00::/8 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 default dev eth0 proto kernel metric 256 mtu 1500 advmss 1440