通信人家园

标题: 【ZTE C300】GPON高级功能测试指令分享  [查看完整版帖子] [打印本页]

时间:  2025-8-20 19:41
作者: lary2020     标题: 【ZTE C300】GPON高级功能测试指令分享


原文链接 https://mp.weixin.qq.com/s/8RM2wgwSYNFM34JBuLfHTg
前言
光猫ONT产品除了要测试上网、语音和IPTV三种基本功能外,还需要测试巨型帧,广播、组播、未知单播抑制等高级功能。测试这些功能需要在OLT下发相应的指令,本文整理一些高级功能测试涉及到的一些指令,欢迎大家收藏、转发!
查询设置全局最大帧长,组播、未知单播、广播限制
目的:
1)测试ONU是否支持2000字节巨型帧,实际测试发现最大只能转发1600字节,经过排查发现是C300的设置设置最大只能转发1600字节的帧;
2)测试ONU对广播报文、组播报文和未知单播报文的抑制功能
C300 V2.1版本指令:
show eth-switch                               //查询以太网交换全局参数
eth-switch max-frame-length 2200          //设置最大转发帧长
eth-switch broadcast-limit 1000 burst-size 3000     //设置系统对广播包的抑制为1000 pps ,突发报文抑制未3000pps
eth-switch unknowncast-limit 3000        //设置系统对未知单包的抑制为3000 pps
eth-switch multicast-limit 10000            //设置系统对组播包的抑制为10000 pps
ZXAN(config)#show eth-switchbroadcast-limit   :limitnum=100  pps,burstsize=2000 kbyteunknowncast-limit :2000 ppsmulticast-limit   :unlimitedmax-frame-length  :2200ZXAN(config)#eth-switch max-frame-length 2200ZXAN(config)#eth-switch broadcast-limit 1000 burst-size 3000 ZXAN(config)#eth-switch unknowncast-limit 3000ZXAN(config)#eth-switch multicast-limit 10000 ZXAN(config)#eth-switch ?  broadcast-limit    Configure broadcast-limit information  hold-off-time      Configure hold off time  l2cp               Configure l2cp record information  mac-protect        Configure protected mac-address  max-frame-length   Configure max-frame-length  multicast-limit    Configure multicast-limit information  unknowncast-limit  Configure unknowncast-limit information

设置未注册ONU的显示参数
目的:显示未注册ONU的产品型号、pw、sn等参数
C300 V2.1版本指令:
pon
uncfg-onu-display-info model sn pw   //设置显示产品型号,GPON SN和GPON password
show pon onu uncfg gpon-olt_1/8/1   \\查询未注册的ONU
ZXAN#config t%Info 20272: Enter configuration commands, one per line. End with CTRL/Z.ZXAN(config)#ponZXAN(config-pon)#uncfg-onu-display-info ?  autofindtime  Autofind ONU time  channel       Use "show pon channel ..." to get the details  hexpw         Password in HEX format  loid          LOID  loidhpw       Logical password in HEX mode  loidpw        Logical password  mac           MAC address  model         ONU model  pw            Password  rid           ONU RID information  sn            Serial number  vendorid      ONU vendor ID  version       ONU software version  <cr>ZXAN(config-pon)#uncfg-onu-display-info model sn pwZXAN(config-pon)#show pon uncfg-onu-display-infoColumn of unconfigured ONU( * means visible)  MAC:  SN:           *  PW:           *  Hex PW:  LOID:  LOID PW:  LOID HPW:  Model:        *  Version:  RID:  VendorId:  AutoFindTime:  Channel:ZXAN(config-pon)#show pon onu uncfg gpon-olt_1/8/1OltIndex            Model                SN                 PW-------------------------------------------------------------------------gpon-olt_1/8/1      F663NV3a             ZTEGCC2CB7AE       123456

