Virtual IPv6 Network between VirtualBox VMs

Posted by Ben on Server Fault See other posts from Server Fault or by Ben
Published on 2012-12-18T15:42:49Z Indexed on 2012/12/18 17:04 UTC
Read the original article Hit count: 260

I'm trying to create a virtual IPv6 network as a test environment. I have 5 VirtualBox VMs (Ubuntu Server) with network adapters using host-only networking. You can imagine them being connected in series and every machine connects 2 subnets. I want to ping the last machine from the first one: On: 2001:db8:aaaa::100 I want to ping 2001:db8:dddd::101 (Note: there is no cccc network in between)

Only static configuration and routes are used:

/etc/network/interfaces
auto eth0
iface eth0 inet6 static
address 2001:db8:aaaa::100
netmask 64

/etc/network/interfaces
auto eth0
iface eth0 inet6 static
address 2001:db8:aaaa::101
netmask 64

auto eth1
iface eth1 inet6 static
address 2001:db8:bbbb::100
netmask 64
up ip -6 route add 2001:db8:dddd::/64 via 2001:db8:bbbb::101 dev eth1
down ip -6 route del 2001:db8:dddd::/64 via 2001:db8:bbbb::101 dev eth1

I thought there might be some automatic route discovery going on. Anyway, ping6 2001:db8:dddd::100 will not work from aaaa::100 When I add the route: ip -6 route add 2001:db8:dddd::/64 via 2001:db8:aaaa::101 it will work. But the next interface in the same network dddd::101 is not reachable. How could that be? There is a machine with an interface bbbb::101 and another dddd::100 and I can ping the latter one, but the machine connected to it, dddd::101 not??

I also have also turned on forwarding.

Any ideas?

© Server Fault or respective owner

Related posts about linux

Related posts about virtualization