Jesse Sheidlower wrote:
Where's the right place to set up a TAP interface at boot time? When my system's up, I usually run "tunctl -t tap0" as root, but I'd like this to be created automatically. I do have an entry in /etc/network/interfaces to configure this: auto tap0 iface tap0 inet static address 192.168.5.1 netmask 255.255.255.0 but this won't work if the interface doesn't exist, so I end up having to do everything by hand. Thanks. Jesse Sheidlower
To bring up a TAP interface, optionally readable by a non-root user, do: iface mytap inet static address 10.0.3.1 netmask 255.255.255.0 pre-up /usr/sbin/tunctl -u username -t mytap