MA5680T配置指导

MA5680T配置指导(适用于V800R006C02版本)
《1-常用命令》
//登陆用户名root,密码 admin
MA5680T>enable //打开特权EXEC
MA5680T#config //进入终端配置模式
MA5680T(config)#sysname SJZ-HW-OLT-1 //设备命名 (一般为开局配置)
MA5680T(config)#switch language-mode //切换语言,可以在中英文语言中转换。

MA5680T (config) #terminal user name //添加操作用户huawei
User Name(length<6,15>):huawei //设置用户名
User Password(length<6,15>):huawei123 //要求输入密码.输入部分实际为不可见的
Confirm Password(length<6,15>): huawei123 //要求再次确认一遍密码
User profile name(<=15 chars)[root]:root //输入用户管理级别
User’s Level:
1. Common User 2. Operator 3. Administrator:3 //选择用户权限
Permitted Reenter Number(0–4):1 //设置此用户名可重复登录次数,一般要求为1次
User’s Appended Info(<=30 chars):HuaweiAdm //添加描述,可不设置。
Adding user succeeds
Repeat this operation? (y/n)[n]:
MA5680T(config)#display board 0 //检查设备单板状态,此命令最常用。

SlotID BoardName Status SubType0 SubType1 Online/Offline

0
1 H802EPBC Normal
2 H802EPBC Normal
3 H802EPBC Normal
4 H802EPBC Auto_find
5
6
7 H801SCUL Active_normal
8 H801SCUL Standby_normal
9
10
11
12
13
14
15
16
17 H801GICF Normal
18 H801X2CA Normal
19
19
20

MA5680T(config)#board confirm 0 //对于自动发现的单板,需要确认后,单板才能使用。
//对于未确认的单板,单板硬件运行指示灯正常,但是业务端口无法工作。
《2-开局配置命令》
MA5680T (config)#vlan 99 smart //增加设备管理VLAN (一般为开局配置)
MA5680T (config)#vlan 10 smart //增加语音业务VLAN (一般为开局配置)
MA5680T (config)#port vlan 99 0/18 0 //将管理VLAN透传到上行端口. (一般为开局配置)
MA5680T (config)#port vlan 10 0/17 1 //将语音业务VLAN透传到上行端口(一般为开局配置)
// 0/18 0 意思为第0框(默认框号) / 第18槽位(槽位编号,一般在机框上都有标出) 0端口(上行口编号)
MA5680T (config)#vlan desc 99 description NMS VLAN //添加vlan的描述, (一般为开局配置)
MA5680T (config)#vlan desc 10 description NGN-VPN
//配置设备管理地址,(一般为开局配置)
MA5680T (config)#interface vlanif 99
MA5680T (config-if-vlanif99)#ip address 172.16.21.2 255.255.255.0
MA5680T (config-if-vlanif99)#quit
MA5680T (config)#ip route-static 0.0.0.0 0.0.0.0 172.16.21.1 //配置设备缺省路由 (一般为开局配置)
MA5680T (config)#ip route-static 10.0.0.0 255.0.0.0 10.50.42.1 //配置语音部分路由 (一般为开局配置)
//设置上行端口速率以及双工模式 (一般为开局配置)
MA5680T (config)#interface giu 0/17
MA5680T (config-if-giu-0/17)#speed 0 1000 //配置端口速率,GE口只能配置成1000, 10GE口只能配置成10000
MA5680T (config-if-giu-0/17)#speed 1 1000
MA5680T (config-if-giu-0/17)#duplex 0 full //配置双工模式,half为半双工,full为全双工
MA5680T (config-if-giu-0/17)#duplex 1 full
MA5680T (config-if-giu-0/17)#auto-neg 0 disable //配置自协商模式,disable为禁止自协商,enable为允许
MA5680T (config-if-giu-0/17)#auto-neg 1 disable
MA5680T (config-if-giu-0/17)#quit
//在终端配置模式下添加网管SNMP参数
snmp-agent community read public //设置读参数
snmp-agent community write private //设置写参数
snmp-agent sys-info contact HUAWEI TEL:4008302118 //设置SNMP联系信息
snmp-agent sys-info location SHIJIAZHUANG UNIONCOM NETWORKSTATIONM //设置SNMP本地信息
snmp-agent sys-info version v1 //设置SNMP版本信息
snmp-agent target-host trap-hostname N2000SERVER address 172.16.255.2 udp-port 161 trap-paramsname private
//设置网管参数,N2000SERVER为网管计算机名称,172.16.255.2为网管地址。通信端口一般为161,读串为private
//以下为添加的两个综合网管的管理参数。
snmp-agent target-host trap-hostname public.61.182.202.57 address 61.182.202.57 trap-paramsname public
snmp-agent target-host trap-hostname public.61.182.202.46 address 61.182.202.46 trap-paramsname public
snmp-agent target-host trap-paramsname private v1 securityname private
snmp-agent target-host trap-paramsname public v1 securityname public
snmp-agent trap enable standard //启用SNMP 标准 trap报文功能

//查看EMU电源监控信息.如果没有需要新建系统环境监控模块
MA5680T (config)# display emu 0
MA5680T (config)# emu del 0 //如果EMU电源模块添加不正确,需要删除EMU重新添加。此为删除命令
Are you sure to delete this EMU?(y/n)[n]:y

MA5680T (config)# emu add 0 FAN 0 1 H801FCBC //新建EMU环境监控电源模块.
MA5680T (config)#display emu 0 //EMU被正确装入的情况下,查看后显示信息如下:
EMU ID: 0

EMU name : H801FCBC
EMU type : FAN
Used or not : Used
EMU state : Normal
Frame ID : 0
Subnode : 1

