DHCP in Proxmox

Mastahh

New Member
Jul 16, 2026
3
0
1
Hello,

I'm very new with Linux.

I try to configure Proxmox to use IP Address which is provided by my DHCP server, where I have configured it as a static IP address.
But I'm not sure that the following configuration is correct


Code:
auto lo
iface lo inet loopback

auto nic0
iface nic0 inet manual

auto vmbr0
iface vmbr0 inet dhcp
    bridge-ports nic0
    bridge-stp off
    bridge-fd 0

iface nic1 inet dhcp

source /etc/network/interfaces.d/*

Code:
root@mox:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: nic0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master vmbr0 state UP group default qlen 1000
    link/ether 58:47:ca:79:e9:3d brd ff:ff:ff:ff:ff:ff
    altname enx5847ca79e93d
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 08:b4:d2:fe:43:2c brd ff:ff:ff:ff:ff:ff
    altname wlx08b4d2fe432c
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 58:47:ca:79:e9:3d brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.10/24 brd 192.168.1.255 scope global dynamic vmbr0
       valid_lft 43124sec preferred_lft 43124sec
    inet6 fe80::5a47:caff:fe79:e93d/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever

I confused why nic0 doesn't have IP while vmbr0 have, I expect that it should be vise versa.
Physical adapter gets IP and provides it to virtual adapter?
 
Hi,

first off - using DHCP with Proxmox VE (and physical servers in general, IMO) isn't really recommended.

I confused why nic0 doesn't have IP while vmbr0 have, I expect that it should be vise versa.
In any case - this is totally expected, as nic0 is attached to the vmbr0 bridge. In such network scenarios, the bridge should have the IP instead of the physical interface.
(You also configured the dhcp method on vmbr0 in your ifupdown2 configuration, FWIW).

This is standard Linux networking with bridges - we have some more detailed documentation about than in our admin guide: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration
 
first off - using DHCP with Proxmox VE (and physical servers in general, IMO) isn't really recommended.
Wouldn't it be more precise to say that PVE on DHCP isn't supported without other tweaks even on single node setups?
Some services require to resolve the host name to an IP that is currently assigned to the host to work properly.
 
So in short I get ip using DHCP, as it is static I just define it manually in hosts?
During PVE install, the ISO installer will try to get an IP from DHCP. If that succeeds, it will configure that IP as static for vmbr0. As you are not very experienced, I suggest that you create a DHCP reservation assigned to the MAC of your PVE pointing to the IP you want to use for it and simply let PVE install with it's default network configuration. If PVE is already installed, simply assign a static IP to it.
 
  • Like
Reactions: Johannes S