GPON命令模式

1、添加ont步骤

1.1 查看自动发现的ONT,并记录SN号和PON口

复制代码
MA5680T(config)#display ont autofind all 

---------------------------------------------------------------------
    Number         : 1
 
   F/S/P          : 0/1/0        ---PON口
 
   Ont SN         : 4857544365103A0D  --SN号
 
   Password        : 0x31383334313832783178(1834182x1x)
    Loid          :
    Checkcode        :
 
   VendorID        : HWTC
 
   Ont Version      : 170BC4B2
    Ont SoftwareVersion : V1R003C00S105
    Ont EquipmentID     : 010
 
   Ont autofind time   : 2014-04-20 21:48:09+08:00 
---------------------------------------------------------------
    The number of GPON autofind ONT is 1 
复制代码

1.2 添加ont

MA5680T(config)# interface  gpon  0/1

MA5680T(config-if-gpon-0/1)#ont  add  0  3 sn-auth  485754434B14D84C omci ont-lineprofile-id 1   ont-srvprofile-id 1 

MA5680T(config-if-gpon-0/1)#ont port native-vlan 0  3 eth 1 vlan 100

MA5680T(config-if-gpon-0/1)#quit 

1.3 配置业务流

MA5680T(config)#service-port  vlan 100 gpon 0/1/0  ont 3 gemport 1 multi-service user-vlan 100 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6

注:0   对应的是PON口  数值选择为0-7 共8个PON口 

      3   对应的是ONT ID,是在添加ONT时自己定义的一个数值,数值选择为0-128(添加ONT时) 

2、查看ont所有信息

MA5680T(config-if-gpon-0/1)#display ont info 0 3

3、删除ont

3.1 删除 service -port

undo service-port port 0/1/0  ont 0 gemindex 1 

3.2 删除ont

MA5680T(config)# interface  gpon  0/1

MA5680T(config-if-gpon-0/1)#ont del 0 0 (前面是端口号  后面是ont逻辑编号)

4、查看ONU收光功率

MA5680T(config-if-gpon-0/1)#display  ont  optical-info  0  1  (0是端口号 1是ONU id 号)

5、查看ONU的状态

MA5680T(config-if-gpon-0/1)#display  ont   info   0  1  ( 0是端口号 1是ONU id 号)

6、查看PON板的端口信息

MA5680T(config-if-gpon-0/1)#display    port    info 0  (0是端口号

7、查看PON板的端口状态

MA5680T(config-if-gpon-0/1)#display   port  state   0  (0是端口号

8、查看ONU的注册信息

MA5680T(config-if-gpon-0/1)#display  ont   register-info 0  1  ( 0是端口号 1是ONU id 号)
---------------------------------------------------------------------
  索引编号            : 2
  认证方式            : SN认证
  ONT序列号           : 485754436E3EDB04
  密   码             : 
  ONT类型             : SmartAX MA5620
  上线时间            : 2012-03-07 06:42:56
  下线时间            : 2012-03-09 06:00:49
  下线原因            : ONT掉电
---------------------------------------------------------------------
  索引编号            : 1
  认证方式            : SN认证
  ONT序列号           : 485754436E3EDB04
  密   码             : 
  ONT类型             : SmartAX MA5620 
  上线时间            : 2012-02-10 09:25:58
  下线时间            : 2012-03-07 06:15:55
  下线原因            : ONT掉电
---------------------------------------------------------------------

6、查看ONU版本信息
5680T(config-if-gpon-0/1)#display  ont version    0  1  ( 0是端口号 1是ONU id 号) 
--------------------------------------------------
  框/槽/端口   : 0/1/0 
  ONT编号      : 1 
  厂商编号     : HWTC 
  ONT版本      : MA5620 VER.B 
  产品编号     : 111 
  设备编号     : SmartAX MA5620 
  主用软件版本 : V8R308 C00 
  备用软件版本 :  
-------------------------------------------------
MA5680T(config)#vlan 10 smart (vlan可以随意添加没用过的)
MA5680T(config-if-vlanif10)#ip address 192.168.100.2 255.255.255.0    ///(只要是192.168.100段除了1和255都可以)
MA5680T(config)#service-port vlan 10 epon 0/1/0 ont 1 multi-service user-vlan 1000   ///(0/1/0 ont 1 是ont所在端口和ont id)
======================================================================
MA5680T(config)#display  ont  info  ?

by-desc               根据描述信息查找ONT 
by-ip                 根据IP地址查找ONT  
by-loid               根据逻辑标识查找ONT 
by-mac                根据MAC地址查找ONT 
by-password           根据密码查找ONT 
by-sn                 根据序列号查找
ONT frameid<U><0,1>       机框号
--------------------------------------------- 
3查看ONU的service-port 信息
  
MA5680T(config)#display service-port  port    0/1/0 ont   1(0/1/0是框号/槽号/端口号1是ONU id)
==================================
5、查看DBA 模板
  MA5680T(config)# display dba-profile all  
6、查看线路模板 
MA5680T(config)#display ont-lineprofile gpon all

22 查看语音扣板 narrow resource----display dsp state 0/0/1   (Failure:  frame 0 slot 0 does not have dsp resource) 上述语句说明查询失败,ASDA语音扣板故障

MAN.MA5680T(config-if-epon-0/18)#pppoe simulate start 3 21 eth 1 untagged user-name n0451***** user-password ****** authentication-mode chap

MAN.MA5680T(config-if-epon-0/18)#
  ----------------------------------
  ONT PPPoE 测试结果
  ----------------------------------
  框/槽/端口         : 0/18/3
  ONT编号            : 21
  ONT ETH 端口索引   : 1
  ONT Vlan ID        : -
  Vlan 优先级        : -
  PPPoE 测试结果     : 成功
  会话 ID            : 12903
  用户 IP            : 42.100.1.255
  用户网关           : 42.100.0.1

原文地址:https://www.cnblogs.com/sysk/p/8793745.html