发现全志R329以太网网络不通或丢包严重怎么解决呢?
本回答来源全志R329以太网网络不通或丢包严重怎么解决?
1.【问题现象】
现象1:ifconfig eth0 up正常,但一直无法动态获取ip地址,有如下类似打印:
[ 12.296892] libphy: gmac0: probed
[ 12.420621] sunxi-gmac gmac0 eth0: eth0: Type(7) PHY ID 001cc916 at 0 IRQ poll (gmac0-0:00)
[ 15.524572] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 23.708540] sunxi-gmac gmac0 eth0: Link is Up - 100Mbps/Full - flow control rx/tx
root@TinaLinux:/#
root@TinaLinux:/# udhcpc -i eth0
udhcpc: started, v1.27.2
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
现象2:ifconfig eth0 up正常,配置静态ip地址后,无法ping通对端设备,有如下类似打印:
root@TinaLinux:/# ifconfig eth0 192.168.1.100
root@TinaLinux:/#
root@TinaLinux:/# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 36:C9:E3:F1:B8:05
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::34c9:e3ff:fef1:b805/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:239 dropped:0 overruns:0 frame:0
TX packets:232 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:77384 (75.5 KiB)
Interrupt:124
root@TinaLinux:/#
root@TinaLinux:/# ping 192.168.1.101
PING 192.168.1.101 (192.168.1.101): 56 data bytes
2.【问题分析】
通常原因是tx或rx通路某条通路不通,tx通路异常导致数据发不出去,同理rx通路异常导致接收不到数据。
注:
tx通路指发送数据通路,路径为mac->phy->rj45->…
rx通路指接收数据通路,路径为…->rj45->phy->mac
3.【排查步骤】
注: