Hi for all,
currently, waiting for the complete implementation of the simulator, we are using a tiny tool that emulate networks (Netkit).

To run Netsukuku (python version) we need:
- Stackless Python (>=2.6.1);
- Netkit
- the code from the svn.

Netkit creates some virtual hosts that shares only the $HOME directory with the hosting system (i.e. $HOME in our system is /hosthome into the Netkit terminal host). Thus if we want to run Netsukuku using Stackless Python into Netkit, we need to store them (Netsukuku and Stackless) into the $HOME directory.

For example, create this two directory:
$ mkdir $HOME/stackless
$ mkdir $HOME/netsukuku

1) Now, download stackless python from here:
http://www.stackless.com/binaries/stackless-261-export.tar.bz2

Untar and install it:
$ tar xjf stackless-261-export.tar.bz2
$ cd python-2.6.1-stackless
$ ./configure --prefix=$HOME/stackless
$ make
$ make altinstall

2) Download Netsukuku from svn and install it:

$ cd $HOME
$ svn co http://dev.hinezumi.org/svnroot/netsukuku/trunk netsukuku
$ cd netsukuku/pyntk
$ $HOME/stackless/bin/python2.6 setup.py build
$ $HOME/stackless/bin/python2.6 setup.py install

3) Now you must install Netkit, the network emulator.
Download it form here:
http://wiki.netkit.org/index.php/Download_Official

You need to download the core, the filesystem and the kernel too, then install them in the same order (just untar the three files into the same directory). A `netkit' directory will be created.
Now you need to set up you Netkit's environment variables, that are:

$ export NETKIT_HOME=$HOME/netkit
$ export PATH=$NETKIT_HOME/bin:$PATH
$ export MANPATH=$NETKIT_HOME/man:$MANPATH


Now we have all.

An interesting feature of Netkit is the possibility to create some "network laboratories", and to save them configuration; I have created one that I have attached here (could be a skeleton for more complex network, for example with more than one collition domain, ecc). Untar `lab.tar' and go into the directory extracted (`lab'). Inside the `lab' directory, type `lstart' to start the lab, and `lhalt' to stop it. If you want to clean up the host's filesystem, after `lhalt', type `lclean'. More information on the Netkit official site.

Into the `root' directory of each hosts, there's a script file named `ntk' that runs netsukuku.

Enjoy! ;)

IMPORTANT: for each virtual hosts are assigned 512 MB of memory, but we need to test also with less memory (simulating embedded systems). We can simply edit lab.conf into the directory.

--
Francesco

Attachment: lab.tar
Description: Unix tar archive

_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku

Reply via email to