[Netkit.users] tap problem / solution

Massimo Rimondini rimondin at dia.uniroma3.it
Sat Mar 28 13:21:23 CET 2009


Dear Peter,

thank you very much for pointing this out. However, this has already been
discussed here:
http://bugs.netkit.org/show_bug.cgi?id=2

I'm glad to hear the system has fitted your needs.

Regards,
Massimo.

> -----Original Message-----
> From: netkit.users-bounces a list.dia.uniroma3.it [mailto:netkit.users-
> bounces a list.dia.uniroma3.it] On Behalf Of pdn a dmu.ac.uk
> Sent: Friday, March 27, 2009 11:14 PM
> To: netkit.users a list.dia.uniroma3.it
> Subject: [Netkit.users] tap problem / solution
> 
> 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



More information about the Netkit.users mailing list