How do I display ipv6 addresses on linux using the ip command?
-
Also see man page for ip command.
$ ip -6 addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000 inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 state UP qlen 1000 inet6 xxxx:xxxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx/128 scope global dynamic noprefixroute valid_lft 417sec preferred_lft 117sec inet6 fe80::486:35ff:fe8c:73d2/64 scope link noprefixroute valid_lft forever preferred_lft forever
The ifconfig command can display them also, however see note in ifconfig man page.
NOTE
This program is obsolete! For replacement check ip addr and ip link.
For statistics use ip -s link.$ ifconfig | grep inet6
© Lightnetics 2024