You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eric Steed edited this page Sep 18, 2023
·
2 revisions
Linux Networking
NetworkManager
Allow use of non-DHCP DNS servers in /etc/resolv.conf nmcli con mod ens192 ipv4.ignore-auto-dns yes
Set DNS servers in /etc/resolv.conf nmcli con mod ens192 ipv4.dns "192.168.1.210 8.8.8.8"
Set domain search string in /etc/resolv.conf nmcli con mod ens192 ipv4.dns-search "g00se.net"
Set IP, Netmask and Gateway using NetworkManager nmcli con mod ens192 ipv4.addresses 192.168.1.3/24 nmcli con mod ens192 ipv4.gateway 192.168.1.1
Set static mode for NIC nmcli con mod ens192 ipv4.method manual
Restart NetworkManager after making changes to apply them systemctl restart NetworkManager
All at once: nmcli con mod ens192 ipv4.ignore-auto-dns yes nmcli con mod ens192 ipv4.dns "192.168.1.210 8.8.8.8" nmcli con mod ens192 ipv4.dns-search "g00se.local" nmcli con mod ens192 ipv4.addresses 192.168.1.1/234 nmcli con mod ens192 ipv4.gateway 192.168.1.47 nmcli con mod ens192 ipv4.method manual systemctl restart NetworkManager