LXC lose sometimes network connection

sinowine

New Member
Jan 29, 2020
10
0
1
34
Berlin
Hello,

I have a problem with my three LXC machines. They lose sometimes the network connection and need a "systemctl restart networking.service" or reboot to work again. All LXC are configured as DHCP with fritzbox as DHCP-Server. All the IPs are fixed in fritzbox web-ui. I use bridged network vmbr0 for all the LXCs.

Can someone help me and can me explain, why only the LXCs lose sometimes the network connection? Should I configure the fritzbox fixed IPs for the LXCs as static IPs in proxmox?

Code:
root@Awtrix:~# systemctl status networking.service
* networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: ena
   Active: failed (Result: timeout) since Mon 2020-04-20 11:25:50 CEST; 6min ago
     Docs: man:interfaces(5)
  Process: 410 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILU
 Main PID: 410 (code=exited, status=1/FAILURE)
    Tasks: 0 (limit: 4915)
   Memory: 7.3M
   CGroup: /system.slice/networking.service

Apr 20 11:25:50 Awtrix dhclient[484]: RCV: Advertise message on eth0 from fe80::464e:6
Apr 20 11:25:50 Awtrix ifup[410]: RCV: Advertise message on eth0 from fe80::464e:6dff:
Apr 20 11:25:50 Awtrix ifup[410]: RCV:  X-- Server ID: 00:03:00:01:44:4e:6d:33:ef:96
Apr 20 11:25:50 Awtrix ifup[410]: PRC: Lease failed to satisfy.
Apr 20 11:25:50 Awtrix systemd[1]: networking.service: Start operation timed out. Term
Apr 20 11:25:50 Awtrix ifup[410]: Got signal Terminated, terminating...
Apr 20 11:25:50 Awtrix ifup[410]: ifup: failed to bring up eth0
Apr 20 11:25:50 Awtrix systemd[1]: networking.service: Main process exited, code=exite
Apr 20 11:25:50 Awtrix systemd[1]: networking.service: Failed with result 'timeout'.
Apr 20 11:25:50 Awtrix systemd[1]: Failed to start Raise network interfaces.
lines 1-20/20 (END)
root@Awtrix:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

iface eth0 inet6 dhcp

root@Awtrix:~# journalctl -u networking.service
-- Logs begin at Mon 2020-04-20 11:02:51 CEST, end at Mon 2020-04-20 11:25:50 CEST. --
Apr 20 11:02:51 Awtrix systemd[1]: Starting Raise network interfaces...
Apr 20 11:02:51 Awtrix dhclient[78]: Internet Systems Consortium DHCP Client 4.4.1
Apr 20 11:02:51 Awtrix dhclient[78]: Copyright 2004-2018 Internet Systems Consortium.
Apr 20 11:02:51 Awtrix ifup[61]: Internet Systems Consortium DHCP Client 4.4.1
Apr 20 11:02:51 Awtrix ifup[61]: Copyright 2004-2018 Internet Systems Consortium.
Apr 20 11:02:51 Awtrix ifup[61]: All rights reserved.
Apr 20 11:02:51 Awtrix ifup[61]: For info, please visit https://www.isc.org/software/d
Apr 20 11:02:51 Awtrix dhclient[78]: All rights reserved.
Apr 20 11:02:51 Awtrix dhclient[78]: For info, please visit https://www.isc.org/softwa
Apr 20 11:02:51 Awtrix dhclient[78]: 
Apr 20 11:02:51 Awtrix dhclient[78]: Listening on LPF/eth0/7a:ae:8a:40:4e:61
Apr 20 11:02:51 Awtrix dhclient[78]: Sending on   LPF/eth0/7a:ae:8a:40:4e:61
Apr 20 11:02:51 Awtrix ifup[61]: Listening on LPF/eth0/7a:ae:8a:40:4e:61
Apr 20 11:02:51 Awtrix ifup[61]: Sending on   LPF/eth0/7a:ae:8a:40:4e:61
Apr 20 11:02:51 Awtrix ifup[61]: Sending on   Socket/fallback
Apr 20 11:02:51 Awtrix ifup[61]: DHCPREQUEST for 192.168.178.45 on eth0 to 255.255.255
Apr 20 11:02:51 Awtrix dhclient[78]: Sending on   Socket/fallback
Apr 20 11:02:51 Awtrix dhclient[78]: DHCPREQUEST for 192.168.178.45 on eth0 to 255.255
Apr 20 11:02:51 Awtrix dhclient[78]: DHCPACK of 192.168.178.45 from 192.168.178.1
Apr 20 11:02:51 Awtrix ifup[61]: DHCPACK of 192.168.178.45 from 192.168.178.1
Apr 20 11:02:51 Awtrix dhclient[78]: bound to 192.168.178.45 -- renewal in 353791 seco
Apr 20 11:02:51 Awtrix ifup[61]: bound to 192.168.178.45 -- renewal in 353791 seconds.
lines 1-23
 
Hi,

I guess the DHCP lease is not renewed any more.
I would set the IP in a static way.
 

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!