For testing purpose, I need a CentOS 6.3. So I download CentOS DVD image. Installed it in VirtualBox as web server.
Note: The network of guest system is using bridged, which allow the guest access internet, and also allow the computer in Lan can access the guest system.
The installation is simple, no problem. I would like to share my experience I met later.
1) Prepare the network
Only lo, or loopback is active. I can not access Internet from the CentOS.
eth0 is not showing when I run ifconfig command.


Run command

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Change the content base on the below.

DEVICE="eth0"
BOOTPROTO="static"
HWADDR="08:00:27:6C:19:92"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="53e6cd01-d0dd-4d30-93a1-46b67308bde2"
IPADDR="192.168.100.205"
BROADCAST="255.255.255.0"
NETWORK="192.168.100.0"
GATEWAY="192.168.100.1"
IPV6INIT="no"
IPV6_AUTOCONF="no"
DNS1="8.8.8.8"
DNS2="8.8.4.4"

Run command to restart network service

service network restart

Run command to update system

yum update

2) Access guest system from other computer in LAN
I can not access it from browser, when I enter the ip address, timeout, but ssh is OK. It means something block the connection.
Run command to disable selinux

setenforce 0

Run command to stop firewall

service iptables stop

It works now.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *