Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2017-07-13,master
commit e4fd0a2a4aed9f03674e570ecfa3e38e09dc296f Author: Simon Wunderlich sw@simonwunderlich.de Date: Sun Oct 18 16:07:35 2009 +0000
doc: open-mesh/Emulation
e4fd0a2a4aed9f03674e570ecfa3e38e09dc296f open-mesh/Emulation.textile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/open-mesh/Emulation.textile b/open-mesh/Emulation.textile index 1bcfb8e1..2e93c060 100644 --- a/open-mesh/Emulation.textile +++ b/open-mesh/Emulation.textile @@ -96,13 +96,14 @@ The script does: * kill old instances * start up vde_switch instances for each host * start up QEMU hosts (one Ethernet tap device is created per instance to allow logging etc) - * install the links between the hosts. The topology graphic can be found here: TODO + * install the links between the hosts. The resulting topology will be similar to this: +[[Image(wiki:Emulation:mesh.gif)]]
{{{ #!/bin/sh QEMU=$(which qemu) -VDESWITCH=/home/dotslash/src/vde2-2.2.3/src/vde_switch/vde_switch -IMAGE=/home/dotslash/src/openwrt2/kamikaze/bin/openwrt-x86-jffs2-128k.image +VDESWITCH=~/src/vde2-2.2.3/src/vde_switch/vde_switch +IMAGE=~/src/openwrt2/kamikaze/bin/openwrt-x86-jffs2-128k.image
# you can set this if you are running as root and don't need sudo: # SUDO= @@ -149,6 +150,19 @@ wirefilter --daemon -v num4.ctl:num6.ctl -l 60 wirefilter --daemon -v num6.ctl:num8.ctl -l 60 }}}
+The script is using the switch configuration file "colourful.rc". It creates the ports (create more if your topology demands this) and sets the host port (port no. 1) colour to 1. Put the following text in this file: + +{{{ +port/setcolourful 1 +port/create 1 +port/create 2 +port/create 3 +port/create 4 +port/create 5 +port/setcolour 1 1 +}}} + + To collect the batman logs from the individual hosts, you might want to use this script after all nodes have completed booting and started batman:
{{{