Michel Boucey

ip6addr, a commandline tool to generate IPv6 address text representations

Based on IPv6Addr Haskell library, ip6addr is a commandline tool written in Haskell that generates IPv6 address text representations :

Main repository : https://hackage.haskell.org/package/ip6addr

Dev repository : https://github.com/MichelBoucey/ip6addr

user@box:~$ ip6addr -a 0:0::FFFF:192.0.2.128
::ffff:192.0.2.128
user@box:~$ ip6addr -o pure -a 0:0::FFFF:192.0.2.128
::ffff:c000:280
user@box:~$ ip6addr -o full -a 0:0::FFFF:192.0.2.128
0000:0000:0000:0000:0000:ffff:c000:0280
user@box:~$ ip6addr -o arpa -a 0:0::FFFF:192.0.2.128
0.8.2.0.0.0.0.c.f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA.
user@box:~$ ip6addr -o unc -a 2001:db8:85a3:8d3:1319:8a2e:370:7348
2001-db8-85a3-8d3-1319-8a2e-370-7348.ipv6-literal.net
user@box:~$ ip6addr -o random
ca18::654a:57ab:2ed7
user@box:~$ ip6addr -o random -q 4
488:f7f3:7f7e::6ffd
5b8b:8ab4::f0b8
f191:ecc9:8193:8a2:104c:fec1:0:8c4d
af3b:3ffd:8302:6c56::8623:26
user@box:~$ ip6addr -o random -q 3 -p 1234:1ab2::
1234:1a2b::cda6:cf2a:bb1d:d70b
1234:1a2b::362c:8295:f546:a43a
1234:1a2b::1121:ca16:ab5:688a


On the same subject :

Michel • Boucey @ cybervisible • fr06 • 18 • 62 • 50 • 73