Type if IPv6 Addressing modes:
1) Unicast addresses
2) Multicast addresses
3) Anycast addresses
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Special Address in IPv6:
1) Unicast addresses
2) Multicast addresses
3) Anycast addresses
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Special Address in IPv6:
- Global addresses
- Link-local addresses
- Site-local addresses
- Unique local addresses (ULA’s)
- IPv4 mapped IPv6 addresses
- IPv4 compatible IPv6 addresses
- Special unicast addresses
- Multicast addresses
Address scope is the whole IPv6 Internet, Equivalent to public IPv4 addresses
Defined in RFC 3587:
2001:DB8::/32 – documentation-only prefix
2.Link-local addresses:
fe80::/10 This is a link-local prefix offered by IPv6. This address prefix signifies that the address is valid only in the local physical link. |
Eg: if MAC Address(48bits): 00:90:27:17:FC:0F
MAC Convert to colon hexadecimal notation : ::0290:27FF:FE17:FC0F
The link-local address for the host is: FE80::0290:27FF:FE17:FC0F
3. Site-local addresses : Depricated and replaced by Unique local addresses
4. Unique local addresses(ULA):
fc00::/7 This is called the Unique Local Address (ULA). These addresses are routed only within a set of cooperating sites. These were introduced in the IPv6 to replace the site-local addresses. These addresses also provide a 40-bit pseudorandom number that reduces the risk of address conflicts. |
Not routable on global Internet, routable within organization
Replaced the site-local addresses
Global scope, no zone ID required
Defined in RFC 4193
5. IPv4 mapped IPv6 address:
Used by IPv6 only application to be able to deal with IPv4
requests. Requires dual stack configured on the host. Defined in RFC 4291
Example: IPv4-mapped IPv6 address for the IPv4 address 192.168.0.189 is:
0:0:0:0:0:FFFF:192.168.0.189 = ::FFFF:c0a8:bd
6. IPv4 Compatible IPv6 Address:
::/96 The zero prefix denotes addresses that are compatible with the previously used IPv4 protocol.
Used by IPv6 only application to be able to deal with IPv4 requests. Requires dual stack configured on the host
Example: IPv4-comaptible IPv6 address for the IPv4 address 192.168.0.189 is:
0:0:0:0:0:0:192.168.0.189 = ::C0A8:BD
7.Special unicast addresses:
::1/128 This is called the loop back address and is used to refer to the local host. An application sending a packet to this address will get the packet back after it is looped back by the IPv6 stack. The local host address in the IPv4 was 127.0.0.1 . |
Similar to IPv4 address 127.0.0.1
Used by a node to send an IPv6 packet to itself
Should not be assigned to any physical interface
::/128 An IPv6 address with all zeroes in it is referred to as an unspecified address and is used for addressing purposes within a software. |
Similar to the IPv4 address 0.0.0.0
Indicates the absence of an address
2001:db8::/32 This is a documentation prefix allowed in the IPv6. All the examples of IPv6 addresses should ideally use this prefix to indicate that it is an example. |
8.Multicast IPv6 addresses:
ff00::/8 This prefix is offered by IPv6 to denote the multicast addresses. Any address carrying this prefix is automatically understood to be a multicast address. |
An identifier for a set of interfaces (typically on different nodes). Defined in RFC 4291.
Some reserved multicast addresses:
FF02::1 (link-local scope, all nodes on the link)
FF02::2 (link-local scope, all routers on the link)
FF05::2 (site-local scope, all routers in the site)
FF02:0:0:0:0:1:FFXX:XXXX (Solicited-node multicast address)
Tunneling:
Encapsulating IPV6 packets into IPV4 packets.IPV6 packets becomes the payload part of the IPV4 packets. It is called 6-to-4 tunnelling.
Neighbor Discovery Replaces ARP (Address Resolution Protocol):
Refs: http://ipv6.com/articles/general/Stateless-Auto-Configuration.htm
Example: TP link configuration of DHCP http://www.tplink.com/be/article/?faqid=855
a) Router Solicitation (request something):
Send by host to routers with src address is the link-local address of the host and destination address is FF02::2
Stateless Address Auto congiuration (SLAAC):
https://supportforums.cisco.com/document/97586/dynamic-address-assignment-ipv6-using-slaac-and-dhcp
http://www.ciscopress.com/articles/article.asp?p=2154680
b) Router Advertisement:
Send by routers periodically or in response to a Router Solicitation message, Source address is the link-local address of the sending router and Destination address is the unicast address of a node that sent a Router Solicitation or FF02::1
Stateless Address Auto congiuration (SLAAC):
https://supportforums.cisco.com/document/97586/dynamic-address-assignment-ipv6-using-slaac-and-dhcp
http://www.ciscopress.com/articles/article.asp?p=2154680
Lets Hands on:
Experiences:
$ ping6 -I wlan0 fe80::3602:86ff:fe63:3b0c == My link-local ip
PING fe80::3602:86ff:fe63:3b0c(fe80::3602:86ff:fe63:3b0c) from fe80::3602:86ff:fe63:3b0c wlan0: 56 data bytes
64 bytes from fe80::3602:86ff:fe63:3b0c: icmp_seq=1 ttl=64 time=0.038 ms
- On Windows client:
- netsh interface ipv6 install/uninstall
- IPv6 is installed and enabled by default on Windows Vista and Windows 2008 Server
- netsh interface ipv6 add address "Local Area Connection" fd00::c0a8:64
- On Linux client:
- ifconfig eth0 inet6 add fd00::c0a8:c7/64
- On Solaris client:
- ifconfig e1000g0 inet6 addif fd00:1:11:5a:214:4fff:fe86:1111/64 up
Experiences:
$ ping6 -I wlan0 fe80::3602:86ff:fe63:3b0c == My link-local ip
PING fe80::3602:86ff:fe63:3b0c(fe80::3602:86ff:fe63:3b0c) from fe80::3602:86ff:fe63:3b0c wlan0: 56 data bytes
64 bytes from fe80::3602:86ff:fe63:3b0c: icmp_seq=1 ttl=64 time=0.038 ms
$ping6 -I wlan0 ip6-allrouters -n
Routers responded back