I am configuring a network interface on my server, editing this file /etc/network/interfaces.d/50-cloud-init.cfg
I need to have a list of IP address configured which all are in the same ip-block. For now i'm writing every single ip address separately on the configuration file. I would like to know if it's possible to activate a whole block / range of ip in one shot ?
What i have inside for now s something like this :
auto lo
iface lo inet loopback
dns-nameservers xxx.xxx.33.99
auto eno1
iface eno1 inet dhcp
mtu 1500
auto eno1:0
iface eno1:0 inet static
address xx5.xx9.xx.0
netmask 255.255.255.255
auto eno1:1
iface eno1:1 inet static
address xx.xx.xx.1
netmask 255.255.255.255
auto eno1:2
iface eno1:2 inet static
address xx.xx.xx.2
netmask 255.255.255.255
auto eno1:3
iface eno1:3 inet static
address xx.xx.1xx.3
netmask 255.255.255.255
auto eno1:4
iface eno1:4 inet static
address xx.xx.xx.4
netmask 255.255.255.255
auto eno1:5
iface eno1:5 inet static
address xx.xx.xx.5
netmask 255.255.255.255
auto eno1:6
iface eno1:6 inet static
address xx6.xx.xx.6
netmask 255.255.255.255
auto eno1:7
iface eno1:7 inet static
address xx6.xx.xx.7
netmask 255.255.255.255