Lab of network - netkit¶
2011
Installing netkit
¶
wget http://wiki.netkit.org/download/netkit/netkit-2.7.tar.bz2
wget http://wiki.netkit.org/download/netkit-filesystem/netkit-filesystem-i386-F5.1.tar.bz2
wget http://wiki.netkit.org/download/netkit-kernel/netkit-kernel-i386-K2.8.tar.bz2
Unpack all the archives in the same folder named netkit
. Edit the ~/.bashrc
file:
export NETKIT_HOME=/home/apps/local/netkit
export MANPATH=:$NETKIT_HOME/man
export PATH=$NETKIT_HOME/bin:$PATH
Useful commands¶
Netkit provides two groups of commands.
vcommands
, prefixed withv
lcommands
, prefixed withl
The `vcommands`` used to manipulate isolated VMs:
vstart
: start from a virtual machinevlist
: list virtual machines to startvconfig
: assign an interface on the fly to a virtual machine. (vconfig –eth0=dc1 pc1 - assign eth0 to VM pc1, in collision domain dc1)vhalt
: shut down a virtual machinevcrash
: triggers a virtual crashvclean
: cleans processes and configurations
The lcommands
used on complex scenarios of several VMs (lab) in netkit terminology.
lstart
: start the netkit laboratorylhalt
: stop the laboratorylcrach
: trigger a crash of all VMslclean
: delete temporary fileslinfo
: information about the laboratoryltest
: verification of the proper functioning of the laboratory