搜档网
当前位置:搜档网 › GPON开局与业务开通配置脚本

GPON开局与业务开通配置脚本

GPON开局与业务开通配置脚本
GPON开局与业务开通配置脚本

----------------------------------- 第一步:系统配置-------------------------------------------------------------------------------------->>User name:root //输入用户名

>>User password:admin //输入密码

>>MA5680T>enable //进入普通模式

>>MA5680T #config //进入超级模式

>>MA5680T(config) #switch language-mode //切换成本地语言

>>MA5680T (config)#display board 0 //查看所有单板,如果有“待确认”单板,请用下一命令

>>MA5680T(config) #board confirm 0 //确认所有单板

>>MA5680T(config) #sysname********************* //设备命名

>>MA5680T(config)#terminal user password //修改用户密码

>>MA5680T(config)#terminal user name //创建新用户名/密码

>> (config)#autosave interval on //打开自动保存

------------------------------第二步:配置管理数据------------------------------------------------------------------------------------- >>MA5680T(config)#vlan xx standard //创建管理VLAN (一般选standard类型)

>>MA5680T(config)#port vlan xx0/19 0 //在上行口透传管理VLAN(上行端口,5680T上行端口共4个,分别为0/19 0,0/19 1,0/20 0,0/20 1)

>>MA5680T(config)#vlan xx(xx to xx)smart //创建业务VLAN (一般选SMART类型)

>>MA5680T(config)#port vlan xx(xx to xx)0/19 0 //在上行口透传业务VLAN到上行端口

>>MA5680T(config)#interface vlanif xx //创建VLAN 三层虚接口

>> (config-if-vlanif40)#ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx //配置管理IP 地址

>>(config-if-vlanif40)#description xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //对上层端口进行描述

>> (config-if-vlanif40)#quit //退出接口,返回上层

>> (config)#ip route-static0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx //配置缺省路由

-----------------------------------第三步:配置ONT---------------------------------------------------------------------------------------

步骤一:配置DBA 模板(DBA就是动态分配带宽机制)

>> (config)#dba-profile add profile-id 18profile-name "100M" type2 assure 102400 //1:8分光器流量模版

>> (config)#dba-profile add profile-id 116profile-name "77M" type2 assure 67968//1:16分光器流量模版

>> (config)#dba-profile add profile-id 132profile-name "40M" type2 assure 36672//1:32分光器流量模版

步骤二:配置线路模板(基于优先级映射方式)

>> (config)#ont-lineprofile gpon profile-id 100 profile-name "1:8_ONU" >> (config-gpon-lineprofile-100)#mapping-mode priority //设置映射类型为优先级映射

//以下用于创建通道:

>> (config-gpon-lineprofile-100)#tcont 0 dba-profile-id 100

>> (config-gpon-lineprofile-100)#gem add 0 eth tcont 0 //添加GEM port

>> (config-gpon-lineprofile-100)#gem add 1 eth tcont 0

>> (config-gpon-lineprofile-100)#gem add 2 eth tcont 0

>> (config-gpon-lineprofile-100)#gem add 3 eth tcont 0

>> (config-gpon-lineprofile-100)#gem mapping 0 0 priority 0 //设置优先级映射关系

>> (config-gpon-lineprofile-100)#gem mapping 1 0 priority 4

>> (config-gpon-lineprofile-100)#gem mapping 2 0 priority 3

>> (config-gpon-lineprofile-100)#gem mapping 3 0 priority 6

>> (config-gpon-lineprofile-100)#commit //退出之前保存线路模版配置,否则配置无效。

>> (config-gpon-lineprofile-100)#quit

>> (config)#ont-lineprofile gpon profile-id 200 profile-name "1:16_ONU"

>> (config-gpon-lineprofile-200)# mapping-mode priority

>> (config-gpon-lineprofile-200)#tcont 0 dba-profile-id 200

>> (config-gpon-lineprofile-200)#gem add 0 eth tcont 0

>> (config-gpon-lineprofile-200)#gem add 1 eth tcont 0

>> (config-gpon-lineprofile-200)#gem add 2 eth tcont 0

>> (config-gpon-lineprofile-200)#gem add 3 eth tcont 0

>> (config-gpon-lineprofile-200)#gem mapping 0 0 priority 0

>> (config-gpon-lineprofile-200)#gem mapping 1 0 priority 4

>> (config-gpon-lineprofile-200)#gem mapping 2 2 priority 3

>> (config-gpon-lineprofile-200)#gem mapping 3 0 priority 6

>> (config-gpon-lineprofile-200)#commit

>> (config-gpon-lineprofile-200)#quit

>> (config)#ont-lineprofile gpon profile-id 300 profile-name "1:32_ONU"

>> (config-gpon-lineprofile-300)#mapping-mode priority

>> (config-gpon-lineprofile-300)#tcont 0 dba-profile-id 300

>> (config-gpon-lineprofile-300)#gem add 0 eth tcont 0

>> (config-gpon-lineprofile-300)#gem add 1 eth tcont 0

>> (config-gpon-lineprofile-300)#gem add 2 eth tcont 0

>> (config-gpon-lineprofile-300)#gem add 3 eth tcont 0

>> (config-gpon-lineprofile-300)#gem mapping 0 0 priority 0

>> (config-gpon-lineprofile-300)#gem mapping 1 0 priority 4

