From d86b7d56a24c2f4f34c5e6eb0726785926ec6755 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Tue, 7 Feb 2023 03:04:32 +0100 Subject: [PATCH] Added article about how to renew a DHCP lease --- .vscode/settings.json | 1 + knowledge base/dhclient.md | 20 +++++++++++++++++ knowledge base/renew the ip address lease.md | 23 ++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 knowledge base/dhclient.md create mode 100644 knowledge base/renew the ip address lease.md diff --git a/.vscode/settings.json b/.vscode/settings.json index c3e1c4a..2603061 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,7 @@ "btrfs", "cereda", "chezmoi", + "dhclient", "diffpdf", "dkms", "dpkg", diff --git a/knowledge base/dhclient.md b/knowledge base/dhclient.md new file mode 100644 index 0000000..c12f567 --- /dev/null +++ b/knowledge base/dhclient.md @@ -0,0 +1,20 @@ +# Dhclient + +## TL;DR + +```sh +# Renew a DHCP lease. +sudo dhclient -v +sudo dhclient eth0 + +# Release a DHCP lease. +sudo dhclient -r eth0 +``` + +## Further readings + +- [Force the DHCP client to renew the IP address in Linux] + + + +[force the dhcp client to renew the ip address in linux]: https://www.cyberciti.biz/faq/howto-linux-renew-dhcp-client-ip-address/ diff --git a/knowledge base/renew the ip address lease.md b/knowledge base/renew the ip address lease.md new file mode 100644 index 0000000..8f3a828 --- /dev/null +++ b/knowledge base/renew the ip address lease.md @@ -0,0 +1,23 @@ +# Renew the IP address lease + +## TL;DR + +```sh +# Renew the lease. +sudo dhclient -v +sudo dhclient eth0 + +# Release the lease. +sudo dhclient -r eth0 +``` + +## Further readings + +- [Force the DHCP client to renew the IP address in Linux] +- [dhclient] + + +[dhclient]: dhclient.md + + +[force the dhcp client to renew the ip address in linux]: https://www.cyberciti.biz/faq/howto-linux-renew-dhcp-client-ip-address/