|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
|
|
Copy the device files and folders ( `.network`, `*.network.d` ) that you need to `/etc/systemd/network/`.
|
|
|
|
|
Copy the device files that you need to `/etc/systemd/network/`.
|
|
|
|
|
|
|
|
|
|
Be sure the file-names, folders and configuration values (within the files) are changed to match your devices ([note 1](#Notes)). Wifi (wlan) devices also need wpa_supplicant configured to work.
|
|
|
|
|
|
|
|
|
@ -10,9 +10,9 @@ Say I have eth0 and want network access (and an IP via DHCP) from my router; I w
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
sudo -s # Drop to root.
|
|
|
|
|
cp -rv eth0* /etc/systemd/network/ # Copy the files and folders.
|
|
|
|
|
cp -rv eth0* /etc/systemd/network/ # Copy the files.
|
|
|
|
|
|
|
|
|
|
cp -iv drop-ins/dhcp.conf /etc/systemd/network/eth0.network.d/ # Copy the dhcp drop-in.
|
|
|
|
|
cat examples/dhcp.conf >> eth0.network # Append example dhcp to eth0.network
|
|
|
|
|
|
|
|
|
|
systemctl enable --now systemd-networkd # Enable networkd now.
|
|
|
|
|
|
|
|
|
@ -45,4 +45,4 @@ systemctl enable --now systemd-resolved # Enable resolved now.
|
|
|
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
|
|
|
|
|
**1**: This is very important otherwise things won't work. For example, if you have eth1 and not eth0 you'll have to copy and/or rename `eth0.network` and the folder `eth0.network.d` to `eth1.network` and `eth1.network.d`. Check, and then check again (I'm serious).
|
|
|
|
|
**1**: This is very important otherwise things won't work. For example, if you have eth1 and not eth0 you'll have to copy and/or rename `eth0.network` to `eth1.network`. Check, and then check again.
|
|
|
|
|