Thursday, July 4, 2013

Networking issues in centos


Check whether the network interface is there(eg:/etc/sysconfig/network-scripts/ifcfg-eth0). If not create it. The necessary entries in the file are given below.

Code: [Select]
DEVICE=eth0
HWADDR=<value>
IPADDR=<value>
NETMASK=<value>
ONBOOT=yes

Then, you need to check whether the file "/etc/sysconfig/network" is present. If it is not, create it. The necessary entries are given below.

Code: [Select]
NETWORKING=yes
GATEWAYDEV=<value> normally eth0 or venet0
HOSTNAME=<value>

In most cases, if these entries are there, the networking should be up and working when you issue the command "/etc/init.d/network/restart".

If you are still seeing errors, then you should chek whether the respective NIC drivers are loaded. The issue can be caused due to some Kernals where networking is not supported. In such cases, you can try another kernal.

No comments:

Post a Comment