MA5680T (config)#interface emu 0 //进入电源模块0.
MA5680T (config-if-fan-0)# fan speed mode automatic //修改电源风扇速度.
MA5680T (config-if-fan-0)#quit
//配置业务单板数据,需要打开ONU自动发现功能.否则下挂设备之后无法在OLT上查看到新发现的设备。.
MA5680T (config)#interface epon 0/1 //进入EPON命令模式
MA5680T (config-if-epon-0/1)#port 0 ont-auto-find enable // 打开1槽位各业务端口的ONT自动发现功能
MA5680T (config-if-epon-0/1)#port 1 ont-auto-find enable
MA5680T (config-if-epon-0/1)#port 2 ont-auto-find enable
MA5680T (config-if-epon-0/1)#port 3 ont-auto-find enable
MA5680T (config-if-epon-0/1)#quit
MA5680T (config)#interface gpon 0/2 //进入GPON命令模式
MA5680T (config-if-gpon-0/2)#port 0 ont-auto-find enable // 打开OLT2槽位单板各端口的ONT自动发现功能
MA5680T (config-if-gpon-0/2)#port 1 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 2 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 3 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 4 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 5 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 6 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 7 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#quit
……
//设置完成进行保存
MA5680T (config)#save //保存配置信息。 切记操作完成之后保存。
《3-业务配置命令》
第一步:创建业务vlan,并在上行口作透传
MA5680T (config)#vlan 2223 smart //增加业务VLAN。所有业务vlan均采用SMART VLAN属性
MA5680T (config)#vlan 200 smart //增加专线VLAN
MA5680T (config)#port vlan 2223 0/18 0 //将业务VLAN透传到上行端口
MA5680T (config)#port vlan 200 0/18 0 //将专线VLAN透传到上行口
//如果不确定上行口,可以通过以下命令查询上行口配置进行参考。
MA5680T(config)# display current-configuration section vlan //查看配置文件中的VLAN配置,参考端口配置部分
……
Port vlan xxx 0/18 0
……
MA5680T (config)#vlan desc 2223 description 604-MianSiXiaoQu //添加业务描述
第二步:查看DBA模板,如果没有,需要创建
MA5680T (config)#display dba-profile all //查看OLT的 DBA能力集模板.
//1-9 为系统自带的DBA能力集模板。
//DBA是基于整个ONT调度的,需根据ONT的业务类型和用户数选择适合的带宽类型和带宽大小。
//注意fix带宽和assure带宽之和不能大于PON接口总带宽。
关于开局DBA模板的选择
当前设备默认的dba模板是保证10M,最大15M,这对于一般的ONU设备以及通用场景,是没有问题的,但是对于某些特殊场景,需要注意DBA模板的设置。
1、 高密度设备:如UA5000或者MA5600使用EPON上行的,设备用户数超过300以上。
2、 同时在线用户较多的:如MA5616设备,最大接入用户128个,而同时在线用户超过90个。
3、 高带宽需求的:部分地方的用户对上行带宽需求较多(提供下载等)
上述场景对于15M的设备上行总带宽已经明显不足。
针对上述问题,对DBA模板的配置做如下要求:
1) 一般场景下,配置dba模板为type3,保证带宽20M,最大带宽50M
2) 包括但不限于上述场景下,配置dba模板也为type3,保证带宽30M,最大带宽100M
//添加自定义的dba模板.这里分别设置1M,2M,4M,6M,8M,10M,20M,30M,50M,100M的能力集模板,方便日后使用.
dba-profile add profile-id 11 profile-name 1M type3 assure 1024 max 2048
dba-profile add profile-id 12 profile-name 2M type3 assure 2048 max 4096
dba-profile add profile-id 14 profile-name 4M type3 assure 4096 max 8192
dba-profile add profile-id 16 profile-name 6M type3 assure 6144 max 12288
dba-profile add profile-id 18 profile-name 8M type3 assure 8192 max 16384
dba-profile add profile-id 10 profile-name 10M type3 assure 10240 max 20480
dba-profile add profile-id 20 profile-name 20M type3 assure 20480 max 40960
dba-profile add profile-id 30 profile-name 30M type3 assure 30720 max 61440
dba-profile add profile-id 50 profile-name 50M type3 assure 51200 max 102400
dba-profile add profile-id 100 profile-name 100M type3 assure 102400 max 204800
//类型(type)分为5种,分别是type1,type2,type3,type4,type5.其中:
//type1 为固定带宽模式;
//type2 为保证带宽模式;
//type3 为保证带宽的同时设置最大带宽值;
//type4 为仅设定最大带宽模式;
//type5 为3种模式的综合,即设置最大带宽,在保证带宽的同时采用固定带宽模式。
MA5680T (config)#display dba-profile profile-id 20 //查看DBA模板20

Profile-name : 20M
Profile-ID: 20
type: 3
Bandwidth compensation: No
Fix(kbps): 0
Assure(kbps): 20480
Max(kbps): 40960
bind-times: 1

MA5680T (config)# dba-profile delete profile-id 20 //删除DBA模板,前提是此DBA模板没有被任何线路模板绑定。
MA5680T (config)# dba-profile modify profile-id 20 //修改DBA模板,前提是此DBA模板没有被任何线路模板绑定。

