第一步:添加一个用户MA5680Tenable//打开特权EXECMA5680T#config//进入终端配置模式MA5680T(config)#sysnameSJZ-HW-OLT-1//设备命名(一般为开局配置)MA5680T(config)#terminalusername//添加操作用户huaweiUserName(length6,15):huawei//设置用户名UserPassword(length6,15):huawei123//要求输入密码ConfirmPassword(length6,15):huawei123//要求再次确认一遍密码Userprofilename(=15chars)[root]:root//输入用户管理级别User'sLevel:1.CommonUser2.Operator3.Administrator:3//选择用户权限PermittedReenterNumber(0--4):4//设置此用户名可重复登录次数,一般选择4User'sAppendedInfo(=30chars):HuaweiAdm//添加描述,可不设置。AddingusersucceedsRepeatthisoperation?(y/n)[n]:(是否重复操作,N)第二步:创建DBA(DynamicallyBandwidthAssignment动态带宽分配)模版类型(type)分为5种,分别是type1,type2,type3,type4,type5.其中://type1为固定带宽模式;//type2为保证带宽模式;//type3为保证带宽的同时设置最大带宽值;//type4为仅设定最大带宽模式;//type5为3种模式的综合,即设置最大带宽,在保证带宽的同时采用固定带宽模式。下面创建两个DBA模版dba-profileaddprofile-id10type4max307200(保证300M带宽)dba-profileaddprofile-id512type2assure10240(保证10M带宽)第三步:创建链路模版,OUN模版MA5680T(config)#ont-lineprofilegponprofile-id10//建链路模版,并且绑定DBA模版10tcont0dba-profile-id512绑定t-cont与DBA模版tcont1dba-profile-id10TCONT1绑定DBA为10模版tcont2dba-profile-id10tcont3dba-profile-id10tcont4dba-profile-id10gemadd0ethtcont0建立GEMport,绑定相应的TCONT通道gemadd1ethtcont1//gemport1绑定TCONT1gemadd2ethtcont1//gemport2绑定TCONT1gemadd3ethtcont1gemadd4ethtcont1gemmapping00vlan888建立GEMPort端口映射,这里使用索引号与vlan映射。gemmapping10vlan101//gemport1的第0个索引号与vlan101映射gemmapping20vlan102//gemport2的第0个索引号与vlan102映射gemmapping30vlan103gemmapping40vlan104commit(提交,保存)第四步:创建业务模版ont-srvprofilegponprofile-id10ont-portpots2eth4ONT的能力,支持4个eth和2个pots口(pots:模拟电话业务)commit//ont-srvprofilegponprofile-id20(个人理解是多余的,在这里可以不用配)//ont-portpots2eth4ONT的能力,支持4个eth和2个pots口//commit第五步:创建oun业务interfacegpon0/1port0ont-auto-findenableport1ont-auto-findenableport2ont-auto-findenableport3ont-auto-findenableport4ont-auto-findenableport5ont-auto-findenableport6ont-auto-findenableport7ont-auto-findenable查看自动发现的oun,取其SN码(MA5680T(config-if-gpon-0/1)#displayontautofind0)ontadd00sn-auth0000000000000000snmpont-lineprofile-id10ontipconfig00(前面的0表示gpon0/1/0,后面的0表示ont的id:0)staticip-address172.17.0.1mask255.255.0.0vlan888priority0gateway172.17.0.253pri-dns172.17.0.254slave-dns172.17.0.253第六步:创建业务虚端口huawei(config)#service-portvlan1001epon0/1/0ont0(0是对应光猫的编号)gemport1(1是对应vlan101102885的编号)multi-serviceuser-vlan101\\配置网service-port0vlan888gpon0/1/0ont8gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port1vlan1001gpon0/1/0ont8gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan101inner-priority0service-port2vlan888gpon0/1/0ont0gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port3vlan888gpon0/1/0ont1gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port4vlan888gpon0/1/0ont2gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port5vlan888gpon0/1/0ont3gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port6vlan888gpon0/1/0ont4gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port7vlan888gpon0/1/0ont5gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port8vlan888gpon0/1/0ont6gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port9vlan888gpon0/1/0ont7gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port10vlan888gpon0/1/1ont0gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port11vlan888gpon0/1/1ont1gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port12vlan888gpon0/1/1ont2gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port13vlan888gpon0/1/1ont3gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port14vlan888gpon0/1/1ont4gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port15vlan888gpon0/1/1ont5gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port16vlan888gpon0/1/1ont6gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port17vlan888gpon0/1/1ont7gemport0multi-serviceuser-vlan888tag-transformtranslateservice-port18vlan1001gpon0/1/0ont1gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan102inner-priority0service-port19vlan1001gpon0/1/0ont2gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan103inner-priority0service-port20vlan1001gpon0/1/0ont3gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan104inner-priority0service-port21vlan1001gpon0/1/0ont4gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan105inner-priority0service-port22vlan1001gpon0/1/0ont5gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan106inner-priority0service-port23vlan1001gpon0/1/0ont6gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan107inner-priority0service-port24vlan1001gpon0/1/0ont7gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan108inner-priority0service-port25vlan1001gpon0/1/1ont0gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan109inner-priority0service-port26vlan1001gpon0/1/1ont1gemport1multi-serviceuser-vlan101tag-transformtranslate-and-addinner-vlan11