From 59ce672bedadddbd61dde1a3a52398efcb329441 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Fri, 2 Apr 2021 17:39:14 +0700 Subject: [PATCH] feat: add systemd-networkd and systemd-resolved --- Applications/System/systemd-networkd.md | 37 +++++++++++++++++++++++++ Applications/System/systemd-resolved.md | 11 ++++++++ 2 files changed, 48 insertions(+) create mode 100644 Applications/System/systemd-networkd.md create mode 100644 Applications/System/systemd-resolved.md diff --git a/Applications/System/systemd-networkd.md b/Applications/System/systemd-networkd.md new file mode 100644 index 0000000..6c9fbeb --- /dev/null +++ b/Applications/System/systemd-networkd.md @@ -0,0 +1,37 @@ +# [systemd-networkd](https://wiki.archlinux.org/index.php/systemd-networkd) + +## Installation + +Service: `systemd-networkd.service` + +Enable: + +```sh +systemctl enable systemd-networkd.service +``` + +Need [systemd-resolved](Applications/System/systemd-resolved.md). + +## Configuration + +After editing, remember to restart service. + +Wired adapter, edit `/etc/systemd/network/20-wired.network`: + +```txt +[Match] +Name=en* + +[Network] +DHCP=yes +``` + +Wireless adapter, edit `/etc/systemd/network/25-wireless.network`: + +```txt +[Match] +Name=wl* + +[Network] +DHCP=yes +``` diff --git a/Applications/System/systemd-resolved.md b/Applications/System/systemd-resolved.md new file mode 100644 index 0000000..1d3106f --- /dev/null +++ b/Applications/System/systemd-resolved.md @@ -0,0 +1,11 @@ +# [systemd-resolved](https://wiki.archlinux.org/index.php/Systemd-resolved) + +## Installation + +Service: `systemd-resolved.service` + +Enable: + +```sh +systemctl enable systemd-networkd.service +```