开启OLT/ONU之间系统时间同步
目的:
测试ONU从OLT同步时间功能;
C300 V2.1版本指令:
pon
time-sync enable    //使能ONU和OLT同步时间功能
show pon config global  //查询PON全局配置,确认同步时间功能状态
ZXAN(config)#ponZXAN(config-pon)#time-sync enableZXAN(config-pon)#show pon config globalTime sync state:            enableMulticast forward mode:     SCBPTP state:                  disable
开启禁用FEC
目的:测试上下行FEC功能
C300 V2.1版本指令:
interface gpon-olt_1/8/7         
fec downstream                      //启用下行FEC
fec none                                  //禁用下行FEC
interface gpon-onu_1/8/7:4   
fec upstream                           //启用上行FEC
fec none                                   //禁用上行FEC
ZXAN(config)#interface gpon-olt_1/8/7ZXAN(config-if)#fec ?  downstream  Downstream  none        None directionZXAN(config-if)#fec downstreamZXAN(config-if)#exitZXAN(config)#interface gpon-onu_1/8/7:4ZXAN(config-if)#fec ?  auto      Auto  none      None  upstream  UpstreamZXAN(config-if)#fec upstream
开启禁用GEM Port的加密功能
目的:测试上下行加密功能
C300 V2.1版本指令:
interface gpon-onu_1/8/7:4
encrypt 1 enable bidirection          //gemport 1启用上下行加密功能
ZXAN(config)#interface gpon-onu_1/8/7:4ZXAN(config-if)#encrypt ?  <1-255>  GEM port indexZXAN(config-if)#encrypt 1 ?  disable  Disable  enable   EnableZXAN(config-if)#encrypt 1 enable ?  bidirection  Bidirection unicast  downstream   Downstream unicast  <cr>ZXAN(config-if)#encrypt 1 enable bidirectionZXAN(config-if)#encrypt 1 disable
开启禁用组播加密
目的:测试下行组播流加密功能
C300 V2.1版本指令:
interface gpon-olt_1/8/1
multicast-encrypt enable     //启用组播加密
multicast-encrypt disable     //禁用组播加密
ZXAN(config)#interface gpon-olt_1/8/1ZXAN(config-if)#multicast-encrypt ?  disable  Disable  enable   EnableZXAN(config-if)#multicast-encrypt enable
UNI端口控制
目的:测试OLT禁用ONU的LAN口
C300 V2.1版本指令:
pon-onu-mng gpon-onu_1/8/1:2
interface eth eth_0/1 state lock       //禁用LAN1口
interface eth eth_0/1 state unlock    //启用LAN1口
ZXAN(config)#pon-onu-mng gpon-onu_1/8/1:2ZXAN(gpon-onu-mng 1/8/1:2)#interface eth eth_0/1 ?  arc            Alarm reporting control  l2l3           Interface is bridged or derived from IP router  loop           Loopback of downstream after PHY transceiver  mtu            The maximum frame size allowed across  pause-time     The time to temporarily suspend sending data  power-control  Power provided control to an external equipment  pppoe-filter   Controls filtering of PPPoE packets on this port  speed          Duplex speed  state          Administrative state  type           The expected circuit pack type  wiring         Ethernet interface wiring  <cr>ZXAN(gpon-onu-mng 1/8/1:2)#interface eth eth_0/1 state lockZXAN(gpon-onu-mng 1/8/1:2)#interface eth eth_0/1 state unlock
远程重启和复位ONU
目的:测试OLT可以远程重启和复位ONU
C300 V2.1版本指令:
pon-onu-mng gpon-onu_1/8/1:2
reboot                     //重启ONU
restore factory       //复位ONU,注意需要ONU支持中兴的私有ME
ZXAN(config)#pon-onu-mng gpon-onu_1/8/1:2ZXAN(gpon-onu-mng 1/8/1:2)#rebootZXAN(gpon-onu-mng 1/8/1:2)#restore factory
光功率测量
目的:测试ONU上报的收发光功率是否准确
C300 V2.1版本指令:
show gpon remote-onu interface pon gpon-onu_1/8/1:2   //Rx optical level是收光功率,Tx optical level是发光功率
ZXAN(config)#show gpon remote-onu interface pon gpon-onu_1/8/1:2Interface:                   pon_0/1GEM blocklen:                48 (bytes)SF threshold:                5SD threshold:                9Alarm:                       enableAlarm disable interval:      0Total T-CONT number:         16Piggyback DBA rpt mode:      mode0 onlyWhole ONU DBA rpt mode:      not supportRx optical level:            -22.078(dBm)Lower rx optical threshold:  ont internal policyUpper rx optical threshold:  ont internal policyTx optical level:            3.052(dBm)Lower tx optical threshold:  ont internal policyUpper tx optical threshold:  ont internal policyONU response time:           35987(ns)Power feed voltage:          3.22(V)Laser bias current:          11.356(mA)Temperature:                 46.543(C)
测距功能
目的:测试ONU的测距功能
C300 V2.1版本指令:
interface gpon-olt_1/8/1
range-mode 0 200             //设置GPON接口的测距范围是0~20公里,注意设置单位是100米
show gpon onu detail-info gpon-onu_1/8/1:2    //查询结果中的ONU Distance就是ONU与OLT之间的距离
ZXAN(config)#interface gpon-olt_1/8/1ZXAN(config-if)#range-mode ?  <0-1000>  Base distance, unit is 100mZXAN(config-if)#range-mode 0 200[Successful]ZXAN(config-if)#exitZXAN(config)#show gpon olt range-mode gpon-olt_1/8/1OltInterface             Base-distance(100m)  Maximum-distance(100m)---------------------------------------------------------------------gpon-olt_1/8/1           0                    200ZXAN(config)#show gpon onu detail-info gpon-onu_1/8/1:2ONU interface:         gpon-onu_1/8/1:2  Name:                ONU-1:2  Type:                ZTE-F680  State:               ready  Configured channel:  auto  Current channel:     1(GPON)  Admin state:         enable  Phase state:         working  Config state:        success  Authentication mode: sn  SN Bind:             enable with SN check  Serial number:       ZTEG12345678  Password:  Description:         ONU-1:2  Vport mode:          gemport  DBA Mode:            Hybrid  ONU Status:          enable  OMCI BW Profile:  Line Profile:        N/A  Service Profile:     N/A  ONU Distance:        78m  Online Duration:     14h 26m 35s  FEC:                 none  FEC actual mode:     N/A  1PPS+ToD:            disable  Auto replace:        disable  Multicast encryption:disable  Multicast encryption current state:N/A------------------------------------------       Authpass Time          OfflineTime             Cause   1   2025-08-15 16:15:35    2025-08-15 16:24:04     LOSi   2   2025-08-15 16:25:05    2025-08-15 16:35:36     LOSi   3   2025-08-15 16:36:38    2025-08-15 16:36:44     LOSi   4   2025-08-15 16:37:00    2025-08-15 16:41:59     DyingGasp   5   2025-08-15 16:43:02    2025-08-15 17:03:35     LOSi   6   2025-08-15 17:03:50    2025-08-15 17:33:05     LOSi   7   2025-08-15 17:33:18    2025-08-15 19:18:03     LOSi   8   2025-08-15 19:18:20    2025-08-15 19:19:44     LOSi   9   2025-08-15 19:19:59    2025-08-15 19:27:48     LOSi  10   2025-08-15 19:28:50    0000-00-00 00:00:00
流氓ONU检测
目的:
测试ONU长发光时,OLT能否检测到并将ONU关闭
C300 V2.1版本指令:
pon
rogue-onu-detect olt gpon-olt_1/8/7 locate enable auto-shutdown enable   //1框8槽7号PON口启用流氓ONU检测功能及自动关闭功能
rogue-onu-detect 8 enable locate enable auto-shutdown enable     //1框8槽线卡启用流氓ONU检测功能及自动关闭功能
show pon rogue-onu-info gpon-olt_1/8/7    //显示流氓ONU
ZXAN(config)#ponZXAN(config-pon)#rogue-onu-detect olt gpon-olt_1/8/7 locate enable auto-shutdown enable ZXAN(config-pon)#rogue-onu-detect 8 enable locate enable auto-shutdown enableZXAN(config)#show pon rogue-onu-info gpon-olt_1/8/7

