OVH Community, your new community space.

How to get Ipv6 working on a virtual machine?


gijs007
04-04-2015, 17:11
Where can I request a virtual mac for Ipv6?

alvaroag
04-04-2015, 06:31
First, you may need to generate a virtual mac for every IP you want to use on a VM(When asked VMAC type, choose vmware or ovh, should make no difference). Then, you have two options:

- Change that virtual MAC on the virtual network adapter preferences. Not sure how to do it, as I've never used Hyper-V. This article may help you: https://technet.microsoft.com/en-us/.../cc917873.aspx

- Change the MAC address from the VM (aka "clone MAC"). Here is an article about it: http://www.howtogeek.com/192173/how-...linux-and-mac/ . Not sure it would work, but most probable it will do.

Remember the IP configuration for the VM is: IP: The IP address associated to the virtual MAC; Netmask: 255.255.255.255 or /32; Gateway: The same as your host (A.B.C.254); DNS: The ones you preffer. Some Linux distros will not allow you to use a gateway outside of your network, so you should first add a on-link route to the gateway, and then the default route itself.

gijs007
03-04-2015, 22:49
It is bridged.

alvaroag
03-04-2015, 22:28
Hyper-V used bridged or routed network for VMs?

gijs007
03-04-2015, 20:19
I'm having some problems setting up Ipv6 on my virtual machine.
The host operating system is Windows Server 2012 R2 and using Hyper-v I'm running Ubuntu 14.10 server.

I've set it up as:
iface eth0 inet6 static
address YOUR_IPV6
netmask IPV6_PREFIX

post-up /sbin/ip -f inet6 route add IPV6_GATEWAY dev eth0
post-up /sbin/ip -f inet6 route add default gw IPV6_GATEWAY
pre-down /sbin/ip -f inet6 route del IPV6_GATEWAY dev eth0
pre-down /sbin/ip -f inet6 route del default gw IPV6_GATEWAY

As explained here: http://docs.ovh.ca/en/guides-network-ipv6.html

My host has an Ipv6 Ip ending with ::1
The Ubuntu virtual machine has an IP ending with ::2
Both have a /64 prefix and the same gateway.

I can ping from the host system but not from the virtual machine, when disabling Ipv6 on the host and using the host settings on the VM I can't ping either..

I've contacted OVH support, but they couldn't help me..