'IP tuntap command can't open tun

I want to create a TUN interfae I type command in adb like below

mkdir -p /dev/net
busybox mknod /dev/net/tun1 c 10 200
chmod 666 /dev/net/tun1
ip tuntap add dev tun1 mode tun

When I type "ip tuntap add dev tun1 mode tun" It show "open: No such file or directory" like this http://imgur.com/FQA3BvP

Can anyone give me some idea? It's about kernel or other? How to fix it?



Solution 1:[1]

Before creating TUN interface, you should create symlink because ip tuntap expected tun to be in /dev/net/tun. Here is the command:

ln -s /dev/net/tun /dev/tun

Solution 2:[2]

as root run

mkdir /dev/net
ln -s /dev/tun /dev/net/tun

Jacob's answer had the arguments order wrong. I do not have enough rep to comment on his answer so I had to write this one.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jacob Sokol
Solution 2 Mark Mark