Menu

Home

Raizo62
There is a newer version of this page. You can find it here.

Network simulators

  • GNS3 1.5.3dev1
  • dynamips 0.2.16 : emulator of router / provided without any IOS
  • VirtualBox 5.1.4 r110228
  • Virtual PC Simulator 0.8c
  • QEmu 2.5.0
  • Iouyap / provided without any IOU image

Virtual Machine (VM)

  • It is called Debian.
  • It is based on Linux Debian Jessie 32 bits.
  • The installed software are similar to the ones of NetKit.
  • VM are integrated into GNS3 and VirtualBox
  • Be careful : several services (isc-dhcp-server, bind9, freeradius, openvpn ...) are downloaded but not installed. You must install them for use them (aptitude install/apt-get install), but you don't need access to Internet for that.
  • Should it be needed, additional software can also be installed (as with a real Debian Linux) in order to enable particular features that are required for specific experiments.

The main tools of Raizo

  • Servers DHCP, DNS, FTP, tFTP, SSH
  • Network protocol analyzer : Wireshark 2.0.4
  • Serial port communications program : minicom / putty
  • Web Navigator QupZilla 1.8.9
  • PDF Reader xpdf 3.03
  • NFS Client

Added commands

On Raizo and the VMs

  • fast-ip : To configure the IP address of a network interface and eventually the gateway.
  • fast-dhcp : To configure a DHCP server (based on the IP address of this server)
  • fast-dns : To configure a DNS server
  • fast-rip : To configure a RIPv2 router
  • fast-syslog : To display with colors the last 40 lines of the file /var/log/syslog
    (fast-ip, fast-dhcp and fast-dns used together enable to setup a dynamic DNS)

Only on Raizo


Added configuration files

On Raizo and the VMs

  • Colorized outputs of networks commands
  • For nano, a syntax highlighting for the configuration files
  • For tmux (installed only on VM), the key "CTRL+ARROW" allow to change terminals quickly, and "SHIFT+ARROW" allow to change order of terminals quickly

Only on Raizo

  • minicom of Raizo is configured to get connected to the serial port. minicomUSB (or "minicom USB") allows to use USB adapter.
  • Basic configuration file for
    • Cisco routers : ~/.config/GNS3/configs/Raizo_ios_base_startup-config.txt
    • Cisco EtherSwitch : ~/.config/GNS3/configs/Raizo_ios_etherswitch_startup-config.txt
    • Cisco switch IOU : ~/.config/GNS3/configs/Raizo_iou_l2_base_initial-config.txt
    • VM Linux : ~/.config/GNS3/configs/Raizo_vbox_linux_startup-config.sh

Only on the VMs

  • Commented sources.list for Kali Linux : /etc/apt/sources.list.d/kali.list

The specifics

Of the VMs

  • After having started up, the hostname of each VM will automatically take the name that was given in GNS3
  • After having started up, the VM execute the script on Raizo "X" (with X the hostname of the VM) into "Y/project-files/virtualbox/" (with Y the name of your project)
  • As with NetKit, the VM have access to the directory “/home/user” of Raizo by using their directory "/hosthome"
  • The password of root is root

Of Raizo

  • At boot, all detected networks interfaces are activated (but not configured), and they will stay activated even if you use ifdown. If you want shutdown a network interface (eth0, for example), you must do : "ifconfig eth0 down".
  • At boot, a TAP interface is created (useful if you want that your virtual network communicates with "Live Raizo")
  • Before install Debian Package, you must do : "sudo aptitude update"
  • X starts automatically fast-battery if necessary : battery detected but not charging
  • On X
    • ALT+F1 starts xterm
    • ALT+F2 starts GNS3

Of Raizo and the VMs

  • No server is started automatically at boot
  • Set an IP address dynamically : "!1" or "fast-ip dhcp" or "sudo ifup eth0"

Persistence of /home

  • During boot, if Raizo finds a partition with the label “persistence” and the file persistence.conf with "/home" on the root, this partition is automatically mounted in /home. (cf live debian)
  • Be careful : Don't forget to erase your persistent user's home if you update "Live Raizo"

Customization of LiveRaizo


Tips

  • To save only the configuration of VirtualBox and GNS3 to use them after a reboot, you can create a backup with "fast-backup-lab -P" and save it.
  • Think to glance into the default history of commands from Raizo and Debian VMs
  • To connect your virtual network with the real network : On GNS3, you put a "Host" device and a cable to the attribute "nio_gen_eth:eth0" of this "Host" device.
  • To communicate between your virtual network and Raizo : On GNS3, you put a "Host" device and a cable to the attribute "nio_tap:tap0" of this "Host" device. On Raizo, you give an IP address to the tap0 interface.
  • To connect your virtual network with the Wifi : On GNS3, you put a "Host" device and a cable to the attribute "nio_tap:tap0" of this "Host" device. On Live Raizo, launch "fast-nat" command.
  • I recommand to use Lili USB to install Live Raizo on USB Key.

Drawbacks

  • You should not move the USB key of Live-Raizo when it is running. If you see "Input/output error" when you launch a command (or fast-syslog), it's too late and you must reboot. Sorry
  • If you want install mysql-server on "Debian" VM, you must increase the default memory of this VM from 128MB to 256MB
  • If you want install php5 on "Debian" VM, you must do before "insserv dnsmasq"
  • BIOS time must be after 16/10/07 otherwise the "Debian" VMs won't start
  • If you open several consoles on the same "Debian" VM, strange characters will appear on the prompt. Leave only one of these consoles and close others.
  • In GNS3, if you use VirtualBox VM then you must not use "save as" function. You can only use "save". Then choose attentively the name of your project before you begin

Minimal linux commands useful

  • startx : to launch the graphical interface
  • sudo su : to become administrator/root
  • sudo command : to launch "command" as root
  • cp /path/source/file /path/destination : to copy the file from directory "/path/source" into directory "/path/destination"
  • rm /path/file : to delete "/path/file"
  • rm -rf /path/directory : to delete the directory "/path/directory"
  • sudo poweroff : to stop Live Raizo

Others Links