第三步:查看线路模板,如果没有,需要创建
MA5680T(config)#display ont-lineprofile epon all //查看EPON业务线路模板
MA5680T(config)#display ont-lineprofile gpon all //查看GPON业务线路模板
//系统默认没有线路模板,需创建线路模板1并进入到线路模板模式,系统最多支持4096个线路模板
//每个模板均可被ONU终端重复绑定。
MA5680T(config)#ont-lineprofile epon profile-name MDU profile-id 1
MA5680T(config-epon-lineprofile-1)#quit
//添加线路模板(编号)1.不设置任何参数,系统会默认使用DBA模板9绑定此线路模板。ONU开局绑定此模板。
//添加用户自定义的EPON线路模板,主要针对实现不同业务的终端使用
MA5680T(config)#ont-lineprofile epon profile-id 100 profile-name 100M //创建100M线路模板,绑定DBA模板100
MA5680T(config-epon-lineprofile-100)#llid dba-profile-id 100
//线路模板绑定DBA模板,支持下行加密,系统支持aes-128,triple-churining两种加密方式,默认加密关闭。
MA5680T(config-epon-lineprofile-100)#commit //注意,添加的线路模板需要提交命令才被接受并保存下来.
MA5680T(config-epon-lineprofile-100)#quit
//按照以上方式添加其他线路模板:分别添加1M,2M,4M,6M,8M,10M,20M,30M,50M线路模板
//设置10M模板,保证10M带宽。
MA5680T(config)#ont-lineprofile epon profile-name 10M profile-id 10
MA5680T(config-epon-lineprofile-10)#llid dba-profile-id 10
MA5680T(config-epon-lineprofile-10)#commit
MA5680T(config-epon-lineprofile-10)#quit
……
MA5680T(config)#ont-lineprofile epon profile-name 50M profile-id 50
MA5680T(config-epon-lineprofile-50)#llid dba-profile-id 50
MA5680T(config-epon-lineprofile-50)#commit
MA5680T(config-epon-lineprofile-50)#quit
Interface gpon 0/1
Display ont info 0 5
//添加GPON线路模板,这里针对普通业务的线路模板,采用优先级配置的方式实现.

严格优先级队列调度
给每个队列赋予不同的优先级,每次调度时,最先对具有最高优先级的非空队列中的报文进行服务。严格优先级队列调度严格按照优先级从高到低的次序优先发送较高优先级队列中的报文,当较高优先级队列为空时,再发送较低优先级队列中的报文。
Priority参数: VLAN优先级
0: Best effort 1: Background 2: Spare 3: Excellent effort 4: Controlled load 5: Video 6: Voice 7: Network control
MA5680T(config)# ont-lineprofile gpon profile-name gpon-onu profile-id 20
MA5680T(config-gpon-lineprofile-20)# mapping-mode priority //Gem port端口映射为优先级映射(默认为vlan映射)
MA5680T(config-gpon-lineprofile-20)#tcont 1 dba-profile-id 2 // Tcont 1用于管理通道,和dba模板2绑定
MA5680T(config-gpon-lineprofile-20)# tcont 2 dba-profile-id 1 // Tcont 2用于语音通道,和dba模板1绑定
MA5680T(config-gpon-lineprofile-20)# tcont 3 dba-profile-id 50 // Tcont 3用于数据业务,和dba模板50绑定
MA5680T(config-gpon-lineprofile-20)# gem add 0 eth tcont 1 priority-queue 5 //建立Gem port,绑定相应的Tcont通道。
MA5680T(config-gpon-lineprofile-20)# gem add 1 eth tcont 2 priority-queue 6
MA5680T(config-gpon-lineprofile-20)# gem add 2 eth tcont 3 priority-queue 0
MA5680T(config-gpon-lineprofile-20)# gem mapping 0 0 priority 5 //建立GEM Port端口映射,这里使用优先级映射。
MA5680T(config-gpon-lineprofile-20)# gem mapping 1 0 priority 6
MA5680T(config-gpon-lineprofile-20)# gem mapping 2 0 priority 0
MA5680T(config-gpon-lineprofile-20)#commit
MA5680T(config-gpon-lineprofile-20)#quit

