Just curious: Does anyone know why there is no tap device support for netdev_add? Thanks, Derrick
Quote: Does anyone know why there is no tap device support for netdev_add? This is my point: netdev_add is for adding adding net devices inside VPS. /dev/net/tun isn't a network device. Its purpose is to manage network devices /dev/tunXX, /dev/tapXX: when you open /dev/net/tun /dev/tunXX and /dev/tapXX are created; after closing /dev/net/tun these files dissappear. Thus netdev_add mustn't work with /dev/net/tun. I also suppose, that tapXX and tunXX mustn't be controlled by netdev_add, cause they are created in HN by user space program. So, after terminating of this program - these devices dissappear. If you want to use TAN/TUN devices inside VPS, you can follow the link below: http://kb.swsoft.com/article_130_696_en.html Good luck.
This thread is quite old, but I wasn't satisfied with how it ended... When you run "vzctl set nnn --netdev_add tap0" on the host node, it may be that you want to push the TUN/TAP device into a container while retaining the socket on the host node. Then you can have an app on the HN that sends and receives packets directly from devices in the containers. Is this unsupported because the TUN/TAP devices are created and destroyed by a userspace program?