ipv6calc(8)

πŸ“¦
version 4.4.1 Β· 3 versions
, in arch rolling, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

🌸 ipv6calc(8) β€” NAME

okay bestie, gather round πŸ’– this is ipv6calc, and it's literally the main character of address wrangling: it formats, calculates, shows information about, and filters IPv6/IPv4/MAC addresses. she does it all, no cap. πŸ‘‘


✨ SYNOPSIS ✨

ipv6calc [OPTIONS] [<input data>]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this program formats and calculates IPv6/IPv4/MAC addresses, and honestly? it can do so many more tricky things too πŸ’… β€” for example it includes a pipe filter capability. iykyk. 🌈


πŸŽ€ OPTIONS πŸŽ€

ngl, if you don't hand over any data as command-line arguments, the data gets read from standard input. slay, it's flexible like that. 🫢

⭐ General options

  • -d, --debug DEBUGVALUE β€” sets a debug value (it's bitwise-like, okay?) and you can also set it with the IPV6CALC_DEBUG environment value. double the ways, double the fun ✨
  • -v, --version [-v [-v]] β€” version info, and you can stack it for 2 optional detail levels πŸ“š
  • -v, --version -h β€” explains the feature tokens for you, bestie
  • -V, --verbose β€” be more verbose, spill the tea β˜•
  • -h, --help, -? β€” this online help, right here

🌸 External database options (depending on compiled-in suppport)

heads up: these only work if the matching support was compiled in!
  • --db-ip2location-disable β€” IP2Location(BIN) support, disabled πŸ’€
  • --db-ip2location-dir DIRECTORY β€” IP2Location(BIN) database directory, default: /usr/share/IP2Location
  • --db-ip2location2-disable β€” IP2Location(MMDB) support, disabled πŸ’€
  • --db-ip2location2-dir DIRECTORY β€” IP2Location(MMDB) database directory, default: /usr/share/IP2Location
  • --db-geoip2-disable β€” GeoIP(MMDB) support, disabled πŸ’€
  • --db-geoip2-dir DIRECTORY β€” GeoIP(MMDB) database directory, default: /usr/share/GeoIP
  • --db-dbip2-disable β€” db-ip.com(MMDB) support, disabled πŸ’€
  • --db-dbip2-dir DIRECTORY β€” db-ip.com(MMDB) database directory, default: /usr/share/DBIP

πŸ’œ Special options

  • -q, --quiet β€” be more quiet πŸ“ (this one gets auto-enabled in pipe mode, sneaky)
  • -f, --flush β€” flush each line in pipe mode, keep that data flowing πŸ’§

πŸ‘‘ Usage with new style options

  • --in, -I INPUT-TYPE β€” specify the input type (default: autodetect)
  • --out, -O OUTPUT-TYPE β€” specify the output type (sometimes: autodetect)
  • --action, -A ACTION β€” specify the action (default: format conversion, sometimes: autodetect)
  • <format option> ... β€” specify format options
  • <input data> [...] β€” the input data itself

and within that, the types you can ask about:

  • Available input types: [-m] -I|--in -?|-h|--help
  • Available output types: [-m] -O|--out -?|-h|--help
  • Available action types: [-m] -A|--action -?|-h|--help

🧚 Other usage

  • --showinfo, -i [--machine_readable|-m] β€” show information about the input data πŸ”
  • --showinfo, -i --show_types β€” show available types on -m

πŸŽ€ Usage with shortcut options

<shortcut option> [<format option> ...] <input data>

for more info and the available format options, hit up: <shortcut option> -?|-h|--help 🫢

and here's the shortcut squad, all of them, no skips:

  • -r, --addr2ip6_int β€” (-O revnibbles.int)
  • -r, --addr_to_ip6int β€” (-O revnibbles.int)
  • -a, --addr2ip6_arpa β€” (-O revnibbles.arpa)
  • -a, --addr_to_ip6arpa β€” (-O revnibbles.arpa)
  • -b, --addr_to_bitstring β€” (-O bitstring)
  • --addr2compaddr β€” (--printcompressed)
  • --addr_to_compressed β€” (--printcompressed)
  • --addr2uncompaddr β€” (--printuncompressed)
  • --addr_to_uncompressed β€” (--printuncompressed)
  • --addr_to_base85 β€” (-I ipv6addr -O base85)
  • --base85_to_addr β€” (-I base85 -O ipv6addr)
  • --mac_to_eui64 β€” (-I mac -O eui64)
  • --addr2fulluncompaddr β€” (--printfulluncompressed)
  • --addr_to_fulluncompressed β€” (--printfulluncompressed)
  • --addr2if_inet6 β€” (-I ipv6addr -O ifinet6)
  • --addr_to_ifinet6 β€” (-I ipv6addr -O ifinet6)
  • --if_inet62addr β€” (-I ifinet6 -O ipv6addr --printcompressed)
  • --ifinet6_to_compressed β€” (-I ifinet6 -O ipv6addr --printcompressed)
  • --eui64_to_privacy β€” (-I iid_token -O iid_token -A genprivacyiid)
  • --ipv4_to_6to4addr β€” (-I ipv4 -O ipv6addr -A conv6to4)

see the inline help or the documentation for more, bestie πŸ“–


😭 REPORTING BUGS 😭

found a bug? spill it via GitHub: https://github.com/pbiering/ipv6calc/issues πŸ›

Homepage: http://www.deepspace6.net/projects/ipv6calc.html


πŸ”₯ EXAMPLES πŸ”₯

to run this program the standard way, type:

ipv6calc --showinfo -i -m ::1
ipv6calc --showinfo -m 127.0.0.1
ipv6calc --showinfo --show_types
ipv6calc --ipv4_to_6to4addr 127.0.0.1
ipv6calc --addr_to_uncompressed ::1

Usage of filters in pipe mode:

cat <Apache-Logfile> | ipv6calc -E ipv6.db.cc=US,iid-random

GPLv2 β€” iconic, legally iconic. ⭐


🌈 AUTHORS 🌈

Peter Bieringer <pb@bieringer.de> β€” the legend herself (well, himself, but the legend energy is unmatched) πŸ‘‘


and that's the whole page bestie!! this was ipv6calc(8), brought to you at version 3.4.0 by Peter Bieringer <pb@bieringer.de> β€” no date on the tin, so i'm not making one up, periodt πŸ’…βœ¨πŸ¦‹