一 OLT?
1 进入 MA5680T 后进入终端配置模式进行操作, 进入此模式的方法为:?
- ?
- MA5680T>enable??
- MA5680T#config?
- MA5680T(config)#
查看自动发现的 ONU
MA5680T(config)#display ont autofind all
查看端口下 ONU 的状态
- MA5680T(config)#interface gpon(框 / 槽)
- MA5680T(config-if-gpon-0/1)#display ont info (口) all
如: 需要查看 0/1/2 端口下的 ONU 状态:
- MA5680T(config)#interface gpon 0/1
- MA5680T(config-if-gpon-0/1)#display ont info 2 all
查看 ONU 的详细信息 (ONU 最近上下线的时间及原因等信息):
- MA5680T(config)#interface gpon(框 / 槽)
- MA5680T(config-if-gpon-0/1)#display ont info (口)(ONT ID
如: 查看 0/1/2 端口下 ONT ID 为 0 的信息:
- MA5680T(config)# interface gpon 0/1
- MA5680T(config-if-gpon-0/1)#display ont info 0 0
二 ONU
查看端口状态:
查看 MA5626 下端口的状态: 若端口为 激活 则已经打开, 若为 去激活 则为关闭
MA5626(config)#display board 0/1
关闭或打开端口
- MA5626(config)# interface eth 0/1
- MA5626(config-if-eth-0/1)#undo shutdown (端口号) 打开端口
- MA5626(config-if-eth-0/1)#shutdown (端口号) 关闭端口
- MA5680T (config)#display board 0 查看所有的单板 0 是框号
- MA5680T (config)# interface gpon 0/1 进入 GPON 命令模式 1 是 PON 口号
- MA5680T(config-if-gpon-0/1)# port 0 ont-auto-find enable 0 是 端口号
1 通过端口查看 ONU 的 mac-address
MA5680T (config)# display mac-address port 0/1/0 (0/1/0 是框号 / 槽号 / 端口号)
2 通过 VLAN 查看 ONU 的 mac-address
MA5680T (config)# display mac-address vlan 100 ( 100 是 VLAN id)
3 查看 ONU 的 service-port 信息
MA5680T(config)#display service-port port 0/1/0 ont 1(0/1/0 是框号 / 槽号 / 端口号 1 是 ONU id)
4 查看 MA5680T 的版本信息
MA5680T(config)# display version
5 查看 DBA 模板
MA5680T(config)# display dba-profile all
6 查看线路模板
MA5680T(config)#display ont-lineprofile gpon all
7 查看单板信息
MA5680T(config)# display board 0
8 查看单板上 ONU 的信息
MA5680T(config)# display board 0/1 (0/1 是框号 / 槽号)
1 查看 ONU 收光功率
MA5680T(config-if-gpon-0/1)#display ont optical-info 0 1 (0 是端口号 1 是 ONU id 号)
2 查看 ONU 的状态
MA5680T(config-if-gpon-0/1)#display ont info 0 1 ( 0 是端口号 1 是 ONU id 号)
3 查看 PON 板的端口信息
MA5680T(config-if-gpon-0/1)#display port info 0 (0 是端口号
4 查看 PON 板的端口状态
MA5680T(config-if-gpon-0/1)#display port state 0 (0 是端口号
5 查看 ONU 的注册信息
MA5680T(config-if-gpon-0/1)#display ont register-info 0 1 ( 0 是端口号 1 是 ONU id 号)
6 查看 ONU 版本信息
MA5680T(config-if-gpon-0/1)#display ont version 0 1 ( 0 是端口号 1 是 ONU id 号)
disp service-port port 0/6/7 ont 26 查看限速模版
ont port native-vlan 3 0 eth 4 vlan 4 开 H 的 eth
创建 DBA 模板 (模板 id 为 120, 模板名称为 hisense, 模板类型为 type4 最大带宽)
- Huawei(config)# dba-profile add profile-id 120 profile-name hisense type4 max 102400
- Huawei(config)#display dba-profile all
创建 vlan, 并将上联端口加入该 vlan
- Huawei(config)# vlan 112 smart
- Huawei(config)# port vlan 112 0/8 0 (0 为机框号, 8 为上联板槽位号, 0 为上联端口号)
- Huawei(config)#display port vlan 0/8/0
创建线路模板 (模板 id 为 100, 模板名称为 hisense)
- Huawei(config)# ont-lineprofile gpon profile-name hisense profile-id 100 绑定 T-cont 与 dba 模板 (只有绑定了 dba 模板的 T-cont 才能承载业务)
- Huawei(config-gpon-lineprofile-100)# tcont 1 dba-profile-id 120 建立线路模板中 GEM port 与 T-cont 的绑定关系 (在建立业务虚端口之前, 首先应建立 GEM port 与 T-cont 的绑定关系)
- Huawei(config-gpon-lineprofile-100)# gem add 0 eth tcont 1 建立 GEM port 与 ont 用户接口上行数据流的映射关系 (gem 索引号为 0,gem mapping 索引号为 1)
- Huawei(config-gpon-lineprofile-100)# gem mapping 0 1 vlan 112
- Huawei(config-gpon-lineprofile-100)# commit
- Huawei(config)#display ont-lineprofile gpon profile-id 100
创建业务模板 (模板 id 为 100, 模板名称为 hisense)
- Huawei(config)# ont-srvprofile gpon profile-name hisense profile-id 100 进入该业务模板, 创建 ONT uni 类型 (以 HG8110 为例: 1 个以太网口 1 个 pots 口; 若 HG8245 为例, 则该处的配置为 ont-port eth 4 port 2), 并将 ont 以太网口配置为透传模式
- Huawei(config-gpon-srvprofile-200)# ont-port eth 1 pots 1
- Huawei(config-gpon-srvprofile-200)# port vlan eth 1 transparent
- Huawei(config-gpon-srvprofile-200)# commit
- Huawei(config)#display ont-srvprofile gpon profile-id 100
创建业务模板 (模板 id 为 100, 模板名称为 hisense)
- Huawei(config)# ont-srvprofile gpon profile-name hisense profile-id 100 进入该业务模板, 创建 ONT uni 类型 (以 HG8110 为例: 1 个以太网口 1 个 pots 口; 若 HG8245 为例, 则该处的配置为 ont-port eth 4 port 2), 并将 ont 以太网口配置为透传模式
- Huawei(config-gpon-srvprofile-200)# ont-port eth 1 pots 1
- Huawei(config-gpon-srvprofile-200)# port vlan eth 1 transparent
- Huawei(config-gpon-srvprofile-200)# commit
- Huawei(config)#display ont-srvprofile gpon profile-id 100
创建业务虚端口, 并将 pon 口下的 ont 加入该业务虚端口 (业务虚端口用于用户设备的接入, 通过用户设备接到业务虚端口形成业务流, 从而使用户接入各种业务流成功执行后, 业务承载于此虚端口上)
- Huawei(config)# service-port 0 vlan 112 gpon 0/3/0 ont 0 gemport 0 multi-service user-vlan 112 (0 为机框号, 3 为业务板槽位号, 0 为 pon 口号, 0 为 ont ID)
- SS-HaiBingLu-OLT051(config)#display ont info 0 13 3 all 查看 PON 口下所有设备信息 (SN ONTID 在线情况 激活情况)
- SS-HaiBingLu-OLT051(config)#display ont info 0 13 3 63 查看 ONU 设备信息
- SS-HaiBingLu-OLT051(config)#display ont-lineprofile gpon all 查看线路模板
- SS-HaiBingLu-OLT051(config)#display service-port port 0/13/3 ont 63 查看 ONU service-port 信息
- SS-HaiBingLu-OLT051(config)#display mac-address vlan 1526 查看 OLT 上学习到该 VLAN 的 MAC 地址
display current-configuration section gpon | include 0 13 3 筛选单独配置信息
display current-configuration section v 查看 OLT VLAN 信息
查看线路模板给的限速
- dba-profile add profile-id 11 profile-name "Manage" type3 assure 1024 max 2048
- dba-profile add profile-id 48 profile-name "MA5626G_24FE-4" type3 assure 102400 max 204800
- ont-lineprofile gpon profile-id 30 profile-name "MA5626G_8FE"
- tcont 1 dba-profile-id 11
- tcont 2 dba-profile-id 42 // 调用限速模板 ID 42
- gem add 0 eth tcont 1 cascade on
- gem add 1 eth tcont 2 // 用 TCONT 2 限速 (大带宽新建线路模板不要 GEM CAR)
- gem mapping 0 0 vlan 8
- gem mapping 1 0 vlan 100
- SS-HaiBingLu-OLT051(config-if-gpon-0/13)#display statistics ont-line-quality 3 查看 PON 口下的误码情况 (可加 ONTID)
clear statistics ont-line-quality 3 清除 PON 口下的误码信息
display ont autofind 3(ALL PON 口外使用) 查看新发现设备
ont add 3 63 sn-auth 4857544334716A2C snmp ont-lineprofile-id 30 在 PON 口 3 添加 ONTID63 的 ONU 使用线路模板 30 模式 SNMP 串号认证
ont add 3 63 password-auth 1111 hex 1111 always-on omci ont-lineprofile-id 1 ont-srvprofile-id 1 添加 ONTID63 使用线路模板 1 服务模板 1(仅 H 设备需要添加服务模板) 密码认证
ONT Modify 3 1 sn
ONT Modify 3 1 ont-lineprofile-id 1 ont-srvprofile-id 1 修改 ONU 串号 密码 线路模板 服务模板各种
SS-HaiBingLu-OLT051(config-if-gpon-0/13)#display ont optical-info 3 63 查看设备光功率信息
ont port native-vlan 3 1 eth 1 vlan 4 priority 0 (H 设备使用) 在 H 设备第一口使用 VLAN 4 优先级 0
ont ipconfig 0 63 static ip-address 10.220.21.184 mask 255.255.252.0 gateway 10.220.20.1 vlan 8 priority 0 (B 设备) 手工分配 B 设备管理 IP
service-port vlan 1986 gpon 0/18/0 ont 63 gemport 1 multi-service user-vlan 101 tag-transform translate-and-add inner-vlan 3 inner-priority 0 inbound traffic-table index 6 outbound traffic-table index 6 添加 service-port 将外层 VLAN 1986 内层 VLAN 3 ONU 设备 VLAN 使用 101 使用限速模板 6(不限速)
service-port vlan 8 gpon 0/18/0 ont 63 gemport 0 multi-service user-vlan 8 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6 为 ONU 添加管理 VLAN 8 (不添加管理 VLAN 无法登陆 ONU)
service-port vlan 1612 gpon 0/13/3 ont 63 gemport 1 multi-service user-vlan 100 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6 专线透传 VLAN 打标签, m
port vlan 1620 0/19 VLAN1620 上行口 0/19
vlan 1575 smart 创建 VLAN SMART 类型
(test 模式下)pots emulational-caller caller-port 0/2/1 callee-telno xxxxxxxxxxx 仿真测试
来源: http://www.bubuko.com/infodetail-2532941.html