//添加GPON线路模板,这里针对FTTH业务的线路模板
MA5680T(config)# ont-lineprofile gpon profile-name hg8240 profile-id 24
MA5680T(config-gpon-lineprofile-24)# mapping-mode vlan //设置映射模式为vlan映射
MA5680T(config-gpon-lineprofile-24)# qos-mode gem-car //设置qos模式为gem-car方式
//绑定tcont和dba模板,缺省情况下,tcont 0和dba模板1绑定,不需配置。
MA5680T(config-gpon-lineprofile-24)# tcont 1 dba-profile-id 2 // Tcont 1用于管理通道,和dba模板2绑定
MA5680T(config-gpon-lineprofile-24)# tcont 2 dba-profile-id 2 // Tcont 2用于语音通道,和dba模板2绑定
MA5680T(config-gpon-lineprofile-24)# tcont 3 dba-profile-id 10 // Tcont 3用于数据业务,和dba模板10绑定
//TCONT0仅用于OMCI管理使用。如果管理业务和其他业务使用Tcont0,会导致业务不通。
//HG8240可以实现宽窄带业务,配置3条TCONT通道,分别承载不同的业务。1用于管理,2用于语音,3用于数据。
MA5680T(config-gpon-lineprofile-24)# gem add 0 eth tcont 1 gem-car 6 //添加GEM PORT,使用流量模板6
MA5680T(config-gpon-lineprofile-24)# gem add 1 eth tcont 2 gem-car 6
MA5680T(config-gpon-lineprofile-24)# gem add 2 eth tcont 3 gem-car 6
//设置映射关系,建立业务通道和GEM PORT的映射。GEMPORT 1 对应语音业务,GEMPORT 2 对应宽带业务。
MA5680T(config-gpon-lineprofile-24)# gem mapping 0 0 vlan 100 //设置映射关系,这里的GEMPORT 0 用于管理。
MA5680T(config-gpon-lineprofile-24)# gem mapping 1 0 vlan 10
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 0 vlan 11
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 1 vlan 12
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 2 vlan 13
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 3 vlan 14
MA5680T(config-gpon-lineprofile-24)# commit
MA5680T(config-gpon-lineprofile-24)#quit
//查看线路模板和业务模板配置:
MA5680T(config)#display ont-lineprofile epon profile-id 50
MA5680T(config)#display ont-lineprofile gpon profile-id 24
//删除线路模板或业务模板
MA5680T(config)#undo ont-lineprofile epon profile-id 50 //删除线路模板50
MA5680T(config)#undo ont-lineprofile gpon profile-name hg8240 //删除线路模板hg8240
第四步:查看业务模板,如果没有,需要创建
业务模板是针对ONT的上的业务,涉及到设备接口相关的配置。对于MA561X和MA562X这类SNMP管理模式的终端涉及接口相关配置一般在设备上去完成,因此不需配置业务模板。而对于81X,82X系列等家庭终端设备则需要配置相关的业务模板。
MA5680T(config)#display ont-srvprofile epon all //查询ONU业务模板。
Failure: The service profile does not exist
//依据业务需求的不同,需要创建唯一的EPON业务模板与之绑定。
MA5680T(config)#ont-srvprofile epon profile-id 1 profile-name SJZ_CheGuanSuo_H810e
MA5680T(config-epon-srvprofile-1)#ont-port eth 1
//H810E为1个网口,设置参数为1。若是H813E为4个网口,此处参数设置为4。
{ |pots|tdm-type|tdm }:
Command:
ont-port eth 1
MA5680T(config-epon-srvprofile-1)#port vlan eth 1 200 //将专线VLAN绑定到终端端口
MA5680T(config-epon-srvprofile-1)#commit //交之后生效
MA5680T(config-epon-srvprofile-1)#quit
//添加GPON业务模板,这里针对HG850A/HG8240为例配置相应的业务模板
MA5680T(config)# ont-srvprofile gpon profile-name hg8240 profile-id 24
MA5680T(config-gpon-srvprofile-24)# ont-port pots 2 eth 4 //设置中断端口数量。850A/8240固定提供4FE+2POTS
MA5680T(config-gpon-srvprofile-24)# multicast-forward untag
//划分端口vlan,HG850/HG8240的管理报文和语音报文通过IPHOST虚拟端口承载
MA5680T(config-gpon-srvprofile-24)# port vlan iphost 100
MA5680T(config-gpon-srvprofile-24)# port vlan iphost 10
//划分端口vlan,ONT的eth用于承载宽带业务,如果采用双层vlan,各端口和vlan对应。
MA5680T(config-gpon-srvprofile-24)# port vlan eth 1 11
MA5680T(config-gpon-srvprofile-24)# port vlan eth 2 12
MA5680T(config-gpon-srvprofile-24)# port vlan eth 3 13
MA5680T(config-gpon-srvprofile-24)# port vlan eth 4 14
MA5680T(config-gpon-srvprofile-24)# commit
MA5680T(config-gpon-srvprofile-24)# quit
MA5680T(config)# undo ont-srvprofile epon profile-id 1 //删除业务模板
第五步:检查SNMP模板参数,检查ONU注册情况。
MA5680T(config)#display snmp-profile all //查看olt的SNMP能力集模板.没有需要添加
注 :对于HG系列以及MA5606T,UA5000等通过OAM管理模式配置的,不需要考虑此参数。
对于MA561X和MA562X,因为是通过SNMP管理模式配置的,需要设置此参数,可以远程下达SNMP网管参数。
//添加olt的SNMP能力集模板
MA5680T(config)#snmp-profile add profile-id 1 profile-name n2000 v1 public private 172.16.255.2 161 n2000
//查看自动返现的ONU信息:
MA5680T(config)#display ont autofind all //查看OLT自动发现的ONU信息.

Number : 1
F/S/P : 0/2/1
Ont Mac : 001D-6A3C-6614
Password :
VenderID : HWTC
Ontmodel : 810e
OntSoftwareVersion : V100R001C01B020
OntHardwareVersion : HG810e
Ont autofind time : 2010-06-06 15:01:52

Number : 2
F/S/P : 0/1/0
Ont Mac : 0000-0000-0000
Password : 00000000000000000000000000000000
VenderID : HWTC
Ontmodel : 5620
OntSoftwareVersion : V8R307 C00
OntHardwareVersion : MA5620
Ont autofind time : 2010-06-09 00:17:17

Number : 3
F/S/P : 0/4/0
Ont Mac : 0018-82EB-51B3
Password : 00000000000000000000000000000000
VenderID : HWTC
Ontmodel : MDU
OntSoftwareVersion : V8R306C01B053
OntHardwareVersion : MA5616
Ont autofind time : 2010-6-31 16:40:54

The number of EPON autofind ONT is 3
注 : 对于某些新开局的OLT,要特别注意是否开局启用了ONU自动发现功能.否则始终无法查看到上报的ONU信息.见开局配置

第六步:添加业务数据

情景一:EPON组网,下挂ONU终端。
MA5680T(config)#interface epon 0/1 //进入到EPON单板模式。
//注册或者确认ONU终端,可以实现离线添加数据,但要清楚设备上联端口和地址码信息。
MA5680T (config-if-epon-0/1)# ont add 0 0 mac-auth 0000-0000-0000 snmp ont-lineprofile-id 1 des To_604MianSiXQ
或:
MA5680T (config-if-epon-0/1)# ont confirm 0 ontid 0 mac-auth 0000-0000-0000 snmp ont-lineprofile-id 1
//依据设备类型不同,添加ONU的具体参数不同。

