Some tasks requires having tap interfaces configured + assign ownership. So, I am doing it manually:
sudo tuntap -u <username> sudo ifconfig tap0 up sudo ip a a 192.168.1.1/24 dev tap0
ip tuntap add dev tap0 mode tap user <username>
How can I make tap interfaces configuration peristent after reboots without adding these commands to a shell script and add to startup
What I have in mind is doing it through /etc/network/interfaces like the following:
iface tap1 inet static address 192.168.1.121 netmask 255.255.255.0 pre-up /usr/sbin/tunctl -u ajn -t tap1
But for some reason, it doesn't work.