ipv6calc(8)
πΈ 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 theIPV6CALC_DEBUGenvironment 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
π COPYRIGHT π
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 π
β¨π¦
π¦ where this page comes from
- arch rolling: ipv6calc 4.4.1-1 Β· GPL-2.0-only
- epel 10: ipv6calc 4.4.1-1.el10_3 Β· GPL-2.0-only
- epel 9: ipv6calc 4.4.1-1.el9 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.0-1.fc43 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.0-1.fc43 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.1-1.fc43 Β· GPL-2.0-only
- fedora 43: ipv6calc 4.4.1-1.fc43 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.0-2.fc44 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.0-2.fc44 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.1-1.fc44 Β· GPL-2.0-only
- fedora 44: ipv6calc 4.4.1-1.fc44 Β· GPL-2.0-only
- nixos 26.05: ipv6calc 4.4.0
- nixpkgs unstable: ipv6calc 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms