华为5620系列实用命令
查看单个以太网端口状态
MA5620>enable
MA5620#config
MA5620(config)#interface eth 0/1
MA5620(config-if-eth-0/1)#display port state 1
The port is active
Ethernet port is offline
Ethernet port duplex is auto-negotiation
Ethernet port rate is auto-negotiation
Ethernet port does not support flow control
Ethernet port does not support jumbo frame
Line-adaptive function of the ethernet port is auto-negotiation
Note: For a 1000 M, electrical port in the full-duplex mode, setting MDI to any value is invalid
查看所有用户端口状态
MA5620#display board 0/1
---------------------------------------
Board Name : H821EPFA
Board Status : Normal
---------------------------------------
------------------------------------------------------------------------------
Port Port Optic MDI Speed Duplex Flow- Active Link
Type Status (Mbps) Ctrl State
------------------------------------------------------------------------------
1 FE - auto auto auto off active offline
2 FE - auto auto auto off active offline
3 FE - auto auto auto off active offline
4 FE - auto auto auto off active offline
5 FE - auto auto auto off active offline
6 FE - auto auto auto off active offline
7 FE - auto auto auto off active offline
8 FE - auto auto auto off active offline
9 FE - auto auto auto off active offline
10 FE - auto auto auto off active offline
11 FE - auto auto auto off active offline
12 FE - auto auto auto off active offline
13 FE - auto auto auto off active offline
14 FE - auto auto auto off active offline
15 FE - auto auto auto off active offline
16 FE - auto auto auto off active offline
17 FE - auto auto auto off active offline
18 FE - auto auto auto off active offline
19 FE - auto auto auto off active offline
20 FE - auto auto auto off active offline
21 FE - auto auto auto off active offline
22 FE - auto auto auto off active offline
23 FE - auto auto auto off active offline
24 FE - auto auto auto off active offline
------------------------------------------------------------------------------
Note: For a 1000 M, electrical port in the full-duplex mode, setting MDI to
any value is invalid
常见以太网配置命令
5620(config-if-eth-0/1)#?
---------------------------------------------
Command of eth Mode:
---------------------------------------------
auto-neg Enable/Disable port negotiation //端口自适应
display Display information //查看端口信息
duplex Set duplex //双工模式
flow-control Support flow control //
mdi Line-adaptive function //
mirror Add mirror //端口镜象
quit Exit from current mode and enter prior mode //退出
reset Clear port statistics //清除端口流量信息
return Enter the privileged mode //
shutdown Deactivate port //关闭端口
speed Rate //设定速率
switch Switch language mode
traffic-suppress Set port traffic suppression
undo Negate a command or set its defaults
查询流量 先en进入全局模式,再con进入全局配置模式 /
查看上联口流量
5620(config)#interface eponnni 0/0/1
5620(config-if-eponnni-0/0/1)# display epon-port statistic
-----------------------------------------------------------------
PON Tx frames : 158064327
PON Rx frames : 202885703
PON Rx FEC error frames : 0
PON Rx HEC error frames : 0
PON PQ drop frames : 1074871
UNI Tx frames : 105488681
UNI Rx frames : 56330059
UNI Rx FEC error frames : 0
UNI PQ drop frames : 0
PON Tx MCPC frames : 102739553
PON Rx MCPC frames : 103766952
PON Tx OAM frames : 71400
PON Rx OAM frames : 70243
-----------------------------------------------------------------
查看以太网口流量
5620(config)#interface eth 0/1
5620(config-if-eth-0/1)#display port statistics 1
Number of transmitted frames =3479174
Number of received frames =1113331
Total number of frames =4592505
Number of transmitted multicast frames =4
Number of received multicast frames =825
Total number of multicast frames =829
Number of transmitted broadcast frames =175
Number of received broadcast frames =3483
Total number of boardcast frames =3658
Number of transmitted pause frames =0
Number of received pause frames =0
Number of transmitted octets =3491519664
Number of received octets =718725237
Total number of octets =4210244901
Number of alignment error frames =0
Number of discarded frames =198
Number of CRC error frames =0
Number of collision frames =0
Number of discarded undersized frames =0
Number of oversized frames =0
Number of CRC error packets(less than 64 octets in length) =0
Number of CRC error packets(longer than 1518 octets in length) =0
Number of packets(64 octets in length) =4059
Number of packets(65~127 octets in length) =1081090
Number of packets(128~255 octets in length) =228619
Number of packets(256~511 octets in length) =171165
Number of packets(512~1023 octets in length) =226317
Number of packets(1024~1518 octets in length) =2881255
Number of packets(1519~2047 octets in length) =0
Number of packets(2048~4095 octets in length) =0
Number of packets(4096~9216 octets in length) =0
查看用户Mac 地址 按端口查
5620#display mac-address port 0/1/1
-----------------------------------------------------------------------------
SRV-P TYPE MAC MAC TYPE F /S /P VPI VCI FLOW FLOW VLANID
INDEX TYPE PARA
-----------------------------------------------------------------------------
0 eth 0014-2a7f-3827 dynamic 0 /1 /1 - - vlan untag 2035
0 eth 0011-d8ac-5a4a dynamic 0 /1 /1 - - vlan untag 2035
0 eth 0019-f011-066e dynamic 0 /1 /1 - - vlan untag 2035
-----------------------------------------------------------------------------
Total: 3
Note: F--Frame, S--Slot, P--Port, VPI indicates GEM PortID for GPON,
VPI indicates ONT ID for EPON, v/e--vlan/encap,
pri-tag--priority-tagged, ppp--pppoe, ip--ipoe
按VLAN查
display mac-address vlan 1001
查看VLAN配置
MA5620(config)#display vlan all
----------------------------------------------------------------
VLAN Type TPID Attribute STND-Port NUM SERV-Port NUM
----------------------------------------------------------------
1 smart 0x8100 common 1 0
936 smart 0x8100 common 1 0
1035 smart 0x8100 common 1 1
1036 smart 0x8100 common 1 1
1037 smart 0x8100 common 1 1
1038 smart 0x8100 common 1 1
1039 smart 0x8100 common 1 1
1040 smart 0x8100 common 1 1
1041 smart 0x8100 common 1 1
1042 smart 0x8100 common 1 1
1043 smart 0x8100 common 1 1
1044 smart 0x8100 common 1 1
1045 smart 0x8100 common 1 1
1046 smart 0x8100 common 1 1
1047 smart 0x8100 common 1 1
1048 smart 0x8100 common 1 1
1049 smart 0x8100 common 1 1
1050 smart 0x8100 common 1 1
1051 smart 0x8100 common 1 1
1052 smart 0x8100 common 1 1
1053 smart 0x8100 common 1 1
1054 smart 0x8100 common 1 1
1055 smart 0x8100 common 1 1
1056 smart 0x8100 common 1 1
1057 smart 0x8100 common 1 1
1058 smart 0x8100 common 1 1
3599 smart 0x8100 common 1 0
----------------------------------------------------------------
Total: 27
Note : STND-Port--standard port, SERV-Port--service virtual port
文档已经阅读完毕,请返回上一页!