Posts

Showing posts from 2015

Working with IPV6 addresses in Linux

Well, working with IPV6 addresses is little bit tricky unlike IPV4 addresses. IPV6 addresses are 128 bit-length with 8 octets each of 16 bits. In this post,  i'll explain my working experience with IPV6 addresses. While working with IPV6, i found that sipcalc command is very useful on deciding which ipv6 address to use and what is the network corresponding to the ipv6 address. Hence, lets install sipcalc in Linux using bellow steps: Step1: Download the sipcalc rpm wget ftp://ftp.univie.ac.at/systems/linux/fedora/epel/6/x86_64/sipcalc-1.1.6-4.el6.x86_64.rpm Step2: Install the rpm rpm -ivh sipcalc-1.1.6-4.el6.x86_64.rpm Lets suppose i need at most 2 IPV6 addresses in a subnet. I have 128-2 => 126 network bits & 2 host bits. That means 2^2 hosts per subnet of length /126. Example: 2001:db8:1:1:0:0:0:0/126 is a subnet having 4 possible ipv6 addresses as: 2001:db8:1:1:0:0:0:0 => network address 2001:db8:1:1:0:0:0:1 & 2001:db8:1:1:0:0:0:2 => Usable host