Scenes
Check ip address command in CentOs
ip addr
And we can see no relevant information ip.
This is because Centos is not turned on by default card.
Note:
Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.
achieve
First came to under / etc / sysconfig / network-scripts
cd /etc/sysconfig/network-scripts
Ifcfg-ens33 can be seen at this time directory, and then edit this file
vi ifcfg-ens33
It can be seen at this time the card is off by default
Press i build on the keyboard to enter edit mode, change it to true, and then press ESC to exit edit mode, then enter: wq!
Save and Exit
Then restart the service
service network restart
re-enter
ip addr
I can see at this time has the ip address. Here is 192.168.40.133 ip address