[SOLVED] Interfaces name

lps90

Active Member
May 21, 2020
211
10
38
Hi guys
Host: OVH
I'm trying to create a VM with 8+ failover ips.
The problem is only ens18 to ens23 is being accepted.
The network is not starting:
Apr 12 19:48:07 Router systemd[1]: Starting Raise network interfaces...
Apr 12 19:48:07 Router ifup[762]: Cannot find device "ens24"
Apr 12 19:48:07 Router ifup[705]: ifup: failed to bring up ens24
Apr 12 19:48:07 Router ifup[769]: Cannot find device "ens25"
Apr 12 19:48:07 Router ifup[705]: ifup: failed to bring up ens25
Apr 12 19:48:07 Router ifup[776]: Cannot find device "ens26"

Apr 12 19:48:07 Router ifup[705]: ifup: failed to bring up ens26

My VM /etc/network/interfaces config:

Code:
auto lo
iface lo inet loopback

allow-hotplug ens18
iface ens18 inet static
    address 192.168.1.2/24
    gateway 192.168.1.1
    dns-nameservers 213.186.33.99

auto ens19
iface ens19 inet static
    address 178.33.XX.XX/24
auto ens20
iface ens20 inet static
    address 178.33.XX.XX/24
auto ens21
iface ens21 inet static
    address 178.33.XX.XX/24
auto ens22
iface ens22 inet static
    address 178.33.XX.XX/24
auto ens23
iface ens23 inet static
    address 37.59.XX.XX/24
auto ens24
iface ens24 inet static
    address 37.59.XX.XX/24
auto ens25
iface ens25 inet static
    address 37.59.XX.XX/24
auto ens26
iface ens26 inet static
    address 37.59.XX.XX/24

Any possible solution?
thanks
 
*I just solved.

ip addr listed different names: enp2s1, enp2s2 and enp2s3
i just edited the config to this names and it solved the problem :)

Thanks for suggestion ;)