Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion tasks/networkmanager-nmcli-configure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,22 @@ using a command-line interface: <command>nmcli</command> or ncurses interface:
</listitem>
</itemizedlist>
</step>
<step><para>Configure <filename>NetworkManager-wait-online.service</filename> to enable the service to wait until statically configured IPv4 and IPv6 addresses are ready.</para>
<substeps>
<step><para>Enable <filename>NetworkManager-wait-online.service</filename>.</para>
<screen>&prompt.sudo;systemctl enable NetworkManager-wait-online.service</screen>
</step>
<step>
<para>For each service, create a systemd unit override that sets <literal>After=network-online.target</literal> in the <literal>[Unit]</literal> section. Also, restart services as some services require restart.</para>
<screen>/etc/systemd/system/sshd.service.d/override.conf
[Unit]
After=network-online.target

[Service]
Restart=always
</screen>
</step>
</substeps></step>
<step><para>Activate the profile:</para>
<screen>&prompt.sudo;nmcli connection up <replaceable>CONNECTION_NAME</replaceable></screen>
</step>
Expand Down Expand Up @@ -136,7 +151,6 @@ the Wi-Fi.</para>
</para>
<screen>&prompt.sudo;nmcli connection modify <replaceable>WI-FI_CONNECTION_NAME</replaceable> ipv6.method manual ipv6.addresses <replaceable>IP_ADDRESS/SUBNET_MASK</replaceable></screen>
</step>

<step><para>Restart the connection:</para>
<screen>&prompt.sudo;nmcli connection up <replaceable>WI-FI_CONNECTION_NAME</replaceable></screen>
</step>
Expand Down