1ipv6calc(8) system administration ipv6calc(8)
2
3
4
6 ipv6calc - format, calculate, show information, filter IPv6/IPv4/MAC
7 addresses
8
10 ipv6calc [OPTIONS] [<input data>]
11
12
14 This program formats and calculates IPv6/IPv4/MAC addresses and can do
15 many more tricky things, e.g. includes a pipe filter capability.
16
18 If no data is presented as command-line arguments, data is read from
19 standard input.
20
21 General options:
22
23 [-d|--debug DEBUGVALUE]
24 debug value (bitwise like) can also be set by IPV6CALC_DEBUG
25 environment value
26
27 [-v|--version [-v [-v]]]
28 version information (2 optional detail levels)
29
30 [-v|--version -h]
31 explanation of feature tokens
32
33 [-V|--verbose]
34 be more verbose
35
36 [-h|--help|-?]
37 this online help
38
39 External database options (depending on compiled-in suppport):
40
41 [--db-ip2location-disable]
42 IP2Location support disabled
43
44 [--db-ip2location-dir DIRECTORY]
45 IP2Location database directory (default: /usr/share/IP2Location)
46
47 [--db-geoip-disable]
48 GeoIP support disabled
49
50 [--db-geoip-dir DIRECTORY]
51 GeoIP database directory (default: /usr/share/GeoIP)
52
53 Special options:
54
55 [-q|--quiet]
56 be more quiet (auto-enabled in pipe mode)
57
58 [-f|--flush]
59 flush each line in pipe mode
60
61 Usage with new style options:
62
63 [--in|-I INPUT-TYPE]
64 specify input type (default: autodetect)
65
66 [--out|-O OUTPUT-TYPE]
67 specify output type (sometimes: autodetect)
68
69 [--action|-A ACTION]
70 specify action (default: format conversion, sometimes: autode‐
71 tect)
72
73 [<format option> ...]
74 specify format options
75
76 <input data> [...]
77 input data
78
79 Available input types:
80 [-m] -I|--in -?|-h|--help
81
82 Available output types:
83 [-m] -O|--out -?|-h|--help
84
85 Available action types:
86 [-m] -A|--action -?|-h|--help
87
88 Other usage:
89
90 --showinfo|-i [--machine_readable|-m]
91 show information about input data
92
93 --showinfo|-i --show_types
94 show available types on '-m'
95
96 Usage with shortcut options: <shortcut option> [<format option> ...]
97 <input data>
98
99 For more information and available format options use: <shortcut
100 option> -?|-h|--help
101
102 -r|--addr2ip6_int (-O revnibbles.int)
103
104 -r|--addr_to_ip6int (-O revnibbles.int)
105
106 -a|--addr2ip6_arpa (-O revnibbles.arpa)
107
108 -a|--addr_to_ip6arpa (-O revnibbles.arpa)
109
110 -b|--addr_to_bitstring (-O bitstring)
111
112 --addr2compaddr (--printcompressed)
113
114 --addr_to_compressed (--printcompressed)
115
116 --addr2uncompaddr (--printuncompressed)
117
118 --addr_to_uncompressed (--printuncompressed)
119
120 --addr_to_base85 (-I ipv6addr -O base85)
121
122 --base85_to_addr (-I base85 -O ipv6addr)
123
124 --mac_to_eui64 (-I mac -O eui64)
125
126 --addr2fulluncompaddr (--printfulluncompressed)
127
128 --addr_to_fulluncompressed (--printfulluncompressed)
129
130 --addr2if_inet6 (-I ipv6addr -O ifinet6)
131
132 --addr_to_ifinet6 (-I ipv6addr -O ifinet6)
133
134 --if_inet62addr (-I ifinet6 -O ipv6addr --printcompressed)
135
136 --ifinet6_to_compressed (-I ifinet6 -O ipv6addr --printcompressed)
137
138 --eui64_to_privacy (-I iid_token -O iid_token -A genprivacyiid)
139
140 --ipv4_to_6to4addr (-I ipv4 -O ipv6addr -A conv6to4)
141
142 See inline help or documentation for more.
143
145 Report bugs via GitHub:
146 https://github.com/pbiering/ipv6calc/issues
147 ⟨https://github.com/pbiering/ipv6calc/issues⟩
148
149 Homepage: http://www.deepspace6.net/projects/ipv6calc.html
150 ⟨http://www.deepspace6.net/projects/ipv6calc.html⟩
151
153 To run this program the standard way type:
154
155 ipv6calc --showinfo -i -m ::1
156
157 ipv6calc --showinfo -m 127.0.0.1
158
159 ipv6calc --showinfo --show_types
160
161 ipv6calc --ipv4_to_6to4addr 127.0.0.1
162
163 ipv6calc --addr_to_uncompressed ::1
164
165 Usage of filters in pipe mode:
166 cat <Apache-Logfile> | ipv6calc -E ipv6.db.cc=US,iid-random
167
169 GPLv2
170
172 Peter Bieringer <pb@bieringer.de>
173
174
175
176Peter Bieringer <pb@bieringer.de> 2.0.0 ipv6calc(8)