Hi,
I have a PVE 7.1 on OVH server. There you need to have OVH generated virtual mac address for each IP you assign to VM. I have no problem for adding single IP to any VM with mac generated from OVH .
However, I can't find way to make multiple IP work for single VM.
My network is in bridge mode, I have configured VM (debian 11) to have 4 ip alias.
My "ip a" output from VM :
With following /etc/network/interfaces where I have tried to add "hwaddress ether mac-address" to each IP.
I have confimed that VM network setup is fine, it only issue related to MAC address. Every time when I change MAC address for eth0 from PVE GUI, then corresponding IP starts working. For example, If I assign "02:F0:00:C0:E0:5F" of primary IP ie. x.x.x.222 to NIC from GUI then this address starts working, rest all stop working. If I again change MAC address asigned to some other IP's associated address then that IP starts working, previous one stops.
Is there workaround for this with changing network mode (ie. keeping vmbr0)
I have a PVE 7.1 on OVH server. There you need to have OVH generated virtual mac address for each IP you assign to VM. I have no problem for adding single IP to any VM with mac generated from OVH .
However, I can't find way to make multiple IP work for single VM.
My network is in bridge mode, I have configured VM (debian 11) to have 4 ip alias.
My "ip a" output from VM :
Code:
link/ether 02:00:00:66:00:06 brd ff:ff:ff:ff:ff:ff permaddr 02:00:00:09:02:f6
altname enp0s18
altname ens18
inet x.x.x.221/28 brd x.x.x.255 scope global eth0
valid_lft forever preferred_lft forever
inet x.x.x.222/28 brd x.x.x.255 scope global secondary ens18:0
valid_lft forever preferred_lft forever
inet x.x.x.223/28 brd 255 scope global secondary ens18:1
valid_lft forever preferred_lft forever
inet x.x.x.224/28 brd x.x.x.255 scope global secondary ens18:2
With following /etc/network/interfaces where I have tried to add "hwaddress ether mac-address" to each IP.
Code:
The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug ens18
iface ens18 inet static
address x.x.x.221/28
gateway x.x.x.254
auto ens18:0
iface ens18:0 inet static
address x.x.x.222/28
gateway x.x.x.254
hwaddress ether 02:01:AA:5E:3A:E8
auto ens18:1
iface ens18:1 inet static
address x.x.x.223/28
gateway x.x.x.254
hwaddress ether 02:F0:00:C0:E0:5F
auto ens18:2
iface ens18:2 inet static
address x.x.x.224/28
gateway x.x.x.254
hwaddress ether 02:00:9b:66:00:f6
I have confimed that VM network setup is fine, it only issue related to MAC address. Every time when I change MAC address for eth0 from PVE GUI, then corresponding IP starts working. For example, If I assign "02:F0:00:C0:E0:5F" of primary IP ie. x.x.x.222 to NIC from GUI then this address starts working, rest all stop working. If I again change MAC address asigned to some other IP's associated address then that IP starts working, previous one stops.
Is there workaround for this with changing network mode (ie. keeping vmbr0)