A sample virtual machine definition to run the script is provided and managed using Vagrant, using a VirtualBox provider.
You need to install both of these softwares on your machine in order to run an emulated network.
- ./build_vm.sh will create and provision the virtual machine.
vagrant up
will boot the VM (once it has been built).vagrant ssh
(from this directory) will create an ssh connection to the VM.vagrant halt
will stop the VM (i.e. shutdown properly the guest OS).
make create
will start the networkmake clean
will halt the networkmake connect ROUTER={name of a router}
will connect you to the router specified when the network is upmake test
launch the tests./snmp.py
will launch the snmp daemon
The main directory of this repository contains the set of scripts to start a virtual network as well as loads and apply its configuration files. You should only run such a network within the VM.
The routers all define a boot script, which reloads the sysctl configuration in every net NS (in this case: Enable IPv6 and IPv6 forwarding). Their startup script then assign IPv6 addresses to the interfaces and/or start a routing daemon.