cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2184
Views
0
Helpful
2
Replies

IPv6 addressing where IPv4 address get added.

shassan655
Level 1
Level 1

Hello,

        I have a little confusion and trying to understand the following as to how come an ipv4 which is 32 bit can make it up to 64 bit when added onto a ipv6 address.

I have IPv6 which is /64...so example is like 2001:abdf:2afe:222a:192.168.1.2/128....Now this portion of IPv6 becomes /64 ( 2001:abdf:2afe:222a)..then when we add ipv4 address which is /32...then how can we write /128....I have seen this and it has confused me. Are we adding extra 32 bit as padding.....or when IPv4 address is put in IPv6 then every hextet is 16 bit...so ipv4 192 which is 8 bit in Ipv4 becomes 16 bit in Ipv6...am i correct in my understanding...or do we add FF:FE which we add Mac address ( 48 bit ) in Ipv6 Global unicast address where FF:FE gets added to make it 128 bit...but i don't see the same out put in when adding Ipv4..

 

I hope i am clear in explaining my confusion here.

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

In the case where you are embedding an IPv4 address into an IPv6 address using a /96, select a /64 and set the following 4 octets to zero, then add the 32 bits of the IPv4 address.

Have a read of the RFC to find out more:

https://tools.ietf.org/html/rfc6052#section-2

 

cheers,

Seb.

v6 addresses schemes have a very strong bias toward using the upper 64 bits for subnetting and the lower 64 for host identification out of the total 128.  There are at least ways to pick the host part so far:

  * use the EUI-64 mapping off a 48 bit ethernet MAC (flip the global/local bit, insert FFFE in the middle)

  * get it from an upstream DHCPv6 server if the RA says to

  * use a psuedo-random privacy address; windows OS likes this

  * use a psuedo-random cryptographic hash address; the experimental SEND protocol would do this

  * use a psuedo-random per subnet address, newfangled RFC-7217 style

  * use a statically assigned address from the host administrator, using whatever takes his or her fancy

These are not mutually exclusive, e.g. you often have both EUI-64 mapped and privacy addresss valid simultaneously on a single interface on subnets where the router advertisements allow SLAAC. 

It's common for server hosts with staticly assigned host parts to use simple things which reflect the service port or part of the v4 address; due to the multicast and global/local flag bits in the upper part the fun stuff is usually kept down in the low bits.  So a complete v4 address might be embedded in the host part as 0:0:pq:rs.  At the UW-Madison, the campus anycast recursive DNS servers have host parts ::53:1 and ::53:2, while the NTP servers have ::123:1, ::123:2, etc.

-- Jim Leinweber, WI State Lab of Hygiene

 

Review Cisco Networking for a $25 gift card