EPON MA562x/MA561x系列设备:
ont add 0 0 mac-auth 0000-0000-0000 snmp ont-lineprofile-id 1 des To_
EPON MA5606T系列设备/H81x系列设备
ont add 0 0 mac-auth 0000-0000-0000 oam ont-lineprofile-id 1 des To_
UA5000系列走epon上行
ont add 0 0 mac-auth 0000-0000-0000 oam ont-lineprofile-id 1 des To_
//添加SNMP参数,(凡通过SNMP管理方式注册的ONU终端,需要远程下发SNMP)
ont snmp-profile 0 1 profile-id 1
//配置ONU的管理信息,(凡通过SNMP管理方式注册的ONU终端,需要配置远程管理)
ont ipconfig 0 1 ip-address 172.16.21.3 mask 255.255.255.0 gateway 172.16.21.1 manage-vlan 99 priority 0
//退出PON板模式
quit
//配置业务流PVC,创建vlan交换
service-port vlan 10 epon 0/1/0 ont 0 multi-service user-vlan 10 inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan 99 epon 0/1/0 ont 0 multi-service user-vlan 99 inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan * epon 0/1/0 ont 0 multi-service user-vlan * inbound traffic-table index 6 outbound traffic-table index 6
//保存数据
save
情景二:普通业务,GPON组网,下挂ONU终端。
MA5680T(config)#interface gpon 0/1 //进入到GPON单板模式。

//注册或者确认ONU终端,可以实现离线添加数据,但要清楚设备上联端口和地址码信息。

扫描二维码关注公众号,回复: 4865945 查看本文章

GPON MA562x/MA561x系列设备:
ont add 0 0 sn-auth 0000000000000000 snmp ont-lineprofile-id 1 des To_
//添加SNMP参数,(凡通过SNMP管理方式注册的ONU终端,需要远程下发SNMP)
ont snmp-profile 0 0 profile-id 1
//配置ONU的管理信息,(凡通过SNMP管理方式注册的ONU终端,需要配置远程管理)
ont ipconfig 0 0 static ip-address 172.16.21.3 mask 255.255.255.0 gateway 172.16.21.1 vlan 99 priority 0
//退出PON板模式
quit
//配置业务流PVC,创建vlan交换
service-port vlan 10 gpon 0/1/0 ont 0 gemport 1 multi-service user-vlan 10 rx-cttr 6 tx-cttr 6
service-port vlan 99 gpon 0/1/0 ont 0 gemport 1 multi-service user-vlan 99 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 222 rx-cttr 6 tx-cttr 6
//保存数据
save
情景三:FTTH业务,GPON组网,下挂ONT终端。
MA5680T(config)#interface gpon 0/1 //进入到GPON单板模式。
//注册或者确认ONT终端,可以实现离线添加数据,但要清楚设备上联端口和地址码信息。
ont add 0 0 sn-auth 0000000000000000 omci ont-lineprofile-id 24 ont-srvprofile-id 24 des To_
//添加ONT的native-vlan
ont port native-vlan 0 0 iphost vlan 10 //iphost是个虚拟端口,是ONT的管理通道和语音通道
ont port native-vlan 0 0 eth 1 vlan 11
ont port native-vlan 0 0 eth 2 vlan 12
ont port native-vlan 0 0 eth 3 vlan 13
ont port native-vlan 0 0 eth 4 vlan 14
quit
//添加业务虚接口,这里数据业务采用了地址转换。
service-port vlan 10 gpon 0/1/0 ont 0 gemport 1 multi-service user-vlan 10 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 11 tag-transform translate-and-add inner-vlan 501 inner-priority 0 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 12 tag-transform translate-and-add inner-vlan 502 inner-priority 0 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 13 tag-transform translate-and-add inner-vlan 503 inner-priority 0 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 14 tag-transform translate-and-add inner-vlan 504 inner-priority 0 rx-cttr 6 tx-cttr 6
save


SlotID BoardName Status SubType0 SubType1 Online/Offline

0
1 H802EPBC Normal //EPBC单板,默认为4个端口,从0-3
2 H801EPBA Normal //EPBA单板,默认为4个端口,从0-3
3 H802GPBD Normal //GPBD单板,默认为8个端口,从0-7
4 H801GPBC Normal //GPBC单板,默认为8个端口,从0-7
5
6
7 H801SCUL Active_normal //SCUL主控板,管理控制系统的运行。配置信息都保存在此板中
8 H801SCUL Standby_normal //SCUL为主备用,一般设备都带2块SCUL板
9
10
11
12
13
14
15
16
17 H801GICF Normal //OLT的千兆口上行板GICF,带2个GE 光口,端口0-1
18 H801X2CA Normal //OLT的万兆口上行板X2CA,带2个10GE光口,端口0-1
19
20

//查看设备端口状态
display board 0/1

Board Name : H802EPBC
Board Status : Normal


Port                       Port type    

 0                         EPON         
 1                         EPON         
 2                         EPON         
 3                         EPON         


F/S/P ONT-ID MAC Control Run Config Match
flag state state state

0/13/0 1 0025-9E09-84F1 active up normal match //正常的设备状态.
0/13/0 2 0025-9E09-8C03 active up normal match
0/13/0 3 0025-9E09-8B6B active up normal match
0/13/0 4 0025-9E09-8C07 active up normal match
0/13/0 5 0025-9E09-8A47 active up normal match
0/13/0 6 0025-9E09-8B43 active up normal match

In port 0, the total of ONTs are: 6

F/S/P ONT-ID MAC Control Run Config Match
flag state state state

0/13/1 1 0025-9E89-E637 active up normal match
0/13/1 2 0025-9E50-56D7 active up normal match
0/13/1 3 0025-9E78-37F8 active down initial initial //故障的设备状态.
0/13/1 4 0025-9E50-56CF active down initial initial
0/13/1 5 0025-9E89-E63D active down initial initial
0/13/1 6 0025-9E09-6859 active up normal match
0/13/1 7 0025-9E50-56AB active up normal match

