Article title: solve the problem after replacing the NIC and other hardware in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
As a server, network card and other hardware damages are common. in this case, hardware replacement is prone to some problems, such:
1. restart after replacement, but the system does not automatically search for new hardware. in this case, you can issue a command: kudzu.
Kudzu is a command used to detect hardware changes in Linux. this command can be used to check the model of the NIC and other information in the system. The system automatically finds new hardware and installs it on its own. You can also view the mac address, network card model, and other information of the network card.
[Root @ devel flash] # kudzu -- probe -- class = network
-
Class: NETWORK
Bus: PCI
Detached: 0
Device: eth0
Driver: e100
Desc: "Intel Corporation 82557/8/9 [Ethernet Pro 100]"
Network. hwaddr: 00: d0: b7: 3f: ad: 57
VendorId: 8086
DeviceId: 1229
SubVendorId: 8086
SubDeviceId: 000c
PciType: 1
Pcidom: 0
Pcibus: 0
Pcidev: e
Pcfn: 0
PS: of course, you can use many commands to view network card and other hardware information, such as lspci and lsmod.
2. the problem of device "xxxx" does not seem to be present occurs.
Device "eth0" does not seem to be present, delaying initialization.
Fewer lines output by lsmod
Run the depmod command. Depmod can automatically fix the dependencies of some modules.
After reboot is restarted, there are more lines output by lsmod.
Eth0 is also normal