Chapter 5
Korenix Feature
5-1
Ethertool
program name
ethtool
Description
LAN switch port configuration tool
Usage
:
ethtool DEVNAME (get port status)
ethtool -a DEVNAME (get flow control)
ethtool -A DEVNAME (set flow control)
[ rx on|off ]
ethtool -q DEVNAME (get QoS)
ethtool -Q DEVNAME (set QoS)
[ type 0|1 ] (0: weighted, 1: Strict)
[ trust 0-4 ] (0:Port Based, 1:CoS Only, 2:DSCP Only, 3:CoS First, 4:DSCP First)
[ pri 0-7 ] (Port default frame priority)
[ cos QUEUE_ID COS_ID ]
[ dscp QUEUE_ID DSCP_ID ]
ethtool -p DEVNAME (get vlan pvid)
ethtool -P DEVNAME (set vlan pvid)
[ pvid N ]
ethtool -t DEVNAME (reset statistic)
ethtool -s DEVNAME (set port status)
[ speed 10|100 ]
[ duplex half|full ]
[ port on|off ] - Enable or Disable this port
[ autoneg on|off ]
ethtool -S DEVNAME (get statistic)
Example:
Get LAN interface port 3 status
# ethtool lan:3
Port Status:
Speed: 100Mb/s
Duplex: Full
Flow Control: off
Port Setting:
Port: on
Auto-negotiation: on
Link detected: Down
Set LAN interface port 3 status
# ethtool -s lan:3 speed 100
Содержание JetBox5400 series
Страница 1: ...JetOS95 User Manual www korenix com...
Страница 5: ...Korenix Overview 5...
Страница 68: ...68 Appendix Korenix http www busybox net downloads BusyBox html...