Rocky Linux系统无法识别未激活的10gig端口问题求助
Hey there, let's troubleshoot this 10G port detection issue together step by step. The key thing to note here is that nmcli connection show only displays configured network connections, not unconfigured or downed hardware ports. So we need to start by verifying if the system can even see the 10G hardware first.
Here are some actionable steps to try:
Check if the 10G hardware is detected by the system
Runlspci | grep -i ethernetto list all Ethernet controllers. Look for entries mentioning "10-Gigabit" or specific 10G NIC models (like Intel X520, Mellanox ConnectX, etc.). If you don't see a 10G entry here, the problem might be physical: double-check the NIC is seated properly, the 10G switch port is powered/enabled, or verify the BIOS hasn't disabled the 10G slot.List all network interfaces (including unconfigured ones)
Useip link show— this command will display every network interface the kernel recognizes, even if there's no active connection profile for it. Look for interfaces with names likeenpXsYfZ(common for multi-port NICs) that aren't your existing 1G ports. This will give you the actual interface name you need fornmcli.Verify the 10G NIC driver is loaded
If you saw the 10G NIC inlspcibut not inip link, runlspci -k | grep -A 3 -i ethernetto check if a kernel driver is attached to the device. Look for the lineKernel driver in use: [driver-name]. If no driver is listed, try loading it manually withmodprobe [driver-name](common 10G drivers:ixgbefor Intel,mlx5_corefor Mellanox). After loading, re-runip link showto see if the interface appears.Create a connection profile for the 10G port
Once you have the interface name fromip link show, create a new connection withnmcli con add type ethernet con-name "10G-Port" ifname [interface-name]. You can then activate it withnmcli con up "10G-Port". If you prefer a more intuitive tool, runnmtui— it's a text-based interface that simplifies creating and editing network connections.Check system logs for NIC initialization errors
Rundmesg | grep -i ethorjournalctl -u NetworkManager | grep -i errorto look for any error messages related to the 10G NIC failing to initialize. This can give clues about driver conflicts or underlying hardware issues.
Let me know what you find from these steps, and we can dig deeper if needed!
备注:内容来源于stack exchange,提问作者skyrin

