Re: Convert IPv4 to IPv6



is there a straight forward way of converting IPv4 to IPv6?

Have a look at the IPv6 RFC and/or its Wikipedia entry. IIRC there's an
address range reserved for mapping the old IPv4 addresses.

Yes, I had a look at it, and my impression was that IPv6 was the successor
of IPv4 so 32bits had been reserved to allow for backward compatibilities.

Reserving 32 bits would drastically reduce the address space. But the
range ::ffff:0:0/96 seems to be reserved for the old IPv4 addresses. It
shouldn't be too difficult to do the mapping.

http://en.wikipedia.org/wiki/IPv4_mapped_address

yeah, but some source say that the notation has been deprecated.
in fact my Vista picks up ping ::7f00:1 as ping 127.0.0.1
but it does the same for ping ::ffff:7f00:1


127.0.0.1 -> 01111111.00000000.00000000.00000001 ->
0111111100000000:0000000000000001 -> 7f00:0001

Sure, but in IPv6 the loopback device is ::1, which has nothing to do
with 127.0.0.1 or 7f00:0001 (which is not even valid IPv6, BTW). The
same applies to the old local addresses like 192.168.x.y for example.


Si was converting as an example from decimal to binary and so forth, and there were only 32 bits in my example not 128,
So the whole thing was not really going to be valid IPv6.

Micha

Simon

.



Relevant Pages

  • Re: getaddrinfo() does not behave as expected!
    ... If your application supports IPv4 only, ... My take is that while the application may support both v4 and v6 and be ... So you have a valid name and get a valid (IPv6) address, ... ping: unknown host::1 ...
    (comp.unix.solaris)
  • Re: VPN and Mapping Drives
    ... Yes - we can ping. ... The drives we are mapping are actually five folders on the same machine e.g. ... > drive mappings try to ping the remote machines to see if machines are ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Convert IPv4 to IPv6
    ... Have a look at the IPv6 RFC and/or its Wikipedia entry. ... IIRC there's an ... address range reserved for mapping the old IPv4 addresses. ...
    (comp.lang.php)
  • Re: IPv6 pings with Icmp6SendEcho2
    ... both IPv4 and IPv6 ... ie if we give a host name to ping, how to know whether the given ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Delayed DNS server response ...
    ... Isn't that the purpose of ping6? ... The only ping I know that does both IPv4 and IPv6 is the one included in Windows Vista. ...
    (comp.os.linux.networking)

Loading