Virtual machines minimize the installation of the CentOS 6.8 system and view the contents of the default network configuration file
Cat/etc/sysconfig/network-scripts/ifcfg-eth0
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/8A/08/wKioL1gka3vyn7uAAABsuiPdaLk415.jpg "title=" 01.jpg "alt=" Wkiol1gka3vyn7uaaabsuipdalk415.jpg "/>
To enable normal networking, you need to modify the contents of the network configuration file
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
After the modified network configuration file content is as follows
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/8A/08/wKioL1gkbO6jdtIEAACGHsXIZlU845.jpg "title=" 02.jpg "alt=" Wkiol1gkbo6jdtieaacghsxizlu845.jpg "/>
Where added content is
IPAddr setting the native IP address
NETMASK Setting the subnet mask
Gateway set up Gateways
DNS Settings DNS server address
Where the modified content is
Onboot=no Change to Onboot=yes boot
Nm_controlled=yes Change to Nm_controlled=no
Bootproto=dhcp Change to Bootproto=static
CentOS 6.8 Minimal Configuration network