ip tuntap add dev tun0 mode tun

ip tuntap add dev tap0 mode tap

ip tuntap del dev tun0 mode tun

#for detail

ip tuntap help

https://my.oschina.net/dangzy/blog/221893