You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

旧版本启动时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 show to list all network adapters. Look for entries starting with eth or enp (like eth0 or enp0s3)—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, then nmcli connection up MyEthernet to 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):
        network:
          ethernets:
            enp0s3:
              addresses: [192.168.1.100/24]
              gateway4: 192.168.1.1
              nameservers:
                addresses: [8.8.8.8, 8.8.4.4]
          version: 2
        
        Apply changes with sudo netplan apply.
      • On older CentOS/RHEL: Edit /etc/sysconfig/network-scripts/ifcfg-<interface> to set static IP details, then restart the network service.
  • Bring the interface online: If you don’t use NetworkManager, run sudo ip link set <your-interface-name> up to enable it, then sudo 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 network in the terminal. Look for lines like configuration: broadcast=yes driver=<driver-name>—if it says unclaimed, note your adapter’s model from the product line (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 need r8168-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-r8168 for the same Realtek adapter.
  • 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, use sudo systemctl restart NetworkManager or sudo systemctl restart network.
  • Blacklist conflicting drivers: Sometimes a generic driver blocks the specific one you need. Edit /etc/modprobe.d/blacklist.conf and add a line like blacklist <conflicting-driver> (e.g., blacklist r8169 if you’re using r8168), then reboot your system.

内容的提问来源于stack exchange,提问作者A.Lfisher

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 09:28:40