Public IP for VM in proxmox with the main IP in the same subnet with IP for VM
I have a server with a /28 IP allocation (100.100.100.96/28 for example). I'd like to setup proxmox for virtual environment. My network model should be like this:
- Gateway: 100.100.100.97
- Main IP for proxmox host: 100.100.100.98
- IP for VMs: 100.100.100.99 ~ 100.100.100.109
After some researches, I found that the below configuration is mentioned a lot:
For proxmox host:
# The primary network interface allow-hotplug eth0 iface eth0 inet static address 100.100.100.98 netmask 255.255.255.240 gateway 100.100.100.97 # The bridge auto vmbr0 iface vmbr0 inet static address 100.100.100.98 netmask 255.255.255.255 bridge_ports none bridge_stp off bridge_fd 0 up ip route add 100.100.100.99/32 dev vmbr0 down ip route del 100.100.100.99/32 dev vmbr0 ...
And for VM:
IP: 100.100.100.98 Netmask: 255.255.255.255
My VM is Windows VM. With these configuration, I can ping from my Windows VM to proxmox host but cannot get internet connection. Did I do something wrong? Please help me clear a bit.
Thank you in advance.