====== No DCHPOFFERS received ====== Host network was changed to use bond0 as vmbr0 interface. 01:00.0 Ethernet controller: Emulex Corporation OneConnect 10Gb NIC (be3) (rev 02) 01:00.1 Ethernet controller: Emulex Corporation OneConnect 10Gb NIC (be3) (rev 02) Now problems appears - guests (LXCs and VMs) cannot obtain IP address: dhclient[478]: DHCPDISCOVER on ens18 to 255.255.255.255 port 67 interval 7 dhclient[478]: DHCPDISCOVER on ens18 to 255.255.255.255 port 67 interval 14 dhclient[478]: DHCPDISCOVER on ens18 to 255.255.255.255 port 67 interval 10 dhclient[478]: DHCPDISCOVER on ens18 to 255.255.255.255 port 67 interval 10 dhclient[478]: DHCPDISCOVER on ens18 to 255.255.255.255 port 67 interval 19 dhclient[478]: DHCPDISCOVER on ens18 to 255.255.255.255 port 67 interval 1 dhclient[478]: No DHCPOFFERS received. tcpdumping- on vmbr0 and guest tap interface shows that DHCP server replies with offer, but offer is not forwarded into guest. When guest is set to use static IP, everything works smoothly. ===== Workaround ===== Disable MAC learning on bridge. Now it behaves like hub, and every packet will be passed to every port. brctl setageing vmbr0 0 Once MAC learning is turned off, a Linux bridge will flood every incoming packet to the rest of the ports. Understand this implication before proceeding. auto vmbr0 iface vmbr0 inet manual bridge-ports bond0 bridge-stp off bridge-fd 0 bridge-ageing 0 bridge-vlan-aware yes bridge-vids 2-4094 ===== Solution ===== Upgrade Emulex OC11 card firmware to recent version. More here: [[hw:server:10gbe#firmware]] ====== References ====== Important: - [[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1946028|DHCP Offer not traversing linux bridge]] - "Ok, I should have waited for the firmware upgrade before posting this. They seemed to be pretty outdated, went from FW v10.2.377.29 to v11.4.1186.4 And............... drum roll......... it worked. Fixed the problem." Others: - [[https://forum.proxmox.com/threads/guest-promisc.25090/#post-125788|guest promisc]] - [[https://forum.proxmox.com/threads/vm-push-eth-into-promisc-mode.5245/#post-37741|VM-push eth into promisc mode]] - [[https://forum.proxmox.com/threads/my-bridge-does-not-work.4726/page-2#post-31207|My bridge does not work]] - [[https://forum.proxmox.com/threads/be2net-driver.5275/#post-30345|]] - [[http://www.linux-kvm.org/page/HOWTO_BONDING|NIC Bonding]] - [[https://forum.proxmox.com/threads/network-sensor-monitor-session-promiscuous.37845/#post-434741|Network Sensor (monitor session - promiscuous)]] - [[https://forum.proxmox.com/threads/send-mirrored-traffic-into-guest-vm.48002/#post-225399|Send mirrored traffic into guest vm]]