Proxmox CT don't get DHCP via LACP

Netwerkfix

New Member
May 17, 2023
29
2
3
friendlywaf.com
Hi,

We have a Proxmox lab with 3 servers in a cluster, that have 4 ethernet port on each server configured in LACP we passthrough our vlans true this LACP to VMs and LXC container but VM get dhcp lease of firewall but not our CT/LXC container see below more details :)
 

Attachments

  • Screenshot 2023-05-22 093728.png
    Screenshot 2023-05-22 093728.png
    129 KB · Views: 17
  • Screenshot 2023-05-22 093813.png
    Screenshot 2023-05-22 093813.png
    90.4 KB · Views: 17
  • Screenshot 2023-05-22 093913.png
    Screenshot 2023-05-22 093913.png
    115.7 KB · Views: 17
I found the issue if I create a LXC container clean install set it up to dhcp and start it I first then got no DHCP IPV4 so I Ask a guy at work for search to issue and it was fix by running

root@container-name$ dhclient

this command dhclient I run and get a DHCP IPv4 and works I can get packages from Web so I made a Script bash

---------------------------------------------------------
#!/bin/bash
######################################################
#### WARNING PIPING TO BASH IS STUPID: DO NOT USE THIS
######################################################
# TESTED ON UBUNTU 22.04.2 LTS on Proxmox (LXC DHCP Fix)

if [ `id -u` -ne 0 ]; then
echo Need sudo
exit 1
fi

set -v

clear
sleep 2
dhclient

--------------------------------------------------------


see that this script auto run as service if you got same issue ;)
 
  • Like
Reactions: _gabriel

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!