diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-04 06:57:10 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-04 12:07:56 +0100 |
commit | 181d719542fb00ec4cc25d7f857cf82dae8e961f (patch) | |
tree | 66b0380f0b328af5d501fcd9f0f623e6596a81f1 /man/systemd.link.xml | |
parent | man: sync the default .link file in example (diff) | |
download | systemd-181d719542fb00ec4cc25d7f857cf82dae8e961f.tar.xz systemd-181d719542fb00ec4cc25d7f857cf82dae8e961f.zip |
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.xml | 17 |
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 |