After I install Centos 6.8 on my virtual machine, I don’t have a network connection ready for use. Following is the steps that I did to configure my network connection.

  1. Configure DHCP client on the default network interface eth0
    dhclient eth0
  2. Make sure that the networking is enabled
    # cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=xxx.sd.dev
  3. Edit the network config file for the default network interface eth0
    vi /etc/sysconfig/network-scripts/ifcfg-eth0

    with the following value

    ONBOOT=yes
  4. Restart the network service
    service network restart
  5. Make sure that the
    ifconfig
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s