我正在使用 debian 4.19.160 和 7 端口千兆位以太网交换机 KSZ9897R。网络接口在系统中可见,并在子网 111 上分配了静态地址。但是没有对网关 192.168.111.253 和子网 111 中的其他设备进行 ping 操作。我听说过 phy.c 和 lan78xx.c pathces,但我不能找到它。
有谁听说过这个问题并且可以提供帮助吗?
4.19.160
sudo lsusb -t -s [[总线]:1] -v
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=lan78xx, 5000M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=lan78xx, 5000M
|__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/3p, 12M
|__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 5, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 6: Dev 5, If 1, Class=CDC Data, Driver=cdc_acm, 12M
|__ Port 7: Dev 6, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 7: Dev 6, If 1, Class=CDC Data, Driver=cdc_acm, 12M
|__ Port 8: Dev 23, If 3, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 8: Dev 23, If 1, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 8: Dev 23, If 4, Class=Vendor Specific Class, Driver=qmi_wwan, 480M
|__ Port 8: Dev 23, If 2, Class=Vendor Specific Class, Driver=option, 480M
|__ Port 8: Dev 23, If 0, Class=Vendor Specific Class, Driver=option, 480M
须藤lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 025: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 001 Device 006: ID 0483:5740 STMicroelectronics Virtual COM Port
Bus 001 Device 005: ID 1546:01a8 U-Blox AG [u-blox 8]
Bus 001 Device 004: ID 413c:8505 Dell Computer Corp.
Bus 001 Device 003: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102/2.0 / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 001 Device 002: ID 0451:2036 Texas Instruments, Inc. TUSB2036 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 0451:9261 Texas Instruments, Inc.
Bus 004 Device 003: ID 0424:7801 Standard Microsystems Corp.
Bus 004 Device 002: ID 0424:7801 Standard Microsystems Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
须藤 dmesg | grep 局域网
[ 4.743494] libphy: lan78xx-mdiobus: probed
[ 4.884731] libphy: lan78xx-mdiobus: probed
[ 4.892570] usbcore: registered new interface driver lan78xx
[ 5.239025] lan78xx 4-1:1.0 enp1s0u1: renamed from eth0
[ 5.259252] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 5.259255] [drm] Driver supports precise vblank timestamp query.
[ 5.282555] lan78xx 4-2:1.0 enp1s0u2: renamed from eth1
须藤 dmesg | grep enp
[ 3.343518] igb 0000:0a:00.0 enp10s0: renamed from eth0
[ 5.239025] lan78xx 4-1:1.0 enp1s0u1: renamed from eth0
[ 5.282555] lan78xx 4-2:1.0 enp1s0u2: renamed from eth1
[ 5.604703] IPv6: ADDRCONF(NETDEV_UP): enp1s0u1: link is not ready
[ 5.615135] IPv6: ADDRCONF(NETDEV_UP): enp1s0u2: link is not ready
[ 5.668963] IPv6: ADDRCONF(NETDEV_UP): enp10s0: link is not ready
[ 6.623792] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0u2: link becomes ready
[ 6.623872] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0u1: link becomes ready
[ 9.184244] igb 0000:0a:00.0 enp10s0: igb: enp10s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 9.184514] IPv6: ADDRCONF(NETDEV_CHANGE): enp10s0: link becomes ready
须藤 lsmod | grep 局域网
lan78xx 61440 0
fixed_phy 16384 3 lan78xx
libphy 77824 4 fixed_phy,lan78xx
usbcore 294912 13 usbserial,xhci_hcd,usbnet,usbhid,cdc_acm,usb_storage,cdc_wdm,usb_wwan,qmi_wwan,xhci_pci,lan78xx,uas,option
须藤 ifconfig -a
enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.88.242 netmask 255.255.255.0 broadcast 192.168.88.255
inet6 fe80::213:95ff:fe33:c979 prefixlen 64 scopeid 0x20<link>
ether 00:13:95:33:c9:79 txqueuelen 1000 (Ethernet)
RX packets 9467 bytes 1197188 (1.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 589 bytes 91476 (89.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x91900000-9191ffff
enp1s0u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.111.1 netmask 255.255.255.0 broadcast 192.168.111.255
inet6 fe80::89c:8ff:fe90:8520 prefixlen 64 scopeid 0x20<link>
ether 0a:9c:08:90:85:20 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 453 bytes 68160 (66.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp1s0u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.111.2 netmask 255.255.255.0 broadcast 192.168.111.255
inet6 fe80::cc2e:d5ff:fec8:d76d prefixlen 64 scopeid 0x20<link>
ether ce:2e:d5:c8:d7:6d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 67 bytes 11758 (11.4 KiB)
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 111523 bytes 23797265 (22.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 111523 bytes 23797265 (22.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wwp0s21f0u8i4: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e6:6c:e3:84:85:a0 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
平 192.168.111.253
From 192.168.111.1 icmp_seq=1 Destination Host Unreachable
From 192.168.111.1 icmp_seq=2 Destination Host Unreachable
From 192.168.111.1 icmp_seq=3 Destination Host Unreachable
From 192.168.111.1 icmp_seq=4 Destination Host Unreachable
From 192.168.111.1 icmp_seq=5 Destination Host Unreachable
From 192.168.111.1 icmp_seq=6 Destination Host Unreachable
From 192.168.111.1 icmp_seq=7 Destination Host Unreachable
From 192.168.111.1 icmp_seq=8 Destination Host Unreachable
From 192.168.111.1 icmp_seq=9 Destination Host Unreachable
ip路由
default via 192.168.111.253 dev enp1s0u1 onlink
192.168.88.0/24 dev enp10s0 proto kernel scope link src 192.168.88.242
192.168.111.0/24 dev enp1s0u1 proto kernel scope link src 192.168.111.1
192.168.111.0/24 dev enp1s0u2 proto kernel scope link src 192.168.111.2
须藤netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.111.253 0.0.0.0 UG 0 0 0 enp1s0u1
192.168.88.0 0.0.0.0 255.255.255.0 U 0 0 0 enp10s0
192.168.111.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0u1
192.168.111.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0u2
4.9.277 sudo lsusb -t -s [[总线]:1] -v
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=lan78xx, 5000M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=lan78xx, 5000M
|__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/3p, 12M
|__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 4: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 4, If 2, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 6: Dev 5, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 6: Dev 5, If 1, Class=CDC Data, Driver=cdc_acm, 12M
须藤lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1546:01a8 U-Blox AG [u-blox 8]
Bus 001 Device 004: ID 413c:8505 Dell Computer Corp.
Bus 001 Device 003: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 102/2.0 / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
Bus 001 Device 002: ID 0451:2036 Texas Instruments, Inc. TUSB2036 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 0451:9261 Texas Instruments, Inc.
Bus 004 Device 003: ID 0424:7801 Standard Microsystems Corp.
Bus 004 Device 002: ID 0424:7801 Standard Microsystems Corp.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
须藤 dmesg | grep 局域网
[ 6.345656] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 6.345657] [drm] Driver supports precise vblank timestamp query.
[ 6.390829] libphy: lan78xx-mdiobus: probed
[ 6.525199] libphy: lan78xx-mdiobus: probed
[ 6.525542] usbcore: registered new interface driver lan78xx
[ 6.615561] lan78xx 4-1:1.0 enp1s0u1: renamed from eth0
[ 6.634560] lan78xx 4-2:1.0 enp1s0u2: renamed from eth1
[ 7.247051] lan78xx 4-1:1.0 enp1s0u1: registered fixed PHY
[ 7.250712] lan78xx 4-1:1.0 enp1s0u1: kevent 4 may have been dropped
[ 7.297206] lan78xx 4-2:1.0 enp1s0u2: registered fixed PHY
[ 7.304438] lan78xx 4-2:1.0 enp1s0u2: kevent 4 may have been dropped
须藤 dmesg | grep enp [2.490586] igb 0000:0a:00.0 enp10s0:从eth0重命名[6.615561] lan78xx 4-1:1.0 enp1s0u1:从eth0重命名[6.634560] lan78xx 4-2:1.0 enp1s0u2:从eth1重命名[7.247051 ] lan78xx 4-1: 1.0 enp1s0u1:已注册固定 PHY [7.250712] lan78xx 4-1:1.0 enp1s0u1:kevent 4 可能已被删除 [7.250830] IPv6:ADDRCONF(NETDEV_UP):enp1s0u1:链接未就绪 [7.297206] lan78xx 4-2:1.0 enp1s0 u2:已注册固定PHY [7.304438] lan78xx 4-2:1.0 enp1s0u2: kevent 4可能已被删除[7.304502] IPv6: ADDRCONF(NETDEV_UP): enp1s0u2: 链接未就绪[ 7.381030] IPv6: ADDRCONF(NETDEV_UP): enp10s0: 链接已准备好未准备好 [8.257640] IPv6:ADDRCONF(NETDEV_CHANGE):enp1s0u1:链接已准备好 [8.316187] IPv6:ADDRCONF(NETDEV_CHANGE):enp1s0u2:链接已准备好 [2397.224737] igb 0000:0a:00.0 enp10s0:igb:enp: 10s0 NIC 链路已启动1000 Mbps 全双工,流量控制:RX [2397.332464] IPv6:ADDRCONF(NETDEV_CHANGE):enp10s0:链路准备就绪
须藤 lsmod | grep 局域网
lan78xx 45021 0
须藤 ifconfig -a
enp10s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.88.128 netmask 255.255.255.0 broadcast 192.168.88.255
inet6 fe80::213:95ff:fe33:c979 prefixlen 64 scopeid 0x20<link>
ether 00:13:95:33:c9:79 txqueuelen 1000 (Ethernet)
RX packets 69706 bytes 18005335 (17.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 52954 bytes 9733151 (9.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x91900000-9191ffff
enp1s0u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.111.1 netmask 255.255.255.0 broadcast 192.168.111.255
inet6 fe80::f8ca:13ff:fe29:20d0 prefixlen 64 scopeid 0x20<link>
ether fa:ca:13:29:20:d0 txqueuelen 1000 (Ethernet)
RX packets 11861 bytes 1368300 (1.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 476 bytes 326640 (318.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp1s0u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.111.2 netmask 255.255.255.0 broadcast 192.168.111.255
inet6 fe80::5c10:adff:fe4a:e4c3 prefixlen 64 scopeid 0x20<link>
ether 5e:10:ad:4a:e4:c3 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 381 bytes 322566 (315.0 KiB)
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 1 (Local Loopback)
RX packets 2844572 bytes 356924080 (340.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2844572 bytes 356924080 (340.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
平 192.168.111.253
PING 192.168.111.253 (192.168.111.253) 56(84) bytes of data.
64 bytes from 192.168.111.253: icmp_seq=1 ttl=64 time=0.313 ms
64 bytes from 192.168.111.253: icmp_seq=2 ttl=64 time=0.296 ms
64 bytes from 192.168.111.253: icmp_seq=3 ttl=64 time=0.322 ms
64 bytes from 192.168.111.253: icmp_seq=4 ttl=64 time=0.389 ms
ip路由
default via 192.168.88.1 dev enp10s0
192.168.88.0/24 dev enp10s0 proto kernel scope link src 192.168.88.128
192.168.111.0/24 dev enp1s0u1 proto kernel scope link src 192.168.111.1
192.168.111.0/24 dev enp1s0u2 proto kernel scope link src 192.168.111.2
须藤netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default vpn.prk-a.ru 0.0.0.0 UG 0 0 0 enp10s0
192.168.88.0 0.0.0.0 255.255.255.0 U 0 0 0 enp10s0
192.168.111.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0u1
192.168.111.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0u2