This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:configure_networking_and_hostname_resolution_statically_or_dynamically [2018/03/18 16:13]
billdozor [Hostname Configuration]
linux_wiki:configure_networking_and_hostname_resolution_statically_or_dynamically [2019/05/25 23:50] (current)
Line 202: Line 202:
 \\ \\
 **Add DNS** (not replace) for eth0 with nmcli or with config file **Add DNS** (not replace) for eth0 with nmcli or with config file
-  * Using nmcli<code bash>+  * nmcli method<code bash>
 nmcli con show nmcli con show
 (observe NAME field) (observe NAME field)
 nmcli con mod "System eth0" +ipv4.dns</code> nmcli con mod "System eth0" +ipv4.dns</code>
-  * Edit files directly<code bash>+  * Edit files directly method<code bash>
 vim /etc/sysconfig/network-scripts/ifcfg-eth0 vim /etc/sysconfig/network-scripts/ifcfg-eth0
 DNS1=</code> DNS1=</code>
-  * Apply changes: restart NetworkManager or issue nmcli command +  * Apply changes: Issue nmcli command or restart NetworkManager 
-  * nmcli method<code bash>nmcli con up eth0 +    * nmcli method<code bash>nmcli con up eth0</code> 
-  * Service restart<code bash>systemctl restart NetworkManager</code>+    * Service restart<code bash>systemctl restart NetworkManager</code>
 ---- ----
  • linux_wiki/configure_networking_and_hostname_resolution_statically_or_dynamically.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)