How i created it:
Now, is there any type of /etc/network/interfaces file or something similar where one can configure static IPs for interfaces? I saw that for static IP interfaces, you go through the GUI, but for virtual interfaces this is not an option. I could also create a script that runs every time at boot, but that seems too hacky.
Code: Select all
sudo ip addr add 169.254.169.254/24 broadcast 169.254.169.255 dev lo:metadata sudo ip link set dev lo:metadata up
So, my question is: "Is there a way to configure a network interface from a configuration file?"