We can configure IPv6 addressing information in a similar way to that used for IPv4. To view only IPv6 addresses, we can use the ip command and pass the -6 option, as shown in the following command:
root@philip-virtual-machine:/home/philip# ip -6 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000 inet6 fe80::d5a6:db57:33f4:7285/64 scope link noprefixroute
valid_lft forever preferred_lft forever
root@philip-virtual-machine:/home/philip#
Based on the previous example, we can see only IPv6 information, particularly the link-local address, which starts with fe80. We can add an IPv6 address using the ip command. We would add an IPv6 address in the following way:
root@philip-virtual-machine...