Google Search

Tuesday, December 2, 2014

OEL 6 network configuration setup

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

Setting up Automatic IP:

1.Enter into root user
 
   $su -
  
   Enter password for root user


2. #vi /etc/sysconfig/network-scripts/ifcfg-eth0 (which is your defualt first NIC configuration file)
  
    ONBOOT="yes"
    BOOTPROTO="dhcp"  (If you are using dhcp)


  Save & restart networking service,

3. Restart network
 
     #service network restart (or) #/etc/init.d/network restart
4. Check the ip address by using below commands.
 
     From root user : # ifconifig
    From normal user : $/sbin/ifconfig

Setting up Static/Manual IP:

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.

1.Enter into root user
 
  $su -  
   Enter password for root user


2.Restart network
 
  #service network restart (or) #/etc/init.d/network restart          

3.Check the ip address by using below commands.

  From root user : # ifconifig
  From normal user : $/sbin/ifconfig

For more information regarding this network setup, please read the below URL for clear explanation.
http://oracle-base.com/articles/linux/linux-network-configuration.php

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.
 

No comments:

Post a Comment