feat: add systemd-networkd and systemd-resolved

main
Tran Hau 2021-04-02 17:39:14 +07:00
parent c86fe4852c
commit 59ce672bed
2 changed files with 48 additions and 0 deletions

View File

@ -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
```

View File

@ -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
```