There was an error in this gadget

Sunday, May 2, 2010

To test whether the TUN/TAP device is available

To test whether the TUN/TAP device is working or not:

# cat /dev/net/tun

If you receive the message cat: /dev/net/tun: File descriptor in bad state your TUN/TAP device is ready for use.

If you receive the message cat: /dev/net/tun: No such device the TUN/TAP device was not successfully created.


.

1 comment:

  1. Thanks, this proved very useful in fault diagnosis.

    ReplyDelete