一.通过WMI获取物理适配器序号 NetEnabled: 是否启用了适配器,True为启用,False为禁用;PhysicalAdapter: 适配器是否物理或逻辑适配器,True为物理,False为逻辑; public static List<int> GetUseIndex() { List<int> list = new List<int>(); ManagementClass mc = new ManagementClass("Win32_Networ
一.背景 2018年5月24日,笔者的pc已经连续运转两天了,突然要使用有线网卡,却发现有线网卡无法正常工作,于是查看了一下内核日志: r8169 0000:05:00.0 eth0: link down IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready 二.解决办法 2.1.首先使用的是哪个型号的网卡呢? 在终端输入lspci,笔者输出的网卡相关信息如下: Ethernet controller: Realtek Semiconductor
1.安装完ubuntu server 18.04 后,笔记本电脑的有线网卡已经识别了,但是没有ip, 并且插上网线后端口灯不亮. 解决方法: 第一步.配置端口链路状态为 up # ip link set dev xxx up 第二步.配置网口的静态Ip地址. ubuntu server 使用netplan 工具进行配置,参考官网配置如下: https://ubuntu.com/server/docs/network-configuration To configure your system t