Centos6.6 network configuration and ways for virtual machines to communicate with native Ping
This article mainly explains "Centos6.6 network configuration and virtual machine and native Ping communication". The explanation in this article is simple and clear and easy to learn and understand. Please follow the editor's train of thought to study and learn "Centos6.6 network configuration and virtual machine and native Ping communication".
DEVICE=eth0
HWADDR=00:0C:29:17:47:9A
TYPE=Ethernet
UUID= ellipsis
ONBOOT=yes / / centos6.x version defaults to no, while 5.x version defaults to yes. No must be changed to yes.
NM_CONTROLLED=yes
BOOTPROTO=static / / dynamic address = dhcp, static address = static, none value is generally not used
IPADDR=192.168.1.45
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=114.114.114.114
DNS2=8.8.4.4
IPV6INIT=no / / do not use IPV6INIT
-
In the local adapter, the IP address of the modified VMnet8 is 192.168.1.67 and the mask is 255.255.255.0. The gateway does not need to be set.
The local connection IP can be set to the same network segment.
Be careful not to disable the ICMP protocol
The virtual machine network adapter is bridged: directly connected to the physical network, there is no need to check to copy the physical network connection status.
Thank you for your reading. the above is the content of "Centos6.6 network configuration and virtual machine and native Ping communication". After the study of this article, I believe you have a deeper understanding of Centos6.6 network configuration and virtual machine and native Ping communication, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!