summaryrefslogtreecommitdiff
path: root/man/systemd.link.xml
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-03-04 14:57:10 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-04 20:07:56 +0900
commit181d719542fb00ec4cc25d7f857cf82dae8e961f (patch)
tree66b0380f0b328af5d501fcd9f0f623e6596a81f1 /man/systemd.link.xml
parent9b7f499ff145b54d42ad8b32cf2ab27cf23cb401 (diff)
downloadsystemd-181d719542fb00ec4cc25d7f857cf82dae8e961f.tar.gz
man: add an example to (re-)apply new settings to a network interface
Closes #26601.
Diffstat (limited to 'man/systemd.link.xml')
-rw-r--r--man/systemd.link.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/man/systemd.link.xml b/man/systemd.link.xml
index 1aa93fb05e..546a6a006b 100644
--- a/man/systemd.link.xml
+++ b/man/systemd.link.xml
@@ -1141,6 +1141,23 @@ Name=dmz0</programlisting>
</example>
<example>
+ <title>(Re-)applying a .link file to an interface</title>
+
+ <para>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:</para>
+
+ <programlisting>$ sudo udevadm control --reload
+$ sudo ip link set eth0 down
+$ sudo udevadm trigger --verbose --settle --action add /sys/class/net/eth0</programlisting>
+
+ <para>You may also need to stop the service that manages the network interface, e.g.
+ <filename>systemd-networkd.service</filename> or <filename>NetworkManager.service</filename> before
+ the above operation, and then restart the service after that. For more details about
+ <command>udevadm</command> command, see
+ <citerefentry><refentrytitle>udevadm</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
+ </example>
+
+ <example>
<title>Debugging <varname>NamePolicy=</varname> assignments</title>
<programlisting>$ sudo SYSTEMD_LOG_LEVEL=debug udevadm test-builtin net_setup_link /sys/class/net/hub0