VBox internal linux:centos5.5 with external pings (mutual), and domain access

Source: Internet
Author: User
Tags pings

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.