Grab a program called tunctl.c, compile it with `gcc -o /usr/sbin/tunctl` and use `tunctl -t tun0` to setup the tun0 interface. I am doing more or less the same thing with qemu. -- http://changmw.homeip.net