In port 1, the total of ONTs are: 7
In port 2, the total of ONTs are: 0
In port 3, the total of ONTs are: 0
//有故障的设备,引起故障的原因可能是因为光路不通,或者设备掉电与设备故障.需要根据实际情况排查.
//ONU通过单芯联到分光器,再通过分光器联结至OLT的PON口,通过MAC地址注册到OLT.通过各PON口下的ONU ID识别区分.
//查看全局配置命令,也可以通过匹配符或者section细节查看具体配置信息
display current-configuration
//匹配符| 后面通过 include 匹配字母,列出配置信息:
display current-configuration | include vlan
//section细节比较具体.OLT配置信息分以下几个细节:
全球配置信息,包括设备的命名,添加的用户帐户信息.各种能力集配置信息,以及线路参数全局配置等.
设备单板信息,槽位号,单板名称.
设备的SNMP参数设置
,, 设备的vlan配置,以及透传的上行口,各vlan子接口所设置的地址参数.
,<epon-0/1>,<epon-0/2>… 设备各单板配置的ONU数据信息.
包括注册的MAC地址,分配的ONU ID,采用的线路模板,设备管理地址,管理vlan等.
主要是配置的保存参数
配置的电源参数
配置的风扇参数
配置的自动备份参数
添加的pvc信息
设备维护网口的配置信息
设备设置的安全参数
设备配置中的路由参数,以及允许访问的用户帐户

//举例,查看配置中所有的vlan配置细节.
display current-configuration section vlan

//进入EPON单板,查看设备注册的情况
interface epon 0/1
display ont info 0 1

F/S/P : 0/1/0 //设备机框/槽位/端口
ONT-ID : 1 //ONU注册到OLT,分配的ONU ID. 为开局手动添加的.
Control flag : active //配置状态,激活可用.
Run state : down // 设备状态 离线. 原因可能为光路不通,或者设备down机
Config state : initial //配置状态为 初始状态(initial),待设备上线之后方能正常.
Match state : initial //配置状态为 初始状态(initial)
ONT LLID : -
Authentic type : MAC-auth //认证方式(即注册到OLT的方式),通过MAC地址注册.
MAC : 0025-9E8E-90AA //上报的MAC地址信息.
Management mode : SNMP //对于MA561X和 MA562X,都是通过SNMP管理方式实现OLT对ONU的管理.
Multicast mode : CTC
SNMP profile ID : 1
SNMP profile name : MDU //ONU采用的SNMP模板名称.
Description : 603-2_TZJY-3#1DY-F7-MA5620 //设备描述,手动添加的部分.
Last down cause : dying-gasp //最后一次离线原因.
Last up time : 2010-03-24 17:11:14 //最后一次上线时间
Last down time : 2010-03-28 08:52:14 //最后一次下线时间
Last dying gasp time : 2010-03-28 08:52:14 //最后一次dying gasp时间

Line profile ID : 1 //所采用的线路模板编号
Line profile name : MDU //所采用的线路模板名称

FEC switch :Disable //FEC开关关闭状态.
Encrypt type :off //加密类型
DBA Profile-ID :9 //采用的DBA模板编号.9为系统自带的模板.
Traffic-table-index :6 //采用的流量控制模板索引.6一般为不限速流量控制
Dba-threshold : //DBA序列,暂无实际意义.

Queue-set-index  Q1    Q2    Q3    Q4    Q5    Q6    Q7    Q8

1                -     -     -     -     -     -     -     -    
2                -     -     -     -     -     -     -     -    
3                -     -     -     -     -     -     -     -    

//查看用户mac地址上报情况.
display mac-address all
//查看vlan XXX下学习到的地址信息,对于断定ONU用户故障,一般不要采用此方法.会查不出来.
display mac-address vlan XXX.
//而应该采用查询端口下MAC地址学习情况,需要知道用户所在ONU具体注册的PON口信息.
display mac-address port 0/1/0
//对于配置错误的onu,如何添加删除或者更改配置资料,可以参考以下命令.
1.因为ONU故障,用其他相同设备类型的ONU替换.通过自动发现命令,查看新上报的ONU 地址信息.按:
display ont autofind all //目的:记录新的ONU 的MAC地址 1111-1111-1111
进入待替换的故障ONU所注册的单板
interface epon 0/1 //此处可以通过查看PON口下设备状态来获取需要替换的ONU ID.假设故障设备位于2端口,ID为6
ont modify 2 6 mac 1111-1111-1111 //替换设备.
结束后需要通过旧的管理地址(管理地址不变)登陆到设备中,补全设备信息.添加业务数据.结果注意保存(OLT上以及ONU上的)
2.因为设备迁移,设备所注册的PON口有变,则旧数据需要删除,重新添加到新上报的端口中.
MAC地址在OLT内不可冲突,否则添加不成功;因此需要删除与设备端口ID有关的相关配置,再进行添加操作.
需要查询到此设备MAC地址原有的注册端口和ONU ID,删除与此有关的所有信息(包括pvc和原有PON口下的ONU ID信息)
假设已知设备原来注册端口为 0/2/2, ONU ID 为6 首先查询pvc信息.
display service-port port 0/2/2 //查看0/2/2 ID为6的所有pvc id

INDEX VLAN VLAN PORT F/ S/ P VPI VCI FLOW FLOW RX TX STATE
ID ATTR TYPE TYPE PARA

  8   99 common   epon 0/2 /1  3    -    vlan  99          -    -    down
  9   99 common   epon 0/2 /1  4    -    vlan  99          -    -    up
 10   99 common   epon 0/2 /2  5    -    vlan  99          -    -    up
 11   99 common   epon 0/2 /2  6    -    vlan  99          -    -    down
 12   99 common   epon 0/2 /2  7    -    vlan  99          -    -    up

