admin管理员组

文章数量:1530521

裸机没有网络,USB连接Android手机,Android手机共享网络

  1. 网卡状态
    1)系统安装后不能直接上网,首先需要查看网线是否连到主板对应的端口上,服务器主板(supermicro X10DRi)有三个LAN端口,分别是主板固件内置的Dedicated LAN和Intel® i350 Dual port GbE LAN。
    2)利用sudo lshw -C network命令查询网卡状态,其中
    UNCLAIMED 是系统不识别,没有安装驱动
    DISABLED是安装驱动但是网线没查或者没有配置
    其他为正常
    [1] Ubuntu Server 20.04 no internet connection/network unclaimed https://askubuntu/questions/1270046/ubuntu-server-20-04-no-internet-connection-network-unclaimed
    [2] Can't get RTL8125B working on 20.04https://askubuntu/questions/1259947/cant-get-rtl8125b-working-on-20-04
     
  2. 驱动更新
    1)显示所有网卡#ifconfig –a
    2)查看网卡所需驱动#ethtool -i enp4s0f0 (enp4s0f0本网卡名称) 注:intel I350网卡 为igb 驱动程序。
    3)到intel官网下载网卡驱动
    4)安装ReadMe文件中提示进行编译安装
    [1] intel I350 网卡驱动安装方法http://blog.chinaunix/uid-31410005-id-5780988.html
    [2]适用于 Linux * 的82575/6、82580、I350 和 I210-at/211 千兆位网络连接的英特尔®网络适配器驱动程序https://downloadcenter.intel/zh-cn/download/13663/Intel-Network-Adapter-Driver-for-82575-6-82580-I350-and-I210-211-Based-Gigabit-Network-Connections-for-Linux-

     
  3. 网络配置
    通过sudo vi /etc/netplan/01-network-manager-all.yaml 来设置静态或者动态IP
    network:
    version2
    rendererNetworkManager
    ethernets:
     enp4s0f0:
      dhcp4no
      addresses:
      - 192.168.1.180/24
      gateway4192.168.1.1
      nameservers
    :
       addresses[192.168.1.1, 8.8.4.4]
    设定之后sudo netplan apply
    [1]Setting Up Static IP Address on Ubuntu 20.04 LTShttps://linuxhint/setup_static_ip_address_ubuntu/

 

 

 

 

本文标签: 网卡驱动管理员手册UbuntuServer