Installed RHEL 6, but not getting network connection up ?

It's a reported bug for RHEL 6, Follow these steps to get up and running network connection ...

Edit "/etc/sysconfig/network-scripts/ifcfg-eth0" file, which is your defualt first NIC configuration file.

If you are using DHCP server to take IP then, edit it like this;

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


ONBOOT="yes"
BOOTPROTO="dhcp"

Save & restart networking service,

#service network restart               OR
#/etc/init.d/network restart



If you are providing manual IP then, edit it like this;


DEVICE=eth0
           IPADDR=10.10.10.10
           NETMASK=255.255.255.0
           NETWORK=10.10.10.0
GATEWAY=10.10.10.253
           ONBOOT=yes
           BOOTPROTO=none
           USERCTL=no
Save & restart networking service,
#service network restart               OR
#/etc/init.d/network restart
OR you can use simple Network Configuration tool  to configure IP's but the highlighted two lines are compulsory to add manually in the file.
  

Comments

  1. Thanks Ashish! This is a very useful post as there is an issue in RHEL 6.1 network not being stored always when created as a Virtual Machine.

    ReplyDelete
  2. Thanks for sharing this..You have made the procedure so simple...Thanks again..

    -Vimal.

    ReplyDelete
  3. Hello,

    I have RHEL 6.1 installed on Dell R720 server. Upon installation, there is no network device other than lo. ifconfig -a returns only lo. There is no eth0/em0 related file in network-scripts directory. Can you help?

    ReplyDelete
    Replies
    1. Hi Darshan,

      Then you need to install Broadcom Network driver first. Please check "http://www.dell.com/support/drivers/us/en/4/Product/poweredge-r720" website and download respective linus driver.

      -Ashish

      Delete
  4. hello sir,
    I have rhel 6.2 installed in hp proliant ml350 g6 server,there is showing no internet connection on hovering over network icon....
    I have installed all the network drivers in system on running service network start command it is showing as for both network interfaces...
    determining ip info for eth0...... failed
    determining ip info for eth1...... failed
    help me asap....

    ReplyDelete
    Replies
    1. Please check below workaround and let me know if it works ...

      Delete
  5. Hi Deepak,

    Please make below check;

    1. Check connectivity, if using DHCP should have free IP's in pool.
    2. Install/Update proper NIC driver.
    3.Follow above steps mentioned in this page to activate Ethernet interface.

    Again if you are facing the same problem please check "tail -f /var/message" for error while configuring ip address.

    As per above "failed" error message seems your host is unable to get IP address from your DHCP server.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Hi Bhargav,

      Please do below troubleshooting:
      1. Check linux firewall and disable.
      2. Check correct ip scheme with proper gateway and dns.
      3. In linux vm setting make sure "Virtual Network adaptor" setting is proper means either configure proper natting or set bridged connection between vm and your pc/laptop. In Device status check "Connect at power on".

      After this troubleshooting i am sure you will able to ping from both sides.

      Delete
    2. For more information on setting up IP please check out below Oracle documentation :

      http://docs.oracle.com/cd/E37670_01/E41138/html/ol_netconf.html

      Delete
  7. Thanx, simple yet awesome

    ReplyDelete

Post a Comment

Popular posts from this blog

Recover or restore initramfs file in RHEL or CentOS 7

Space reclamation / UNMAP on RHEL or CentOS 7

How to recover /boot partition on RHEL or CentOS 7?