下冰雹 · 2021年12月29日

全志R329以太网常用调试说明?

求全志R329以太网常用调试说明分享,求解答

1 个回答 得票排序 · 时间排序
极术小姐姐 · 2021年12月29日
本回答来源全志R329以太网常用调试说明?

调试工具
1.ethtool

ethtool -s eth0 speed 1000 duplex full autoneg on  //设置1000M全双工自适应

2.brctl

root@TinaLinux:/# brctl --help
BusyBox v1.27.2 () multi-call binary.

Usage: brctl COMMAND [BRIDGE [INTERFACE]]

Manage ethernet bridges

Commands:
        show                    Show a list of bridges
        addbr BRIDGE            Create BRIDGE
        delbr BRIDGE            Delete BRIDGE
        addif BRIDGE IFACE      Add IFACE to BRIDGE
        delif BRIDGE IFACE      Delete IFACE from BRIDGE
        setageing BRIDGE TIME           Set ageing time
        setfd BRIDGE TIME               Set bridge forward delay
        sethello BRIDGE TIME            Set hello time
        setmaxage BRIDGE TIME           Set max message age
        setpathcost BRIDGE COST         Set path cost
        setportprio BRIDGE PRIO         Set port priority
        setbridgeprio BRIDGE PRIO       Set bridge priority
        stp BRIDGE [1/yes/on|0/no/off]  STP on/off
root@TinaLinux:/# brctl addif br-lan eth0
[ 4312.718522] br-lan: port 1(eth0) entered blocking state
[ 4312.724433] br-lan: port 1(eth0) entered disabled state
[ 4312.730790] device eth0 entered promiscuous mode

root@TinaLinux:/# brctl delif br-lan eth0
[ 4270.518067] device eth0 left promiscuous mode
[ 4270.523335] br-lan: port 1(eth0) entered disabled state
你的回答