Linux operating system network card installation guide (on)

  
                              


Linux support for NICs is better than other hardware. XteamLinux 4.0 can automatically identify common NICs. You only need to enter IP address, subnet mask and other related information according to the prompts. The installation can be completed. If Linux does not recognize your network card, you will need to download the driver for the network card. Below we will detail the steps to manually configure the NIC.

Step1: Preparation before driving


First, let's first confirm what chip the NIC uses. The easiest way to identify it is to look at the largest chip on the NIC. What is the type of chip written), write down your network card name, chip name.

Step2: Download and compile the driver

If Linux does not support your network card chip, then you have to find its driver. To find drivers, please refer to the following website:

http://www.linhardware.com/

http://cesdis.gsfc.nasa.gov/linux/drivers/

http://www.drivershq.com

http://www.mrdriver.com

http://www.totallydrivers.com

If found The .c driver is compiled with gcc:

gcc-DMODVERSIONS-DMODULE-D_KERNEL_ -Wall -Wstrict-prototypes

-O6 -c driver.c

This will generate a .o file with the same name in the current directory. This is the driver module. Of course, if the driver you downloaded is .o, you can use it without compiling, but it may be different because the Linux kernel used to compile this module is different from your Linux kernel. If you have successfully completed, you can copy this module to the "/lib/modules/current kernel version/net" directory.

Step3: Manual "Drive" NIC

Since Linux usually automatically detects all installed NICs of this brand type, this is no problem for PCI drivers; but for ISA Network card, it is unsafe to find a network card, so you need to provide the I/O address of the network card so that the module knows where to look. This information is stored in the file /etc/conf.modules.

1. Modify the /etc/config.modules file and add the following information:

alias eth0 Network module name (without adding .o)

options Network module name io= I/O address irq=IRQ number (sometimes you can not write this item)

2. Run modprobe ethN to test it.

3. Restart Linux or run /etc/rc.d/init.d/network restart NIC will take effect. (Continued)




Copyright © Windows knowledge All Rights Reserved