{"id":213,"date":"2015-08-26T10:49:09","date_gmt":"2015-08-26T09:49:09","guid":{"rendered":"https:\/\/zed-network.fr\/?p=213"},"modified":"2020-08-24T19:45:33","modified_gmt":"2020-08-24T18:45:33","slug":"ipv6-tools-sipcalc","status":"publish","type":"post","link":"https:\/\/zed-network.fr\/?p=213","title":{"rendered":"How to calculate your IPv6 subnet with sipcalc"},"content":{"rendered":"<p>Tools to manipulate IPv6 addresses : sipcalc<\/p>\n<p>Install in debian 7.x :<\/p>\n<pre>apt-get install sipcalc<\/pre>\n<p>Usage :<\/p>\n<pre>sipcalc -h\n\nsipcalc 1.1.5\n\nUsage: sipcalc [OPTIONS]... &lt;[ADDRESS]... [INTERFACE]... | [-]&gt;\n\nGlobal options:\n\n-a, --all All possible information.\n\n-d, --resolve Enable name resolution.\n\n-h, --help Display this help.\n\n-I, --addr-int=INT Added an interface.\n\n-n, --subnets=NUM Display NUM extra subnets (starting from\n\nthe current subnet). Will display all subnets\n\nin the current \/24 if NUM is 0.\n\n-u, --split-verbose Verbose split.\n\n-v, --version Version information.\n\n-4, --addr-ipv4=ADDR Add an ipv4 address.\n\n-6, --addr-ipv6=ADDR Add an ipv6 address.\n\nIPv4 options:\n\n-b, --cidr-bitmap CIDR bitmap.\n\n-c, --classfull-addr Classfull address information.\n\n-i, --cidr-addr CIDR address information. (default)\n\n-s, --v4split=MASK Split the current network into subnets\n\nof MASK size.\n\n-w, --wildcard Display information for a wildcard\n\n(inverse mask).\n\n-x, --classfull-bitmap Classfull bitmap.\n\nIPv6 options:\n\n-e, --v4inv6 IPv4 compatible IPv6 information.\n\n-r, --v6rev IPv6 reverse DNS output.\n\n-S, --v6split=MASK Split the current network into subnets\n\nof MASK size.\n\n-t, --v6-standard Standard IPv6. (default)\n\nAddress must be in the \"standard\" dotted quad format.\n\nNetmask can be given in three different ways:\n\n- Number of bits&nbsp; &nbsp; [\/nn]\n\n- Dotted quad &nbsp; &nbsp; &nbsp; [nnn.nnn.nnn.nnn]\n\n- Hex &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0xnnnnnnnn | nnnnnnnn]\n\nInterface must be a valid network interface on the system.\n\nIf this options is used an attempt will be made to gain the address\n\nand netmask from the specified interface.\n\nReplacing address\/interface with '-' will use stdin for reading further\n\narguments.\n\n<\/pre>\n<p>Example :<\/p>\n<pre>#sipcalc 2001:db8::\n\n-[ipv6 : 2001:db8::] - 0\n\n[IPV6 INFO]\n\nExpanded Address - 2001:0db8:0000:0000:0000:0000:0000:0000\n\nCompressed address - 2001:db8::\n\nSubnet prefix (masked) - 2001:db8:0:0:0:0:0:0\/128\n\nAddress ID (masked) - 0:0:0:0:0:0:0:0\/128\n\nPrefix address - ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff\n\nPrefix length - 128\n\nAddress type - Aggregatable Global Unicast Addresses\n\nNetwork range - 2001:0db8:0000:0000:0000:0000:0000:0000 -\n\n2001:0db8:0000:0000:0000:0000:0000:0000\n\n<\/pre>\n<p>Very nice for IPv6 reverse :<\/p>\n<pre># sipcalc -r 2001:db8::1\n-[ipv6 : 2001:db8::1] - 0\n\n[IPV6 DNS]\nReverse DNS (ip6.arpa)\t-\n1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.\n\n<\/pre>\n<p>Very useful if you want subnet for point-to-point subnet \/126 :<\/p>\n<pre>#sipcalc -S 126 2001:db8:0:1::\/64\n\n-[ipv6 : 2001:db8:0:1::\/64] - 0\n\n[Split network]\nNetwork                 - 2001:0db8:0000:0001:0000:0000:0000:0000 -\n                          2001:0db8:0000:0001:0000:0000:0000:0003\nNetwork                 - 2001:0db8:0000:0001:0000:0000:0000:0004 -\n                          2001:0db8:0000:0001:0000:0000:0000:0007\nNetwork                 - 2001:0db8:0000:0001:0000:0000:0000:0008 -\n                          2001:0db8:0000:0001:0000:0000:0000:000b\nNetwork                 - 2001:0db8:0000:0001:0000:0000:0000:000c -\n                          2001:0db8:0000:0001:0000:0000:0000:000f\nNetwork                 - 2001:0db8:0000:0001:0000:0000:0000:0010 -\n                          2001:0db8:0000:0001:0000:0000:0000:0013\n...\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Tools to manipulate IPv6 addresses : sipcalc Install in debian 7.x : apt-get install sipcalc Usage : sipcalc -h sipcalc 1.1.5 Usage: sipcalc [OPTIONS]&#8230; &lt;[ADDRESS]&#8230; [INTERFACE]&#8230; | [-]&gt; Global options: -a, &#8211;all All possible information. -d, &#8211;resolve Enable name resolution. -h, &#8211;help Display this help. -I, &#8211;addr-int=INT Added an interface. -n, &#8211;subnets=NUM Display NUM extra [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-ipv6"],"_links":{"self":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213"}],"version-history":[{"count":2,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":563,"href":"https:\/\/zed-network.fr\/index.php?rest_route=\/wp\/v2\/posts\/213\/revisions\/563"}],"wp:attachment":[{"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zed-network.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}