ubuntu system restart after the network card can not start the problem

ubuntu system restart after the network card can not start the problem

data collection

1, restart the card to start a problem
2, dmesg | grep -i "eno1 "
view can not find the card eno1 related error
3, see the identification card system

lspci -v | grep net
01:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe
    Subsystem: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe
01:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe
    Subsystem: Broadcom Inc. and subsidiaries NetXtreme BCM5720 Gigabit Ethernet PCIe
  
这里看到有网卡的识别
19:00.0 Ethernet controller: Broadcom Inc. and subsidiaries BCM57412 NetXtreme-E 10Gb RDMA Ethernet Controller (rev 01)
19:00.1 Ethernet controller: Broadcom Inc. and subsidiaries BCM57412 NetXtreme-E 10Gb RDMA Ethernet Controller (rev 01)

4, there is no file cat /etc/udev/rules.d/ 70-persistent-net.rules

Solution

Write file vim /etc/udev/rules.d/70-persistent-net.rules

cat /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?*",ATTR{address}=="B0:26:28:EF:DF:5A",ATTR{type}=="1",KERNEL=="eno*",NAME="eno1"

After rebooting the machine, restarting the machine, it was found in the boot server when grub is not selected properly
select the correct grub to start to solve the problem

Fundamentally solve the problem

Under normal circumstances, it was possible to directly modify the GRUB configuration file "/boot/grub/grub.cfg", but the use of "sudu vim /boot/grub/grub.cfg" The findings suggest that this is automatically generated files is not recommended to directly edit , but it should be to "/etc/grub.d" and "/ etc / default / grub" to modify.

"/Etc/grub.d" is the operating system menu directory, usually generated by the system, we do not need to modify the next step is to modify the "/ etc / default / grub" files. Use "sudo vim / etc / default / grub" command to open the configuration file.

Where "GRUB_DEFAULT = 0" is the default setting of the startup items. GRUB startup items are in turn used in accordance with the index numbers start menu, start number is 0.

After modifications are complete, save and exit, also you need to do what "sudo update-grub" to rebuild the GRUB boot configuration items

root cause

Business operations related parties should be updated kernel, but did not find the relevant logs, audit required ubuntu command capabilities of history

Guess you like

Origin www.cnblogs.com/yanghehe/p/12307663.html