close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "hg": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Notes on tun/tap on Planet Lab

if you need a tun tap on planet lab make sure you slice has the following administrative tags enabled:

vsys / fd_tuntap
vsys / vif_up
vsys_vnet /

where is an example subnet

To create a tap device on a node in Planet-lab make sure you have the folder /vsys on each node. This happens when the tag settings on the slice have propagated on all the machines. After this check compile and launch the file : source:planet-lab/tuntap/tuntest.c

You can find the original tuntap support files here:

This program allocate a new tap device on the nodes. While this program is running (you need that this program does not end) type these commands on the node shell:

cat /vsys/vif_up.out&

[0] cat>  /vsys/
      <name of interface, i.e. [tun|tap]<sliceid>-n
      <ip address e.g.>
      <netmask e.g. 24>
      <options as newline-separated name-value pairs>

I have created a file that contains tap<sliceid>-n ip_address netmask like this :


and instead of the command [0] I have used this :

cat file > /vsys/

After this you may see a new tap interface typing the ifconfig command. For example after this procedure i have a new tap device like this :

tap1297-0 Link encap:Ethernet  HWaddr 00:FF:53:FE:4E:0B  
          inet addr:  Bcast:  Mask:
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
Last modified 8 years ago Last modified on Jun 23, 2010, 3:37:45 PM