How to get Windows VMs their own IP address over the bridge ?

prokash

New Member
Mar 28, 2025
3
0
1
<<Env: Wireless router 192.168.0.1, DHCP >>
<<This is the configuration vmbro>>
auto vmbr0
iface vmbr0 inet static
address 192.168.100.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.100.0/24' -o wlp2s0f0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.100.0/24' -o wlp2s0f0 -j MASQUERADE

Only one WinVM gets a valid IP address. If I clone this VM, then depending on which one I start first is the one having valid ip address. Others don't have valid address...

How to get all the VMs having ip addesses over the bridge ?

ALV-UjVJKMh_a0rrV9sn0VrKulDi4B58tZaEwuQRL73GlaBTD-4EXL0=s40-p

Prokash Sinha <prokashs@gmail.com>

to me
cleardot.gif
[td]
5:01 AM (0 minutes ago)
[/td]​
[td]
cleardot.gif

cleardot.gif

cleardot.gif
[/td]​
Ethernet adapter Ethernet 4:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::a14c:883e:a7a7:8b13%17
IPv4 Address. . . . . . . . . . . : 192.168.100.12
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.100.1

C:\Windows\system32>ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from
8.8.8.8: bytes=32 time=28ms TTL=57
Reply from
8.8.8.8: bytes=32 time=17ms TTL=57
Reply from
8.8.8.8: bytes=32 time=27ms TTL=57

 
I tried to change local VM's network setup ( all static addresses , say for one 192.168.100.14). But did not take it.
 
auto vmbr0
iface vmbr0 inet static
address 192.168.100.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.100.0/24' -o wlp2s0f0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.100.0/24' -o wlp2s0f0 -j MASQUERADE

Your configuration does not look exactly like the documentation: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_masquerading
WiFi is not support but maybe you can look at some the threads on this forum about it? It can work with NAT and maybe you can compare your settings against those threads?
There is also a specialized sub-forum about networking: https://forum.proxmox.com/forums/proxmox-ve-networking-and-firewall.17/
 
Your configuration does not look exactly like the documentation: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_masquerading
WiFi is not support but maybe you can look at some the threads on this forum about it? It can work with NAT and maybe you can compare your settings against those threads?
There is also a specialized sub-forum about networking: https://forum.proxmox.com/forums/proxmox-ve-networking-and-firewall.17/
Thanks much Leesteken. I looked at it before, will look again... But NAT should work the way vmbr0 is set. As mentioned before, first VM to start does take the static ip, rest of the VMs with static ip defined does not take anything...
 
But NAT should work the way vmbr0 is set.
But you need additional stuff in /etc/network/interfaces (and please use CODE-tags). Maybe you need the addition postup as mentioned in the manual.
As mentioned before, first VM to start does take the static ip,
Which static IP? The IP address of the bridge is the IP address for Proxmox (on that bridge).
rest of the VMs with static ip defined does not take anything...
I don't understand what "taking a static ip" means, sorry.

WiFi often does not work. Maybe you need tunneling through the single IP address instead of simple NAT? I'm no expert. The experts might hang out in the other sub-forum.