DHCP VLAN Bridge hangs on boot and won't get an ip

Prexonote

New Member
Jun 18, 2020
3
0
1
30
Hi

I'd like to have my hypervisor on a trunk port and the management UI reachable from SERVER VLAN.

I could set this up with a static ip like this :

Code:
root@proxmox-1:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp0s25 inet manual


auto vmbr0
iface vmbr0 inet manual
    bridge-ports enp0s25
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

auto vmbr0.10
iface vmbr0.10 inet static
    address 192.168.10.2/24
    gateway 192.168.10.1
    vlan_raw_device vmbr0

But as soon as I switch the vmbr0.10 to DHCP, boot hangs on "Raise network interfaces" and the server won't get an IP.

Code:
root@proxmox-1:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enp0s25 inet manual


auto vmbr0
iface vmbr0 inet manual
    bridge-ports enp0s25
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

auto vmbr0.10
iface vmbr0.10 inet dhcp
    vlan_raw_device vmbr0


However, it instantly gets an ip when I run dhclient vmbr0.10

What can cause this hang/failed dhcp ? Bridge VLANs are raised before bridges ?
 
Running apt install ifupdown2 wants to remove proxmox-ve package (I guess because it's removing ipupdown and it's a dependency). Great product.
 
Running apt install ifupdown2 wants to remove proxmox-ve package (I guess because it's removing ipupdown and it's a dependency). Great product.
mmmn this is not normal. Are you sure to install ifupdown2 from proxmox repo and not debian repo ?

Are you sure to have proxmox repository correctly setup ? (if you don't have license, you need to install no-subscription repository)
https://pve.proxmox.com/wiki/Package_Repositories