Skip to content

Commit cfe52e4

Browse files
authored
DLPX-79034 systemd-networkd releases its DHCP lease on restart (#358)
1 parent d336c0c commit cfe52e4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# See systemd.network(5) for a description of KeepConfiguration. We make this
3+
# change here because the default behavior of systemd-networkd starting in
4+
# Ubuntu 20.04 is to release a DHCP lease upon stopping systemd-networkd (even
5+
# in the context of a restart). The impact of this is that the system's
6+
# default route and IP address are removed, and then added back again when the
7+
# service is started back up, resulting in a brief loss of network
8+
# connectivity. Delphix, being a critical piece of infrastructure, cannot
9+
# afford brief loss of connectivity. We thus change the KeepConfiguration
10+
# setting so that systemd-networkd does not release the lease on stop.
11+
#
12+
13+
[Match]
14+
Name=*
15+
16+
[Network]
17+
KeepConfiguration=dhcp-on-stop

0 commit comments

Comments
 (0)