RedHatLinux5.0 how to check whether the NIC is installed with 1ifconfig-a if ethX is not installed, it is likely that the NIC is not installed, at least it can be determined that the NIC is not automatically loaded. If you enter ifconfigeth0xxxx. xxxx, the system will prompt that the device is not eth0. 2. You can use dmesg | grepethx to check whether the system can check this module. If yes
RedHat Linux 5.0 how to check whether the NIC is installed
1 If ifconfig-a does not have ethX, it is likely that the NIC is not installed. At least it can be determined that the NIC is not automatically loaded.
If you enter ifconfig eth0 xxxx. xxxx, the system will prompt that the device is not eth0.
2. You can use dmesg | grep ethx to check whether the system can check this module. If yes
ATL2: eth0NIC Link is up <100 M full duplex>
Otherwise, no response is made.
3. Use lsmod to check whether there is any load at startup. If yes, there will be atl2, eg3, and so on.
4. view the NIC Driver Installation Directory.
# Uname-r view kernel version
# Cd lib/modules/'uname-R'/kernel/drives/net NIC Driver Installed in this directory
# Ls displays the related driver. If there is no driver you want, manually install it.
2. Install the driver
1. view your driver type. If you have xp, you can view the related driver in xp. Download the driver.
2. Because linux cannot access the Internet, you can only use xp and then cp the downloaded driver to linux.
3. Go to the windows directory.
# Cd/mnt/winc/driver
4. Run the driver cp to the linux/tmp directory (or another directory ,)
5. Go to the tmp directory.
# Cd/tmp/driver/src/
6 # make
Start compilation to check for exceptions.
7. Copy the generated file to lib/modules/'uname-R'/kernel/drives/net. Otherwise, it cannot be found at startup.
If no problem occurs, the NIC will be installed.
8 manually load insmod lib/modules/'uname-R'/kernel/drives/net/atl2.ko
You can enter ifconfig to check whether eth0.
3. Configure the NIC
1 set ip address and mask ifconfig eth0 xxx. xxx 255.255.255.0
Set gw route add default gw Gateway
Set dns to directly modify/etc/resolv. conf
# Vi/etc/rescolv. conf
Add a nameserver ip Address
Nameserver ip Address
2. Restart
Servicenetwork restart
2. View ifconfig-
Normally, you can access the Internet.
Iv. Set automatic loading upon startup
1, configuration file vi/etc/sysconfig/network-script/ifcfg-eth0
DEVICE = eth0 # Set the network card name, which must correspond to the file name #
# Whether to enable the NIC at startup #
BOOTPROTO = static # if it is a dynamic host, change it to dhcp #
IPADDR = 192.168.0.1 # IP address #
NETMASK = 255.255.255.0 # subnet mask #
NETWORK = 192.168.0.1 # The first IP address of the NETWORK segment #
BROADCAST = 192.168.0.255 # BROADCAST address of the last same network segment #
GATEWAY = 192.168.0.1 # GATEWAY address #
2. Many people on the Internet say they want to modify the configuration file to set the boot loading module,
Set boot loading Blocks
Edit/etc/modules. conf.
Vi/etc/modules. conf
Add the following line to the file:
Alias eth0atl2
Also, it is added to/etc/modprobe. conf.
Alias eth0 atl2
However, I deleted both of them and still can load them normally.
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-08/105485.htm