From: Yu Watanabe Date: Sat, 4 Mar 2023 05:57:10 +0000 (+0900) Subject: man: add an example to (re-)apply new settings to a network interface X-Git-Tag: v254-rc1~1122^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F26668%2Fhead;p=thirdparty%2Fsystemd.git man: add an example to (re-)apply new settings to a network interface Closes #26601. --- diff --git a/man/systemd.link.xml b/man/systemd.link.xml index 1aa93fb05e1..546a6a006b2 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -1140,6 +1140,23 @@ Name=dmz0 99-default.link, i.e. it needs a numerical prefix, to have any effect at all. + + (Re-)applying a .link file to an interface + + After a new .link file has been created, or an exisiting .link file modified, the new settings + may be applied to the matching interface with the following commands: + + $ sudo udevadm control --reload +$ sudo ip link set eth0 down +$ sudo udevadm trigger --verbose --settle --action add /sys/class/net/eth0 + + You may also need to stop the service that manages the network interface, e.g. + systemd-networkd.service or NetworkManager.service before + the above operation, and then restart the service after that. For more details about + udevadm command, see + udevadm8. + + Debugging <varname>NamePolicy=</varname> assignments