centos – How to return longest IPv6 formt when using `ip` command on Linux

When I use the command ip address show eth0 my Centos shows my IPs using this format 2600:5c35:e991:92b::3/64 but I would like it to return in this format 2600:5c35:e991:092b:0000:0000:0003/64 which is the longest one (without anything like ::). Is it possible? This will help me to match these IPs with another IP list which already has all IPv6 in the longest format.

If the ip command does not allow that, do you know a pipe or | that I can use in Linux to convert those IPs to the longest format?

Thank you!

Read more here: Source link