旧版本启动时Ethernet与WiFi显示未认领的问题及Ethernet认领方法
Hey there, let’s tackle your Ethernet questions step by step—first covering how to claim an Ethernet interface, then fixing that unclaimed status issue in older systems.
How to Claim an Ethernet Interface
Claiming an Ethernet interface usually means configuring it to connect to your network properly. Here’s a straightforward breakdown:
- First, identify your interface: Open a terminal and run
ip link showto list all network adapters. Look for entries starting withethorenp(likeeth0orenp0s3)—that’s your Ethernet device. - Configure the interface:
- If you use NetworkManager (graphical or CLI), run
nmcli connection add type ethernet con-name MyEthernet ifname <your-interface-name>to create a connection profile, thennmcli connection up MyEthernetto activate it. - For static IP setups (common in servers), edit the relevant config file:
- On Debian/Ubuntu: Update your netplan file (e.g.,
/etc/netplan/00-installer-config.yaml) with this snippet (replace values with your network details):
Apply changes withnetwork: ethernets: enp0s3: addresses: [192.168.1.100/24] gateway4: 192.168.1.1 nameservers: addresses: [8.8.8.8, 8.8.4.4] version: 2sudo netplan apply. - On older CentOS/RHEL: Edit
/etc/sysconfig/network-scripts/ifcfg-<interface>to set static IP details, then restart the network service.
- On Debian/Ubuntu: Update your netplan file (e.g.,
- If you use NetworkManager (graphical or CLI), run
- Bring the interface online: If you don’t use NetworkManager, run
sudo ip link set <your-interface-name> upto enable it, thensudo dhclient <your-interface-name>to grab an IP via DHCP. - Verify connectivity: Test with
ping 8.8.8.8—if you get consistent responses, your Ethernet is successfully claimed.
Fixing "Unclaimed" Ethernet/WiFi in Older Systems
When adapters show as unclaimed during boot, it almost always means the kernel lacks the right driver for your hardware. Here’s how to resolve it:
- Diagnose the issue: Run
lshw -C networkin the terminal. Look for lines likeconfiguration: broadcast=yes driver=<driver-name>—if it saysunclaimed, note your adapter’s model from theproductline (e.g., "Realtek RTL8168/8111 PCI Express Gigabit Ethernet Controller"). - Install the correct driver:
- For older Ubuntu/Debian: Run
sudo apt update && sudo apt install <driver-package>. For example, Realtek RTL8168 adapters needr8168-dkms. You can find the package name by searching your adapter model in the system’s package repository. - For older CentOS/RHEL: Use
sudo yum install <driver-package>—e.g.,kmod-r8168for the same Realtek adapter.
- For older Ubuntu/Debian: Run
- Load the driver manually: If the driver is installed but not loading on boot, run
sudo modprobe <driver-name>(e.g.,sudo modprobe r8168). To make this permanent, add the driver name to/etc/modules(Ubuntu) or/etc/modules-load.d/<driver>.conf(CentOS). - Restart network services: In older SysVinit systems, run
sudo service network restart. For systemd-based older systems, usesudo systemctl restart NetworkManagerorsudo systemctl restart network. - Blacklist conflicting drivers: Sometimes a generic driver blocks the specific one you need. Edit
/etc/modprobe.d/blacklist.confand add a line likeblacklist <conflicting-driver>(e.g.,blacklist r8169if you’re usingr8168), then reboot your system.
内容的提问来源于stack exchange,提问作者A.Lfisher
相关产品推荐
相关产品推荐