关闭开启及禁用启用ONU
目的:
1)测试OLT关闭ONU,ONU进入离线状态,开启ONU后ONU恢复上线
2)测试OLT禁用ONU功能,ONU进入O7紧急状态,启用后恢复上线
C300 V2.1版本指令:
interface gpon-onu_1/8/1:2
shutdown            //关闭光猫,ONU进入离线状态,更换PON口可以重新上线
no shutdown       //开启光猫,ONU重新注册上线
disable               //禁用光猫,ONU进入O7状态,更换PON口仍无法重新上线
enable                //启用光猫,ONU恢复正常,可以重新注册上线
ZXAN(config)#interface gpon-onu_1/8/1:2ZXAN(config-if)#?  1pps-tod                  Configure the state of the 1PPS-ToD  access-service            Config interface access-service profile  action                    Active/Deactive ONU  authpass-control          Configure operation after ONU is registered on NMS  auto-replace              Configure the state of the auto-replace  channel                   Switch ONU channel  clear                     Clear the data of this ONU  dba                       Configure DBA mode  description               Configure the description of the ONU  dhcpv4-l2-relay-agent     dhcpv4-l2-relay-agent port config  dhcpv6-l2-relay-agent     dhcpv6-l2-relay-agent port config  dhcpv6-l2-relay-mode      dhcpv6-l2-relay-mode port config  disable                   Disable ONU  do                        Do privilege mode command(s)  dot1x                     config interface enable/disable  enable                    Enable ONU  encrypt                   Configure encrypt status of the certain port of ONU  end                       Exit to EXEC mode  exit                      Exit from current configuration mode.  fec                       Configure forward error correction of ONU  gemport                   Configure the parameters of GEM port  http                      Configure http mng port for onu  igmp                      Configure IGMP interface property  ip                        Global IP configuration subcommands  ip-service                Configure ip-service information  ip-source-guard           Config ip-source-guard port information  iptv                      Config Iptv Gpon Onu Info.  ipv6                      Global IP v6 configuration subcommands  link-test                 Test the link status between OLT and ONU  loopback-detection        configure loopback detection paraments  mld                       Configure MLD interface property  multicast-encrypt         Enable/Disable encrypting multicast  mvlan-translate           Set mvlan translate characteristics of the interface  name                      Configure alias of the ONU  ndp-lio                   ndp-lio port config  no                        Negate a command or set its defaults  omcc-bandwidth            Configure ONU OMCI channel bandwidth  omcc-encrypt              Enable/Disable encrypting OMCI channel  optical-line-number       Configure optical line number of the ONU  perf-clear-current        Clear current performance  perf-profile              Apply performance alarm profile  performance               Configure performance  port-identification       Configure port-identification format  pppoe-intermediate-agent  configure pppoe-intermediate-agent port information  qos                       Configure the qos parameters  range                     Show portlist of the range  registration-method       Configure ONU registration method  security                  Configure security parameters  service-port              Configure service characteristics of the interface  show                      Show running system information  shutdown                  Shutdown the selected interface  sn-bind                   Enable/Disable binding SN to ONU registered with non-SN  state                     Configure the state of the ONU  statistics                Statistics  switchport                Configure switching characteristics  tcont                     Configure T-CONT  telnet                    Configure telnet mng port for onu  traffic-profile           Configure traffic profile parameters  type                      Configure ONU type  virtual-mac               Configure virtual-mac enable or disable  vport                     Create vport  vport-map                 Create vport map relationship  vport-mode                Configure vport map modeZXAN(config-if)#shutdownZXAN(config-if)#no shutdownZXAN(config-if)#disableZXAN(config-if)#enable



时间:  2025-8-21 00:45
作者: 不吹不黑

谢谢你的分享
时间:  2025-8-21 07:15
作者: 为别人打工的人






通信人家园 (https://www.txrjy.com/) Powered by C114