■ Changing a DHCP for STATIC IP.
1, Add the static IP information as below
2, Edit or add nameserver 192.168.0.1 into /etc/resolv.conf
$ sudo nmcli networking off
$ sudo nmcli networking on
OR
$ sudo systemctl restart NetworkManager.service
4, Check the logs
$ sudo journalctl -fu NetworkManager
No comments:
Post a Comment