Centos ip view does not display the address problem

Enter ip query name ip addr

It is found that ens33 does not have the inet attribute, so it is impossible to connect to the virtual machine through the IP address.

Then look at the configuration of the ens33 network card: vi /etc/sysconfig/network-scripts/ifcfg-ens33

Change this to YES (ONBOOT=yes)

Then restart the network service: sudo service network restart

Then we enter the ip addr command again

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325641983&siteId=291194637