>> (config-gpon-lineprofile-300)#gem mapping 2 2 priority 3

>> (config-gpon-lineprofile-300)#gem mapping 3 0 priority 6

>> (config-gpon-lineprofile-300)#commit

>> (config-gpon-lineprofile-300)#quit

---------------------第四步:注册ONT,并设置其管理IP ---------------------------------------------------------------------------

>>MA5680T(config)#interface gpon0/1

//进入业务单板

>>MA5680T(config-if-gpon-0/1)#port x ont-auto-find enable

//开启端口(0-3或0-7)的自动发现ONT功能

>>MA5680T(config-if-gpon-0/1)#display ont autofind x

//查看x端口下自动发现的设备

命令显示:

Command:

display ont autofind 0

------------------------------------------------------------------------

Number F/ S/ P SN Password

------------------------------------------------------------------------

1 0/ 7/ 0 32303131B402AC41

------------------------------------------------------------------------

>>MA5680T(config-if-gpon-0/1)#ont add x(端口号)x(ONT编号)sn-auth xxxxxxxxxxxxxxxx(设备序列号)snmp ont-lineprofile-id 200 desc xxxx

//ONT编号按照光分器不同而取值围不同,分别为0-7、0-15、0-31,顺序无所谓,不发生重复即可。

>>MA5680T(config-if-gpon-0/1)#ont ipconfig x(端口号)x(ONT编号)static ip-address xxx.xxx.xxx.xxx mask xxx.xxx.xxx.xxx gateway xxx.xxx.xxx.xxx vlan x priority 3

//设置B类ONU(如:MA5626G等)的管理IP为X.X.X.X,该命令下发后将会在ont上创建一个vlan并且添加了vlan interface,priority 设置根据线路模板中优先级映射的关系选择为3,也可自行调整优先级。

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

--------------------第五步:添加vlan的业务需端口---------------------------------------------------------------------------------

>>MA5680T(config)#service-port vlan x gpon x/x/x(机框/槽位/端口)

ont x gemport 2 multi-service user-vlan 2 rx-cttr 6 tx-cttr 6//使用了

默认流量模板6

>>MA5680T(config)#service-port vlan x gpon x/x/x(机框/槽位/端

口) ont x gemport 0 multi-service user-vlan x rx-cttr 6 tx-cttr 6 //流量模板可通过命令“display traffic table ip from-index 0”查看系统中所有流量配置模板,默认index 6为不限速。

--------------------第六步:登陆B类ONU(如MA5626G)进行配置------------------------------------------------------------------------------- >>MA5680T(config)#telnet X.X.X.X

//远程登陆到ONU

>>MA5626G(config)#vlan xxxx

//创建业务xxxx

>>MA5626G(config)#port vlan xxxx 0/0 1

//透传vlan的上行端口(PON口为0/0 1)

>>MA5626G(config)#service-port vlan xxxx eth 0/1/x multi-service user-vlan untagged rx-cttr 6 tx-cttr 6//添加vlan的业务端口,取值围为1-8、1-16、1-24,按照设备端口数围而定.eth为业务端口类型为以太口。

--------------------------------------------------------------------------------------------------------------------------------------------------------

>> (config)#save 最后一定记得保存

注意事项:

1.小区常用B类(如MA5626G)ONU设备,而A类(如HG813)

设备无法下发管理VLAN和地址,A类配置脚本详见附件文本。

2.流量模板可重新进行定义和配置,引用时只需引用index编号

即可。

3.SNMP配置脚本详见附件文本。

4.关于系统自动保存的机制,建议在进行大批量数据配置时事先

关闭,或修改自动保存的时间参数,否则会造成配置数据时系

统自动进行保存并在屏幕输出相关信息影响数据配置。

5.OLT设备用户权限与一般数通设备配置不同,详见附件华为官

方配置指导书。

6.OLT中可配置两种映射模式,即优先级映射和VLAN映射,但

鉴于VLAN映射会使得配置文件逐步增大,因此建议使用优先

级映射方式。

7.删除设备请按照注册设备步骤倒序进行,即查看service-port列

表中设备对应的service-port编号,删除该设备对应的

service-port,进入业务单板模式下执行ONT注销(删除命令)。

8.新开局OLT设备需联系华为人员装载补丁文件,否则会有相关

BUG影响业务开通和网络运行。目前地区的补丁有:SPC100、SPH117、HP1016。

常用查询命令介绍:

display ont autofind all

//全局模式下查看所有端口ONU设备自动发现

switch language-mode //全局模式下切换系统语言模式,可在中英文状态之间进行切换display current-configuration //全局模式下查看全局配置文件,添加参数可分模块显示

display service-port 参数//全局模式下查看service-port列表

display patch all //全局模式下查看系统现有所有补丁文件

save

//全局模式下保存系统配置文件

display ont autofind x //业务单板模式下查看本单板下端口ONU设备自动发现

display ont info x all //业务单板模式下查看已注册ONU设备状态

ont delete x x //业务单板模式下注销(删除)x端口下第x个ONU设备

ont modify 参数//业务单板模式下对已注册ONU设备进行相关参数编辑和调整

ont deactivate x x //业务单板模式下对已注册ONU进行去激活操作(排查流氓ONU时常用)

ont activate x x //业务单板模式下对已注册ONU进行激活操作(排查流氓ONU时常用)

相关主题