DHCP Network Interface for VM

professorx

New Member
Feb 17, 2024
1
0
1
Hi,

I'm having some trouble configuring the DHCP network interface with Proxmox VMs.
Here is my network setup.

Baremetal Server comes with ESXi 7 with one network interface (promiscuous mode enabled for vSwitch0).
Here, I create two VMs. One pfSense 2.7.2 and Proxmox 8.1-2

ESXi Has two port groups named Public and Private.
Both port groups are attached with pfSense and Proxmox. Later proxmox was configured with a Static Public IP address, like following

Bash:
auto lo
iface lo inet loopback


iface ens192 inet manual


iface ens224 inet manual


auto vmbr0
iface vmbr0 inet static
        address XXX.YYY.ZZZ.92/29
        gateway XXX.YYY.ZZZ.89
        bridge-ports ens192
        bridge-stp off
        bridge-fd 0
#Public Network

auto vmbr1
iface vmbr1 inet manual
        bridge-ports ens224
        bridge-stp off
        bridge-fd 0
#pfSense DHCP LAN

Here ens224 is basically a LAN of pfSense, and ens192 is the public network port group.
Now, I am able to get public IP to Proxmox Host, and if I attach only the DHCP interface, it gets the DHCP IP address from pfSense.
However, when I attach the same DHCP interface with any VM, it never gets any DHCP IP.

I also tested with the following configuration, but no luck.

Bash:
auto vmbr1
iface vmbr1 inet dhcp
        bridge-ports ens224
        bridge-stp off
        bridge-fd 0
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
#pfSense DHCP LAN

I wonder what the issues could be.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!