If you’re just getting started with IPv6 you may want to mock it up in a lab with a few hosts. While it’s pretty easy to grab a windows machine running Windows 7 and lab it up you can do this in an even more controlled environment. Here is what you need:
To get started download the QEMU image and throw it somewhere on your hard drive. I put mine in my Virtual Machines folder.
Next, install GNS3 if you haven’t already done so.
Now the fun part- get GNS3 to talk to QEMU. From my testing there seems to be an issue with this when running it on a Mac. When you define where the QEMU image is located and then test it fails unless it’s already running. So what I have done here is started the Qemuwrapper from the CLI. Then I go back and load it up in GNS3:
terminal$: terminal$:/Applications/GNS3.app/Contents/Resources/qemuwrapper/qemuwrapper.py Qemu Emulator Wrapper (version 0.3.2) Copyright (c) 2007-2009 Thomas Pani & Jeremy GrossmannUnpacking pemu binary. Qemu TCP control server started (port 10525).
Here you can see I have now tested QEMU:
And you can also see the QEMU image that I have defined:
Our next step is to build the topology. Mine is simple, two QEMU hosts and 1 router.
Now we can configure the router for simple IPv6 Connectivity:
! ipv6 unicast-routing ! interface FastEthernet0/0 no ip address duplex auto speed auto ipv6 address 2001:DB8:1::1/64 ipv6 enable ipv6 nd prefix 2001:DB8:1::/64 ! interface FastEthernet0/1 no ip address duplex auto speed auto ipv6 address 2001:DB8:2::1/64 ipv6 enable ipv6 nd prefix 2001:DB8:2::/64 ! interface FastEthernet1/0 no ip address shutdown duplex auto speed auto !
Because we have configured the Neighbor Discovery Prefix the QEMU hosts should obtain an IPv6 address via Router Advertisements. On the QEMU host we did nothing and looking at the interface shows us that we have an IPv6 address with the same prefix:
The last 64-bits of the host address was configured using EUI-64 formatting. This, for the most part, takes the Mac address of the interface and inserts FFFE in the middle of it.
Now we should be able to ping the gateway:
So far so good! We should also be able to verify the second QEMU host has an IPv6 address:
Now for the real test. Let’s see if this router is going to route traffic as a default gateway for the two QEMU hosts. From QEMU Host 2 we ping QEMU host 1:
Conclusion
As you can tell configuring a simple IPv6 lab is not difficult to do. For further testing you could add a few routers and configure IPv6 Routing Protocols like OSPFv3 and EIGRP and the pass IPv6 traffic between the QEMU hosts. Alternatively you could configure an IPv4 backbone and use VTI interfaces to encrypt the IPv6 traffic over the IPv4 network. There is a ton that you can do, and it’s really not that difficult.














