Tuesday, December 1, 2020

Linux - Changing a DHCP for STATIC IP on CentOs8.2

■ 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

3, Restart network (Don't execute the following command on remote)
    $ 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