Cannot assign secondary IP to multiple servers

SYSTEM INFORMATION
OS type and version debian 13
Webmin version 2.621
Virtualmin version 8.0.1 GPL

Hello,
I have two IP adresses. Right now, my primary address is assigned to every virtual server except one.
If I go to “change IP address” of the server that currently has the secondary IP, in front of “New IPv4” → “Shared address”, I can select one of the two IP of my machine.
But if I go to another virtual server, in front of “New IPv4” → “Shared address” there is only my primary IP, I cannot select secondary IP. And if I try to use “dedicated address” to enter my secondary IP, it throw an error :

  • " Failed to change IP address : The virtual interface IP address is already in use"
  • Or, if I also check the option “Already active” the error become : Failed to change IP address : The IP address is already used by virtual server xxxx.fr

And here is what “Network configuration” shows :

[ens3] Ethernet PRIMARYIP 255.255.255.255 IPV6 Yes
[ens3:0] Ethernet (Virtualmin) SECONDARYIP 255.255.255.255 Yes

Hello,

What is the output of the ip a command on your server?

2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether XX:XX:XX:XX:XX:73 brd ff:ff:ff:ff:ff:ff
    altname enp0s3
    altname enxfa163ea4ba73
    inet PRIMARY_IP/32 scope global ens3
       valid_lft forever preferred_lft forever
    inet SECONDARY_IP/32 scope global ens3
       valid_lft forever preferred_lft forever
    inet6 IPV6/64 scope link 
       valid_lft forever preferred_lft forever

If you really want to use multiple shared IP addresses instead of a dedicated IP, you should first add them on the “Addresses and Networking ⇾ Shared IP Addresses” page.

If this isn’t exactly what you were looking for, then explain the problem you’re trying to solve, as it’s not entirely clear what you’re trying to achieve.

Yes, I need multiple shared IP addresses, I was not aware of this “shared IP address” configuration page.
Thank you

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.