A simple generator of a bunch of virtual routers. Used for testing software related to dynamic routing.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
LEdoian 0396099bcd Add support for IPv6
The 40 bits in the ULA global prefix fdce:73a4:0b00::/48 were generated
by Python's `random.randint(0,2**40-1)` call
1 year ago
templates Add support for IPv6 1 year ago
.gitignore Add re-createable disk images to .gitignore 2 years ago
IDEA Add note about router ids 3 years ago
README.md Mention gen_dummy in README 2 years ago
alpine_install Install bird 2 years ago
alpine_postinst Add an SSH key 2 years ago
diag.xopp Diag: Mark gateway as machine X 3 years ago
gen_disks.sh Enable forwarding in all the routers 2 years ago
gen_dummy.sh Add initial version of disk generation scripts 2 years ago
gen_machines.py Add note about connecting the herd 2 years ago
manage_all.sh ./manage_all.sh: add force-stop 2 years ago
ssh_key Add an SSH key 2 years ago
ssh_key.pub Add an SSH key 2 years ago

README.md

This is a simple tool to generate testing networks of virtual machines. It was written primarilly for my bachelor's thesis.

Usage:

  1. Edit gen_machines.py to define the desired network
  2. Optionally edit the templates of config files
  3. Run it
  4. Create pre-installed Alpine Linux 3.15.4 disk image in dummydisk.img (you can use gen_dummy.sh for that)
  5. Run gen_disks.sh as root this creates customized disk images for all the machines
  6. Append output/bridge.conf to your /etc/qemu/bridge.conf in order to be able to connect your VMs to bridges as regular user
  7. Run output/gen_bridges.sh to create the bridge interfaces on your machine.