[Netkit.users] tap problem / solution

pdn at dmu.ac.uk pdn at dmu.ac.uk
Fri Mar 27 23:13:45 CET 2009


Hello
Firstly, may I thank the Netkit team for providing such a valuable
resource - both Netkit itself and the associated official labs / slides.
Our undergraduate and research Forensic Computing students have really
benefited from the realistic / complex network scenarios we have been able
to create for them to investigate.

Now the problem:
Using netkit-2.6 downloaded 25 march 2009 onto Ubuntu 8.04.
vstart pc --eth0=A eth1=B // works
vstart pc --eth0=tap,10.0.0.254,10.0.0.1 // works
vstart pc --eth0=tap,10.0.0.254,10.0.0.1 --eth1=B // fails: tries to start
tap twice
vstart pc --eth1=B --eth0=tap,10.0.0.254,10.0.0.1 // fails: does not start
tap

Patch fix as follows and attached.
Many thanks
Peter Norris
De Montfort University UK

--- netkit/bin/script_utils	2007-12-19 09:55:58.000000000 +0000
+++ ../netkit/bin/script_utils	2009-03-27 13:56:39.000000000 +0000
@@ -317,8 +317,8 @@
 # This function starts all the hubs inside a given list
 runHubs() {
    local HUB_NAME BASE_HUB_NAME ACTUAL_HUB_NAME TAP_ADDRESS GUEST_ADDRESS
-   HUB_NAME="$1"
    while [ $# -gt 0 ]; do
+      HUB_NAME="$1"
       BASE_HUB_NAME="`varReplace HUB_NAME \".*_\" \"\"`"
       if [ "${BASE_HUB_NAME#tap${HUB_SOCKET_EXTENSION},}" !=
"$BASE_HUB_NAME" ]; then
          # This is an Internet connected hub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script_utils.diff
Type: text/x-diff
Size: 552 bytes
Desc: not available
Url : http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20090327/94cab7fd/attachment.diff 


More information about the Netkit.users mailing list