Windows VMs with SNAT and DHCP recognizing new networks on each reboot

Urxus

New Member
Feb 29, 2024
2
2
3
I'm encountering an issue with my Windows guests. After every reboot, they report connecting to a new network. I suspect this happens because the MAC address of the gateway changes with each restart.

I followed the guide on the Proxmox wiki for creating a simple zone with SNAT and DHCP https://pve.proxmox.com/wiki/Setup_Simple_Zone_With_SNAT_and_DHCP:
  • I've set up a simple zone under SDN, with IPAM set to pve
  • I've created a vnet and a subnet
  • I'm unable to find a way to set a static MAC address for the gateway, either through the GUI or CLI
  • I've tried adding the line hwaddress ether 00:11:22:33:44:55 to /etc/network/interfaces.d/sdn but to no avail
Is there a way to solve this issue within a simple zone, or should I consider different types of zones?
Thanks in advance for your help.
 
  • Like
Reactions: _gabriel
Thank you,
I tried again adding hwaddress ether 00:11:22:33:44:55 to /etc/network/interfaces.d/sdn. This time it worked as expected.
I may have overlooked something in my first attempt.
 
  • Like
Reactions: _gabriel