Install NIC Driver in Redhat Enterprise Linux as release 4.2
At work, RedHat 4.2 Enterprise Edition is used as the server. After the system is ready, no NIC Driver is found and the Internet access is not allowed. If there is no eth0 in ifconfig-a, it means that Linux cannot identify my Nic and can't just install the driver on its own. It took two days to get an idea. Record it. For reference.
1. Prerequisites
Mounting a USB flash drive in FAT32 format
1) ls-L/dev/SD * to view the SCSI hard disk device. Run the following command to check whether the USB flash drive is inserted. A large number of devices are USB flash drives.
You can also use fdisk-L/dev/sdb1 (sdb1 is the assumed disk symbol) to view the disk size format.
2) create a mount directory
# Mkdir/mnt/USB (USB is an arbitrary directory)
Because my USB flash drive is in FAT32 format
Mount-T vfat/dev/sdb1/mnt/USB
3) uninstall the Directory
# Umount/mnt/USB
View Linux version
# Lsb_realbench-
View Nic Model
# Lspci but I think that since there is no NIC Driver Nic model, I naturally cannot get it. I saw it in the XP system. My system is a dual operating system.
My IntegrationThe NIC model is rtl8101e.
Http://down9.zol.com.cn/wangka/realtek_rtl8100e_10100_linux.zip? Key = 2d6355f564aac6a261a1101d0817268b
RealTek rtl8100e/rtl8101e/RTL8102E-GR PCI-E series NIC Driver 1.010.00 for Linux x86/x64
Install driver
1. Check whether the source code package is installed.
# Rpm-Qa | grep Kernel
Kernel-version number
Kernel-source-version number
Kernel-devel-version number
You do not need to install or reload the system yourself
2. Check whether the GCC compiler exists.
# Rpm-Qa | grep gcc
You do not need to install or reload the system yourself
3. Upload the downloaded NIC driver to the USB flash drive realtek_rtl8100e_10100_linux.zip.
Mount the USB flash drive # Mount-T vfat/dev/sdb1/mnt/USB
Create a user directory and copy the driver.
# Mkdir/usr/driver
CD/usr/driver
CP/mnt/USB/realtek_rtl8100e_10100_linux.zip ./
Unzip realtek_rtl8100e_10100_linux.zip
CD r8101-1.010.00
# Make clean modules (as root or with SUDO)
# Make install
# Depmod-
# Insmod./src/r8101.ko
If no error is reported, the installation is successful.
# Ifconfig-a check if eth0 appears
Restart the NIC # service network restart
4. Enter the graphic configuration interface of the network. The NIC is identified.
Then configure the IP Gateway DNS. Haha, you can access the Internet.
Manually configure the URL gateway subnet mask for activation
VI/etc/sysconfig/network-scripts/ifcfg-eth0
Device = eth0
Bootproto = static
Onboot = Yes
Type = Ethernet
Netmask = 255.255.255.0
Ipaddr = 192.168.1.1
Gateway = 192.168.1.254
Broadcast = 192.168.1.255
Configure DNS
VI/etc/resolv. conf
Nameserver 61.139.2.69
Restart Nic service network restart