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.
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="126.96.36.199" DNS2="188.8.131.52"
Run command to restart network service
service network restart
Run command to update system
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
Run command to stop firewall
service iptables stop
It works now.