Network configuration CentOS 7

VM installation CentOS7, found that even without the Internet! Pit ah! ! ! ! !

ping www.baidu.com

Error: www.baidu.com: Name or service not known

Below that the following solutions:

1 is a network configuration selection mode NAT

2.VM menu: Edit -> Virtual Network Editor

3.NAT setting interface:

4.shell enter ip addr, remember the name of the red box

5.vi / etc / sysconfig / network-scripts / ifcfg-ens33 follows:

6.vi /etc/resolv.conf follows:

7.vi / etc / sysconfig / network as follows:

8.service network stop

9.service network start

10.ping www.baidu.com

Through it! ! ! ! ! ! ! Burst into tears!

 

Guess you like

Origin blog.csdn.net/datuzijean/article/details/86682209