Hi all,
I am working on TUN/TAP for tunnelling IP packets from the application to the network.
I am able to open the tun device and assign the IP address to tun0. The steps I followed are given,
1. Opened the tun device /dev/net/tun
2. Assigned a IP address to the tun0 using ifconfig tun0 10.66.67.247
3. Added to the routing table using the following command route add -host 10.66.67.247 dev tun0
4. I have loaded the tun device using modprobe tun and I was able to see the device when I gave the command lsmod | sort
Code:
tsdev 7520 0
tun 10336 1