Skip to content

TapDevice

Saverio Proto edited this page Jun 25, 2012 · 2 revisions

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:

where 172.16.2.0/24 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: http://svn.planet-lab.org/svn/vsys-scripts/trunk/support/

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:

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

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

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

Clone this wiki locally