1 Mutual Ping Pass: Can not use Nat,nat can only one-way pass, virtual machine can not ping the host, select Bridge:
2 Then set the IP: It is better to set the static IP so next time do not have to change, here we only demonstrate the use of eth0 network card, = "Vi/etc/sysconfig/eth0,
# Intel Corporation 82540EM Gigabit Ethernet controllerdevice=Eth0#bootproto=Dhcptype=ethernetnm_controlled=Yesbootproto=StaticDNS1=192.168.0.1Onboot=yeshwaddr= ,:xx: -: -: F7:a8userctl=Noipv6init=Nonetmask=255.255.255.0ipaddr=192.168.0.105GATEWAY=192.168.0.1
The subnet mask here, the gateway is consistent with my host network card,
DNS1 here also to be consistent (do not set or RESOV.CNF not set is not able to access the domain name), IP can
3 Disable SELinux (for Domain name resolution)
[Email protected] tomener]# Vim/etc/selinux/config
# This file controls the state of the SELinux on the system.
# selinux= can take one of these three values:
# Enforcing-selinux security policy is enforced.
# Permissive-selinux Prints warnings instead of enforcing.
# disabled-no SELinux policy is loaded.
#SELINUX =enforcing
Selinux=disabled (This does not set also can)
# selinuxtype= can take one of these the values:
# targeted-targeted processes is protected,
# Mls-multi level Security protection.
selinuxtype=targeted
This is to change selinux=enforcing to selinux=disabled.
4 after configuration, the network service needs to be restarted: Service network restart. Access to the extranet domain name and interoperability is basically
VBox internal linux:centos5.5 and external ping (mutual), and domain access