[Bug 1776013] Re: systemd-networkd: DHCP lease lost (Ubuntu 18.04)

2021-04-25 Thread Dmitriy Altuhov
To fix it with cloud-init we need to create an override-file for netplan
like this:

/etc/netplan/99-critical-dhcp.yaml
network:
version: 2
ethernets:
ens2:
dhcp4: true
critical: true

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776013

Title:
  systemd-networkd: DHCP lease lost (Ubuntu 18.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1776013/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1776013] Re: systemd-networkd: DHCP lease lost (Ubuntu 18.04)

2019-08-02 Thread Wladimir Mutel
The problem I had was not related to netplan, networkd or dhcp client of any 
kind.
I had both my ISP links connected to a VLAN switch DLink DGS-1100-08 and 
multiplexed to a single Linux router interface with different VLAN numbers. 
On Linux side, vlan.NNN interfaces were configured to separate each ISP traffic 
by its VLAN number. 
These interfaces were managed by separate DHCP clients, requesting dynamic IPs 
from their corresponding ISP.
Both ISPs had a policy permitting only a single MAC address to request a DHCP 
lease on a single customer's port. 
And this was combined with the fact that for some Ethernet protocols, DLink 
VLAN switches of this model do not obey VLAN isolation rules. 
In part, among them were DLink's own discovery & loobpack detection protocols 
(Ether.proto number = 0x9000, using multicast MAC addresses prefixed with CF: 
byte). 
My both ISPs had a plenty of DLink hardware in their Ethernet segments, and my 
DLink switch inadvertently served as a bridge for DLink discovery packets, 
allowing them to fly freely between two VLANs. 
Which of course was detected by each other ISP's policy as 'stray MACs' on a 
single customer port, and caused my real MAC to be temporarily kicked out from 
their valid MAC set, which subsequently caused DHCP lease loss.
What resolved by problem once and for all, was installing dual-port PCIe 
Gigabit Ethernet adapter into my Linux router and physically plugging my ISP 
links into its separate ports.
Detailed discussion can be seen at 
http://forums.dlink.com/index.php?topic=74704.0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776013

Title:
  systemd-networkd: DHCP lease lost (Ubuntu 18.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1776013/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1776013] Re: systemd-networkd: DHCP lease lost (Ubuntu 18.04)

2019-08-01 Thread Nagarjuna Manchineni
Hi All,

I know the issue is closed. However, I am observing this issue. I am on
a network where the DHCP lease time out occurs every 24 hours and
whenever that happens my network gets restarted. Due to this I am
loosing some of my IP route entries which in turn causes failures to my
application.

I have tried multiple workarounds like the one that has been suggested
above (critical connection). However, none of them helped in resolving
the issue. Currently I moved from Ubuntu 18.04 to Ubuntu 16.04
temporarily.

If someone who already has a solution or any pointers that could resolve
this network restart issue that would be helpful to others like me.

TIA!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776013

Title:
  systemd-networkd: DHCP lease lost (Ubuntu 18.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1776013/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1776013] Re: systemd-networkd: DHCP lease lost (Ubuntu 18.04)

2018-06-10 Thread Dimitri John Ledkov
Yes, the critical connection is the option to use in this case.

You may also check the leases themselves in /run/systemd/netif/leases
and check if the T1/T2/Lifetime are sensible, with each subsequent one
higher than the prior. And if not, contact your ISP support to correct
those.


** Changed in: systemd (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776013

Title:
  systemd-networkd: DHCP lease lost (Ubuntu 18.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1776013/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1776013] Re: systemd-networkd: DHCP lease lost (Ubuntu 18.04)

2018-06-10 Thread Dimitri John Ledkov
netwokrd backend documentation:

https://www.freedesktop.org/software/systemd/man/systemd.network.html#CriticalConnection=

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776013

Title:
  systemd-networkd: DHCP lease lost (Ubuntu 18.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1776013/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1776013] Re: systemd-networkd: DHCP lease lost (Ubuntu 18.04)

2018-06-09 Thread Wladimir Mutel
ok, I installed netplan.io 0.37.1 from Ubuntu Cosmic and set 'critical: true' 
for my ISP connection
will check how it will be going after that.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776013

Title:
  systemd-networkd: DHCP lease lost (Ubuntu 18.04)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1776013/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs