
這是我在這個網站上的第一篇文章。我認為我的問題與伺服器故障有關,因為它與乙太網路通訊問題有關。如果您不同意,請告訴我將此帖子移至合適的位置。謝謝。
我正在使用 USB3 到 GigE 轉換器 - 因為我的 Linux 板上沒有 GigE。我的問題是連接到網路攝影機後。它可以工作一段時間,我可以接收圖像,但一兩分鐘後就會停止。它停止後我無法 ping 任何內容,我可以看到 rx 封包中有錯誤。
這是我ifconfig
連接相機之前的情況:
ifconfig
eth1 Link encap:Ethernet HWaddr 00:13:3b:99:28:56
inet addr:192.168.0.117 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:3bff:fe99:2856/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:4000 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29172 (29.1 KB) TX bytes:6614 (6.6 KB)
連接到相機並停止回應後也是如此:
ifconfig
eth1 Link encap:Ethernet HWaddr 00:13:3b:99:28:56
inet addr:192.168.0.117 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::213:3bff:fe99:2856/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:4000 Metric:1
RX packets:137338 errors:1604 dropped:0 overruns:0 frame:0
TX packets:3662 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:274563593 (274.5 MB) TX bytes:287885 (287.8 KB)
顯然 RX 數據包有錯誤,我不知道為什麼。這是ethtool eth1
輸出:
ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 3
Transceiver: internal
Auto-negotiation: off
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
答案1
我會看一下 MTU。它可能是 USB3/GigE 的問題,但將其更改為 1500 並嘗試繼續:
ifconfig eth1 mtu 1500
編輯:註釋 - 這是一個臨時設置,重新啟動後不會保留。