undo service-port 11 //需要将所有与0/2/2 onu id为6的pvc信息都删除,否则无法执行后面的操作.
interface epon 0/2 // 进入原来注册的PON口下
ont delete 2 6 // 删除ONU注册信息.
interface epon 0/1 //进入新的pon口下,添加ONU信息(略)
service-port vlan 99 epon 0/1/0 ont 1 multi-service user-vlan 99 //添加新的pvc信息.
保存数据,至此设备添加完毕.登陆到设备上去,添加新的业务数据.
一、 设备数据配置及查询
查看10槽位EPON板配置
MA5680T(config)#display current-configuration section epon-0/10
{ || }:
Command:
display current-configuration section epon-0/10
[MA5600V800R105: 5033]

[epon]
<epon-0/10>
interface epon 0/10
port 0 ont-auto-find enable
ont add 0 0 mac-auth 0025-9E64-5C46 profile-id 12 desc “ONT_NO_DESCRIPTION” dba-profile 11
ont add 0 1 mac-auth 0025-9E64-5B43 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont snmp 0 1 v1 “public” “private” 10.50.58.2 161 “huawei”
ont add 0 2 mac-auth 0025-9E62-7E0B profile-id 12 desc “ONT_NO_DESCRIPTION” dba-profile 11
ont snmp 0 2 v1 “public” “private” 10.50.58.2 161 “huawei”
ont add 0 3 mac-auth 0025-9E8D-F5ED profile-id 12 desc “ONT_NO_DESCRIPTION”
ont add 0 4 mac-auth 0025-9E8D-F5A8 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont add 0 5 mac-auth 0025-9E8D-F5C9 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont ipconfig 0 0 ip-address 10.50.234.66 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 1 ip-address 10.50.234.67 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 2 ip-address 10.50.234.68 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 3 ip-address 10.50.234.74 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 4 ip-address 10.50.234.75 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 5 ip-address 10.50.234.76 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
port 1 ont-auto-find enable
ont add 1 0 mac-auth 0025-9E8E-7969 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont ipconfig 1 0 ip-address 10.50.234.70 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
port 2 ont-auto-find enable
ont add 2 1 mac-auth 0018-82EB-3814 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont add 2 2 mac-auth 0018-82E7-002B profile-id 12 desc “ONT_NO_DESCRIPTION”
ont ipconfig 2 1 ip-address 10.50.234.72 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 2 2 ip-address 10.50.234.73 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
port 3 ont-auto-find enable

return
MA5680T(config)#
查看10槽位下ONU
MA5680T(config)#display board 0/10

Board Name : H801EPBA
Board Status : Normal


Port                       Port type    

 0                         EPON         
 1                         EPON         
 2                         EPON         
 3                         EPON         


F/S/P ONT-ID MAC Control Run Config Match Loopback
Flag State State State State

0/10/0 0 0025-9E64-5C46 active up normal match disable
0/10/0 1 0025-9E64-5B43 active up normal match disable
0/10/0 2 0025-9E62-7E0B active up normal match disable
0/10/0 3 0025-9E8D-F5ED active up normal match disable
0/10/0 4 0025-9E8D-F5A8 active up normal match disable
0/10/0 5 0025-9E8D-F5C9 active up normal match disable

In port 0, the total of ONTs are: 6

F/S/P ONT-ID MAC Control Run Config Match Loopback
Flag State State State State

0/10/1 0 0025-9E8E-7969 active up normal match disable

In port 1, the total of ONTs are: 1

F/S/P ONT-ID MAC Control Run Config Match Loopback
Flag State State State State

0/10/2 1 0018-82EB-3814 active down initial initial disable
0/10/2 2 0018-82E7-002B active down initial initial disable

In port 2, the total of ONTs are: 2
In port 3, the total of ONTs are: 0
MA5680T(config)#
查看10槽位、0号PON口、2号ONU信息
MA5680T(config)#interface epon 0/10
MA5680T(config-if-epon-0/10)#display ont info 0 2

F/S/P : 0/10/0
ONT-ID : 2
Control flag : active
Run state : up
Config state : normal
Match state : match
Ont Profile ID : 12
Authentic type : MAC-Auth
MAC : 0025-9E62-7E0B
Description : ONT_NO_DESCRIPTION
DBA Profile ID : 11
CIR Value (Kbps) : off
Encrypt : off
FEC : disable
Manage mode : SNMP
Multicast Fast Leave : –
Multicast mode : Default

MA5680T上其他常用的查看命令
配置查看:
1、查看snmp配置
MA5680T(config)# display current-configuration section public
1、 查看vlan配置
MA5680T(config)# display current-configuration section vlan
2、 查看所有epon单板下配置
MA5680T(config)# display current-configuration section epon
3、 查看模块epon单板下的配置
MA5680T(config)# display current-configuration section epon-0/1
4、 查看service-port配置
MA5680T(config)# display current-configuration section bbs
5、 查看service-port状态
MA5680T(config)# display service-port all
6、 查看ONU信息
MA5680T(config-if-epon-0/1)# display ont info 0 0
7、 查看系统模板配置信息
MA5680T(config)# display current-configuration section global

