CentOS6.5 Network Settings
Do not know where to do wrong, long time unable to connect to the network, Baidu has a variety of or not. Finally I extracted the previously can be networked configuration paste over, success. The contents of the configuration file are as follows:
Vim/etc/resolv.conf
1 generated By/sbin/dhclient-script
2 Search Localdomain
3 nameserver 192.168.75.2
[Email protected] ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
1 # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
2 Device=eth0
3 BOOTPROTO=DHCP
4 Hwaddr=00:0c:29:1e:f1:e3
5 Onboot=yes
~
In addition: online to find a few of the jokes strategy, once successful, but this time and death failure, unknown reason, anyway, according to the above changes after OK, for the search content:
The correct configuration method is as follows:
1. Ensure that the virtual network card (VMware Network Adapter VMnet8) is turned on, and then enter "ipconfig" on the Windows command line to find the VMware network Adapter VMnet8 IPv4 Address for example: 192.168.78.1)
2. See if the network configuration for CentOS in the virtual machine is NAT
3. Modify the/etc/sysconfig/network-scripts/eth0 file
The IP value of the broadcast is consistent with the IP in the VMNET8 and the last one must be 255
The IP value of the IPADDR is consistent with the IP in the VMNET8 and the last one must be an arbitrary value of 1~255
The IP value of the Getway is consistent with the IP in the VMNET8 and the last one is 2
eg
My native IP is 192.168.78.1, then the correct configuration is:
broadcast=192.168.78.255
ipaddr=192.168.78.1
getway=192.168.78.2
4. After the configuration is complete, please enter the command "service network restart" To restart the network service.
5. Use the "ping" command to see if the network is already available.
Above is the introduction of the solution that CentOS6.5 cannot connect to the network in VMware, if you also encounter the same problem, you may try to use the method described in this article to resolve, the eth0 file to reconfigure.
CentOS6.5 Network Settings