OVH Community, your new community space.

RE: Migrating to IPv6


staticanime
11-11-2010, 20:37
Hi all, I'll try keep this simple.

I noticed OVH have a document for setting up IPv6 addresses based on your existing IPv4 address, and while I have a decent understanding of IPv6, the guide has me confused.

So, consider this scenarion. I have a server (lets call it 190.165.212.50), on which I have 3 virtual machines (XEN). Each vm is using one of the 3 fail-over IP's available. Now, let's say I wanted to run multiple ssl sites on one of the vm's (let's call it 190.165.150.130), and I wanted to do this through ipv6 (to future-proof for the day IPv4 fails). Since I'm using the bridged network adapters for the vm's, I'll need to follow ovh's bridging guide, for which I need the vm's ip, and the dedicated server's ip ending in 254 for the gateway.

So, using an online calculator, I establish that for 190.165.150.130 I get the following:
This address is an IPv4 address:
Code:
IP v4 :
decimal 	:  190.165.150.130
binary 	:  10111110101001011001011010000010
octal 	:  0276.0245.0226.0202
hexadecimal 	:  0xBE.0xA5.0x96.0x82
long 	:  3198523010
 
IP v6 :
6 to 4 address 	:  2002:BEA5:9682:0:0:0:0:0
:  2002:BEA5:9682::
IPv4-mapped address 	:  0:0:0:0:0:FFFF:190.165.150.130
:  ::FFFF:190.165.150.130
:  ::FFFF:BEA5:9682
IPv4-compatibility address	:  0:0:0:0:0:0:190.165.150.130
:  ::190.165.150.130
:  ::BEA5:9682
Next, to get the gateway to use:
Code:
IP v4 :
decimal 	:  190.165.212.254
binary 	:  10111110101001011101010011111110
octal 	:  0276.0245.0324.0376
hexadecimal 	:  0xBE.0xA5.0xD4.0xFE
long 	:  3198539006
 
IP v6 :
6 to 4 address 	:  2002:BEA5:D4FE:0:0:0:0:0
:  2002:BEA5:D4FE::
IPv4-mapped address 	:  0:0:0:0:0:FFFF:190.165.212.254
:  ::FFFF:190.165.212.254
:  ::FFFF:BEA5:D4FE
IPv4-compatibility address	:  0:0:0:0:0:0:190.165.212.254
:  ::190.165.212.254
:  ::BEA5:D4FE
So first of all, which do I use, 6 to 4, ipv4-mapped or IPv4-compatibility? Secondly, could a IPv4 and IPv6 address be set for the vm's "external" interface, and have all websites on the vm use IPv6 addresses from the available range? Just to note, I will still be accessing the vm from IPv4 addresses most of the time, which is why my second question above is the msot important, as I'm sure the vm's can (hopefully) NAT within itself from IPv6 to it's legacy IPv4 address

Any and all help will be greatly apreciated to help me understand IPv6 more clearly!