Know CentOS7 IP address

LinkSprite Vision Sense VMS runs on Centos 7.9, and Centos minimal installation is recommended. After the bare minimal installation, and the first time reboot, we can use the command:

$ip addr

to find out the IP address.

We found that sometimes, the IP is not assigned by the router.

We can use

$sudo dhclient

to manually obtain the IP address. If successfully, that means we need to configure automatically to obtain IP address by:

vim /etc/sysconfig/network-scripts/ifcfg-enp0s31f6 

and change ONBOOT=yes