我有一台 M70q 迷你电脑,它使用 e1000e 设备驱动程序进行以太网连接。每当我尝试将文件通过 ftp 传输到计算机时,它就会丢失其 IP 地址。它会重新获得 IP 地址,但只能保留几分钟,然后就会一次又一次地丢失。从我在网上看到的情况来看,“丢失的载体”通常是物理连接的问题,尽管我已经多次更换了以太网电缆并切换了路由器端口。
我正在使用 Ubuntu 22.04
Netplan 配置:
# This is the network config written by 'subiquity'
network:
version: 2
ethernets:
eno2:
addresses:
- 192.168.12.185/24
routes:
- to: default
via: 192.168.12.1
mtu: 9000
Ifconfig 接口统计:
eno2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet 192.168.12.185 netmask 255.255.255.0 broadcast 192.168.12.255
inet6 fe80::6e24:8ff:fe14:73ab prefixlen 64 scopeid 0x20<link>
inet6 2607:fb91:3f2e:1161:6e24:8ff:fe14:73ab prefixlen 64 scopeid 0x0<global>
inet6 2607:fb91:3f2e:1161:107d:5739:0:22e prefixlen 128 scopeid 0x0<global>
ether 6c:24:08:14:73:ab txqueuelen 1000 (Ethernet)
RX packets 3866534 bytes 4333695123 (4.3 GB)
RX errors 0 dropped 7 overruns 0 frame 0
TX packets 4863702 bytes 3497649374 (3.4 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xb1200000-b1220000
系统日志输出:
systemd-networkd[891]: eno2: Lost carrier
kernel: [352082.226632] e1000e 0000:00:1f.6 eno2: NIC Link is Down
systemd-networkd[891]: eno2: DHCPv6 lease lost
systemd-timesyncd[852]: No network connectivity, watching for changes.
kernel: [352084.981150] e1000e 0000:00:1f.6 eno2: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
systemd-networkd[891]: eno2: Gained carrier
systemd-timesyncd[852]: Network configuration changed, trying to establish connection.
systemd-timesyncd[852]: Timed out waiting for reply from 91.189.94.4:123 (ntp.ubuntu.com).
systemd-timesyncd[852]: Initial synchronization to time server 185.125.190.57:123 (ntp.ubuntu.com).
systemd-networkd[891]: eno2: DHCPv6 address 2607:fb91:3f2e:1161:107d:5739:0:22e/128 (valid for 1d, preferred for 1d)