• Please allow the local host and the VM to completely load up before opening or creating a project


**Note: **VPCs are deprecated and it is recommended to use Docker images instead

  • How to add an ip address?
    • ip
      • This sets up a subnet of 10.11.12/24, assigns the PC the IP address, with a default gateway of (which is the ip of router)
  • How to show current ip configuration?
    • show ip
  • How to save configuration on VPC?
    • save
    • Note: If you do not save the configuration, it will be erased when you shut down the node
  • How to view arp table
    • show arp
  • How to change DNS server
    • ip dns <dns-server>


How to Get Routing Information.

For Linux

  • sudo route -n
  • netstat -rn
  • ip route list

For Windows

  • route print

For Mikrotik

  • ip route print

How to set a static route:

For Linux:

  • sudo ip route add via
  • sudo ip route add via

For Windows:

  • route ADD MASK
  • route delete

For Mikrotik:

  • ip route add dst-address= gateway=
  • ip route add dst-address= gateway=
  • ip route remove [find gateway=“”]

How to set a default gateway:

  • Linux: route add default gw {IP-ADDRESS} {INTERFACE-NAME}

Trace IP Address

For Linux:




  • Free edition speed limit = 1Mbit

How to get your CHR (Cloud Hosted Router) licensed?

LicenseSpeed limitPrice

Set IP Address

Linux: ifconfig eth0 netmask up


  • ip address add address= interface=ether2
  • ip address add address= interface=ether3


You need to add NAT rule so that hosts under the router can talk to the internet

  • ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
  • Ether1 represents the interface facing the internet. The internet knows how to get to this ip, it does not know how to get to the internal ips.


For Linux:

  • cd into /etc/resolv.conf
  • vi resolv.conf
    • nameserver
    • Press escape key
      • :x
    • cat resolv.conf to confirm
    • You should now be able to ping


  • Download redis docker image
    • Redis
  • Add to topology
  • Right click and edit config
    • Set ip/gw
  • Make sure you can ping it from another machine
  • Install redis on another machine
  • Connect to redis server
    • redis-cli -h -p 6379
    • Type ping to test

Jupyter Lab

  • Start the docker container
    • jupyter lab —ip —no-browser —allow-root
  • On another host that can ping this machine




  • Download win utitility
  • Convert from vdi to qcow2
    • qemu-img convert -p -f vdi -O qcow2 Alpine.vdi Alpine.qcow2
    • .\qemu-img convert -p -f vdi -O qcow2 Kali-Linux-2021.3-vbox-amd64-disk001.vdi Kali-Linux-2021.3.qcow2


  •  How to enable virtualization
    • Cd C:\Program Files\Oracle\VirtualBox
    • VBoxManage modifyvm VM-name —nested-hw-virt on

To fix gns3 vm issue:

sudo dpkg --configure -a
Sudo apt install xubuntu-desktop

Alpine Linux

  • How to enable virtualization
    • Cd C:\Program Files\Oracle\VirtualBox
    • VBoxManage modifyvm VM-name —nested-hw-virt on
  • A bunch of stuff to get a gui going
  • Apk update && apk add gns3-server
  • Apk add docker

Set up ssh

apk add openssh
apk add openrc
rc-update add sshd
/etc/init.d/sshd start
vi /etc/ssh/sshd_config
  1. Look for#PermitRootLogin prohibit-password
  2. Press I in order to activate vi editing mode.
  3. Remove the # at the beginning of the line and change prohibit-password to yes:
  4. Now save and exit by pressing Esc and then pressing :wq and Enter.
service sshd restart

Setup Mikrotik

  • Log into router
  • Interface
  • Type the following commands
    • set 0 name=ether1
    • set 1 name=ether2
    • set 2 name=ether3
    • set 3 name=ether4
  • Type print to verify changes


Set up ssh

  • apt-get install openssh-server
  • update-rc.d -f ssh remove
  • update-rc.d -f ssh defaults
  • /etc/ssh/sshd_config
    • PermitRootLogin yes
  • Service ssh restart
  • update-rc.d -f ssh enable 2 3 4 5