I am building a virtualisation host, and I want my virtual machines to be available via both v4 and v6 IP address.
The host I have (Xen 4.1.3 with Debian Wheezy in dom0) has one physical eth0 interface:
10.0.0.2/30 dev eth0
default via 10.0.0.1
2000:1111:1111:11111::2/64 dev eth0
default via 2000:1111:1111:11111::1 (aka fe80::1)
My ISP has assigned me a 10.100.0.0/28
IPv4 range, statically routed via 10.0.0.2
.
On the host, I have built xenbr0 virtual bridge interface:
10.100.0.1/28 dev xenbr0
On each guest VM, I set any of unused addresses from 10.100.0.0/28
, i.e:
10.100.0.2/28 dev eth0
default via 10.100.0.1
As expected (since host acts like a classic router), VM's are able to talk to the v4 internet without a hitch.
That's where my lack of experience with IPv6 kick in. From my understanding v6 addresses are routed pretty much the same like their v4 counterparts, which means that what I want to accomplish is impossible with only one /64 range (at least while eth0 & v6 gw are configured the way they are).
Is it possible to make use of a single IPv6 /64 range, so that VMs can have static IPv6 addresses, without having to go and ask my ISP for another /64 range that (I guess) would have to be statically routed via 2000:1111:1111:11111::2
?
I tried to "split" this /64 network in two /65 networks, then reconfigure xenbr0 like this:
2000:1111:1111:11111:8000:2/65 dev xenbr0
Also, eth0 was reconfigured (only network size has changed from 64 to 65):
2000:1111:1111:11111::2/65 dev eth0
default via 2000:1111:1111:11111::1
Host did not loose IPv6 connectivity. However, guest VMs were unable to contact anything outside of host when configured like this:
2000:1111:1111:11111:8000::2/65 dev eth0
default via 2000:1111:1111:11111:8000::1
Any ideas on how to proceed?
Comments
Post a Comment