华为GPON配置说明
几个名词说明3
数据规划3
数据配置3
1.OLT数据配置3
创建DBA模板3
创建线路模板3
注册ONU4
OLT上透传ONU上来的vlan4
2.ONU上语音数据配置4
几个名词说明
DBA模板:创建的dba模板时给tcont引用的,dba模板的作用是对整台ONU上行进行限速。一个PON口上行带宽为1G,实际能用的只有900M,所以要对ONU的上行进行合理分配。
Tcont:tcont是连接dba和gemport的通道,也就是说gemport是通过和tcont联系,才把dba的作用引用过来。
Gemport:gemport是OLT线程工作的最小单元,前面的dba,tcont都是最终给gemport用。
线路模板ont-lineprofile:ONU注册时要选相应线路模板,里面包含tcont,gem等信息
DBA模板,线路模板,可以创建多个;一个线路模板中:tcont 有八个0-7,gem可以创建128个0-127;一个gem中可有映射8个:gem mapping 1 0;gem mapping 1 1,一直到gem mapping 1 7;但是一个线路模板中最多只能创建128条gem mapping;超出会报错。
数据规划
以花都狮岭数据规划为例:
OLT:网管vlan 22;
IP: 172.17.21.132;网关:172.17.21.129;语音vlan 100;语音IP:172.16.0.11
ONU:所属OLT的PON口 0/18/3
ONUID:1
ONU 网管IP 172.17.21.134; 网关:172.17.21.129;
语音vlan 100;语音IP:172.16.0.21
数据配置
1.OLT数据配置
创建DBA模板
dba-profile add profile-id 102 profile-name DBA_2M type3 assure 2048 max 10240
//保证2M;最大大10M
dba-profile add profile-id 105 profile-name DBA_5M type3 assure 5120 max 20480
dba-profile add profile-id 120 profile-name DBA_20M type3 assure 20480 max 102400
dba-profile add profile-id 150 profile-name DBA_50M type3 assure 51200 max 512000
创建线路模板
创建线路模板101:供ONU ID 1到5用;由于一个线路模板中gem mapping最多只能创建128条;故一个线路模板不要被过多的ONU调用。
ont-lineprofile gpon profile-id 101 profile-name MA5610_1_5
线路模板的编号为101,模板名称MA5610_1_5
tcont 1 dba-profile-id 120
//tcont1绑定120的DBA模板
tcont 2 dba-profile-id 105
//tcont2绑定105的DBA模板
tcont 3 dba-profile-id 102
//tcont3绑定102的DBA模板
gem add 1 eth tcont 1
//gem 1绑定tcont1
gem add 2 eth tcont 1
//gem 2绑定tcont1
gem add 126 eth tcont 2
//gem 126绑定tcont2
gem add 127 eth tcont 3
//gem 127绑定tcont3
gem mapping 126 0 vlan 100
//gem的126 0 与vlan100映射
gem mapping 127 0 vlan 22
//gem的127 0 与vlan22映射
commit
//绑定,相当于保持线路模板
quit
创建线路模板102:供ONU ID 6到10用
ont-lineprofile gpon profile-id 102 profile-name MA5610_6_10
tcont 1 dba-profile-id 120
tcont 2 dba-profile-id 105
tcont 3 dba-profile-id 102
gem add 1 eth tcont 1
gem add 2 eth tcont 1
gem add 126 eth tcont 2
gem add 127 eth tcont 3
gem mapping 126 0 vlan 100
gem mapping 127 0 vlan 22
commit
quit
创建线路模板103:供ONU ID 11到15用
ont-lineprofile gpon profile-id 103 profile-name MA5610_11_15
tcont 1 dba-profile-id 120
tcont 2 dba-profile-id 105
tcont 3 dba-profile-id 102
gem add 1 eth tcont 1
gem add 2 eth tcont 1
gem add 126 eth tcont 2
gem add 127 eth tcont 3
gem mapping 126 0 vlan 100
gem mapping 127 0 vlan 22
commit
quit
创建线路模板104:供ONU ID 16到20用
ont-lineprofile gpon profile-id 104 profile-name MA5610_16_20
tcont 1 dba-profile-id 120
tcont 2 dba-profile-id 105
tcont 3 dba-profile-id 102
gem add 1 eth tcont 1
gem add 2 eth tcont 1
gem add 126 eth tcont 2
gem add 127 eth tcont 3
gem mapping 126 0 vlan 100
gem mapping 127 0 vlan 22
commit
quit
注册ONU
进入0/18槽的PON板
interface gpon 0/18
ont add 3 1 sn-auth 48575443AAA69E42 snmp ont-lineprofile-id 101
给ONU注册,第3PON口,ONU 编号1,SN 48575443AAA69E42,线路模板101
ont ipconfig 3 1 static ip-address 172.17.21.134 mask 255.255.255.128 gateway 172.17.21.129 vlan 22
给刚刚注册的ONU,下发管理IP地址,网关掩码,ONU上会自动生成一条缺省路由。
quit
OLT上透传ONU上来的vlan
service-port vlan 22 gpon 0/18/3 ont 1 gemport 127 multi-service user-vlan 22
//给ONU透传网管vlan22
service-port vlan 100 gpon 0/18/3 ont 1 gemport 126 multi-service user-vlan 100
//给ONU透传语音vlan100
2.ONU上语音数据配置
telnet 172.17.21.134 登入到ONU上配置数据
board confirm 0
//单板确认
fax-modem parameters rfc2198-start-mode disableRfc2198SmartStartup
//关闭2198自启动功能
vlan 100 smart
//创建语音vlan100
port vlan 100 0/0 1
//透传vlan100
interface vlanif 100
ip address 172.16.0.23 255.255.254.0
//配置语音地址
quit

voip
ip address media 172.16.0.23 172.16.0.2
ip address signaling 172.16.0.23
//配置媒体IP和信令IP
qui
interface h248 0
y
if-h248 attribute mgip 172.16.0.23 mgport 2944 transfer udp
//配置mgip地址,mg端口号以及传输协议udp
if-h248 attribute primary-mgc-ip1 172.16.0.2 primary-mgc-port 2944 mgc-domain-name1 HDSLPJC9500
//配置mgc的地址,mgc的端口号;mgc的域名
if-h248 attribute mg-media-ip1 172.16.0.23
//配置mg媒体IP
if-h248 attribute start-negotiate-version 1
//配置H248协议开始协商的版本
if-h248 attribute domainName HDSLONU000003
//配置mg即ONU的域名
reset cold
y
//复位h248接口,发起注册
esl user
mgpstnuser batadd 0/3/0 0/3/31 0 terminalid 0
//配置语音用户
qui
save

猜你喜欢

转载自blog.csdn.net/seaship/article/details/86236636
今日推荐