@Terrance:

@Terrance:

Ubuntu 18.04,我每天大概会收到十几个这样的错误:

Jul 17 21:58:29 [servername] NetworkManager[929]: <info> [1626577109.7049] connectivity: (enp3s0) timed out

我在主板的内置 NIC 上遇到了这些问题,所以我用子卡 NIC 替换了它,并禁用了板载 NIC,但我仍然遇到同样的问题。我更换了网线,仍然没有解决。路由器基本上是全新的。有什么想法吗?

@Terrance:

> lspci | grep Ethernet
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-V (rev 10)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8161 (rev 15)

> lshw -C network | grep configuration
configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=10.1.1.182 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.120 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.2-4 latency=0 link=no multicast=yes port=twisted pair

> ifconfig
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.1.1.182  netmask 255.255.255.0  broadcast 10.1.1.255
        inet6 fe80::1efd:8ff:fe70:2173  prefixlen 64  scopeid 0x20<link>
        ether 1c:fd:08:70:21:73  txqueuelen 1000  (Ethernet)
        RX packets 222302237  bytes 320974231227 (320.9 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 98557310  bytes 6537060870 (6.5 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.120  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::a27a:416f:4a38:f590  prefixlen 64  scopeid 0x20<link>
        ether 00:31:92:46:96:a5  txqueuelen 1000  (Ethernet)
        RX packets 81523790  bytes 87489473670 (87.4 GB)
        RX errors 0  dropped 12  overruns 0  frame 0
        TX packets 82257248  bytes 88740819287 (88.7 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 10158  bytes 1314073 (1.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10158  bytes 1314073 (1.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s0 给我带来了问题。enp2s0 几乎从不超时。原来的板载 NIC 现已禁用,因此它似乎没有显示在 ifconfig 中。

@heynnema

> lshw -C network
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 07
       serial: 1c:fd:08:70:21:73
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=10.1.1.182 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:17 ioport:4000(size=256) memory:a2200000-a2200fff memory:a0000000-a0003fff
  *-network
       description: Ethernet interface
       product: Realtek Semiconductor Co., Ltd.
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: enp3s0
       version: 15
       serial: 00:31:92:46:96:a5
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.120 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:18 ioport:3000(size=256) memory:a2104000-a2104fff memory:a2100000-a2103fff
  *-network DISABLED
       description: Ethernet interface
       product: Ethernet Connection (7) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: eno1
       version: 10
       serial: 2c:f0:5d:98:b6:ee
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.2-4 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:126 memory:a2300000-a231ffff

@heynnema “您目前有 3 个以太网端口吗……一个板载端口和两个 PCI 端口?”正确。“您是如何禁用板载端口的?” ifconfig eno1 disable “为什么 enp2s0 只以 100Mb 运行?”嗯……我不知道,这可能是谜题的重要部分。它有一条新电缆,我已将其换成另一条新电缆,但没有任何区别。路由器是Linksys WRT3200ACM

相关内容