Linux Headquarters

I've installed Linux… now what???

Network Configuration Using Red Hat netcfg


Red Hat has two graphical programs for configuring your network, netcfg and linuxconf. I find netcfg to be very easy to use and less prone to errors than linuxconf. However, netcfg will not help you load the module for your ethernet card. You can easily load it through the command line though.

Loading the Network Card Module

Determine the proper module(driver) for your ethernet card:

The list of compiled ethernet card drivers that come with your system are usually located under /lib/modules/2.2.14-5.0/net where 2.2.14-5.0 is your kernel version. The source code for these drivers are usually located at /usr/src/linux-2.2.14/drivers/net again where 2.2.14 is the kernel version you are running. Sometimes the comments at the beginning of the source code file will tell you which ethernet cards the driver is for. Some distributions will find it during installation and automatically load the driver for you. To see if this is the case, view the file /etc/modules.conf or /etc/conf.modules depending on your distribution. If you see a line that looks similar to alias eth0 ne2k-pci, then the third item on the line is the module being used for your ethernet card. In this example, ne2k-pci, the NE2000 driver is being used. To verify the module has been loaded successfully, issue the command /sbin/lsmod. This will display all modules successfully loaded in the system. Once your module is loaded, you are ready to move to the next step.

If the module is not loaded, but you know what module your network card uses, issue the following steps as root:

  1. Make sure the network is stopped by issuing /etc/rc.d/init.d/network stop.
  2. Manually load the module by issuing /sbin/insmod ne2k-pci replacing ne2k-pci with whatever your module is. This module must be present in the /lib/modules/2.2.14-5.0/net directory for lsmod to find it.
  3. Verify it loaded successfully by issuing /sbin/lsmod.
  4. Activate the eth0 device by issuing /etc/rc.d/init.d/network start
  5. Use netcfg to configure your network settings.

Using netcfg


  1. As root, start the program netcfg.
  2. Set the hostname, domain, and DNS nameservers as shown below:
  3. Click Save. Click the Interfaces Button. If eth0 is not listed, Click Add, choose Ethernet, enter your IP address and subnet mask or choose DHCP from the Interface configuration protocol for DHCP. Click Done. It should then look as follows: If eth0 is listed, click Edit to verify the settings and make any necessary changes as shown below:
  4. Click Save. Click the Routing button. Enter the default gateway as shown below: netcfg4
  5. Click Save. Click the Interfaces Button again. Highlight the eth0 line. Click Activate. The status should change from inactive to active if you are successful.
  6. Ping the gateway and other computers on the network to verify settings.
  7. Click Quit to exit netcfg.

What is Related

Comments are closed.

Subscribe to email feed

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube
Free UK Domain Names
Inside iOS Apps TechWench

Technology blog
Cloud Storage Providers List

Linux top news 2012

Linux is known as one of the basic software used ...

Dedicated Linux Serv

Linux is the popular system nowadays, offering all the benefits ...

StarOffice 5.1

Introduction StarOffice 5.1 is a complete office suite with a word ...


Introduction AxY FTP, formerly known as wxFTP, is a graphical FTP ...

Adobe Acrobat PDF Re

Introduction Many of you are probably familar with Adobe Acrobat Reader ...

Twitter updates

No public Twitter messages.