当前位置:文档之家› 华为olt配置hgu技术指导书

华为olt配置hgu技术指导书

华为OLT配置HGU 技术指导书文档摘要:HGU在华为OLT上的配置,注册以及简单的单播和组播的业务一、登陆OLT使用telnet登陆:telnet huaweiPassword:huawei123进入配置模式HuaWeiGpon>enableHuaWeiGpon#config二、配置模板Srvprofile模板:相当于中兴OLT的ONU type,可以设置ONU有几个uni口,几个语音pots口等,在建立模板之前我们可以先查看其他人在OLT上建立好的模板,如果没有你想要的模板再自己创建。

查看已有srvprofile模板:HuaWeiGpon(config)#display ont-srvprofile gpon allHuaWeiGpon(config)#display ont-srvprofile gpon profile-id 1 查看具体模板创建srvprofile模板:HuaWeiGpon(config)#ont-srvprofile gpon profile-id 19HuaWeiGpon(config-gpon-srvprofile-19)#ont-port eth 4 pos 2//设置ont有几个uni口HuaWeiGpon(config-gpon-srvprofile-19)#port vlan eth 1 2100//划分ont的端口VLANHuaWeiGpon(config-gpon-srvprofile-19)#commit(2)建立DBA模板HuaWeiGpon(config)#dba-profile add profile-id 40 type1 fix 102400(绑定固定带宽100M)---------------------------------------------Command of config Mode:---------------------------------------------profile-name DBA profile nametype1 Fixed bandwidthtype2 Assured bandwidthtype3 Assured bandwidth, Maximum bandwidthtype4 Maximum bandwidthtype5 Fixed bandwidth, Assured bandwidth, Maximum bandwidth可以看到DBA模板有5中type:type1:只绑定固定带宽type2:只绑定保证带宽type3:绑定保证带宽和最大带宽type4:只绑定最大带宽type5:绑定固定带宽、保证带宽、最大带宽Lineprofile模板:创建tcont,gemport,并且绑定DBA模板(带宽)查看lineprofile模板:HuaWeiGpon(config)#display ont-lineprofile gpon allHuaWeiGpon(config)#display ont-lineprofile gpon profile-id 2//查看具体模板信息修改已有的lineprofile模板,把需要的vlan加入模板中:HuaWeiGpon(config)#ont-lineprofile gpon profile-id 25HuaWeiGpon(config-gpon-lineprofile-25)#gem mapping 1 6 vlan 1007//1指的是gem index,0指的是mapping index,一个模板中只能有一个gem index HuaWeiGpon(config-gpon-lineprofile-25)#commit创建lineprofile模板:HuaWeiGpon(config)#ont-lineprofile-gpon profile-id 20HuaWeiGpon(config-gpon-lineprofile-25)#tcont 1 dba-profile-id 20//添加tcont绑定dbaHuaWeiGpon(config-gpon-lineprofile-25)#gem add 1 eth tcont 1//将tcont与gem port 1绑定HuaWeiGpon(config-gpon-lineprofile-25)#gem mapping 1 0 vlan 1003//gem mapping 添加 vlan 1 0指的是1号tcont,vlan序号HuaWeiGpon(config-gpon-lineprofile-25)#gem mapping 1 1 vlan 1004//gem mapping 添加 vlanHuaWeiGpon(config-gpon-lineprofile-25)#gem mapping 1 2 vlan 2008//gem mapping 添加 vlanHuaWeiGpon(config-gpon-lineprofile-25)#commit 注意要存储一个gemport对应一个FE口,hgu只有一个虚端口,所以所有mapping只能都加到一个gemport中(4)注册ONT查看未注册ont:HuaWeiGpon(config)#display ont autofind all注册ont:HuaWeiGpon(config)##interface gpon 0/1//进入1号pon板HuaWeiGpon(config-if-gpon-0/1)#ont confirm 1 (ontid 14) sn-auth omci ont-lineprofile-id 20 ont-srvprofile-id 20//1为pon口修改ont绑定的模板:HuaWeiGpon(config-if-gpon-0/1)#ont modify 1 7 ont-lineprofile-id 5//2号pon口7号ONU 修改为ont-lineprofile-id 5删除ont:如果一个ont创建了service-port,要删除这个ont,必须先删除掉这个ont上所有的service-portHuaWeiGpon(config-if-gpon-0/1)#ont delete 1 8//删除2号pon口8号ont(5)vlan加入上联口和虚口HuaWeiGpon(config)#vlan 1003 smart//建立vlan 1003HuaWeiGpon(config)#port vlan 1003 0/7 0//将vlan加入上联口1创建service-port(单播):HuaWeiGpon(config)#service-port vlan 2510 gpon 0/1/1 ont 2 gemport 1 multi-service user-vlan 2510//vlan 加入ont pon 与gemport绑定,其中gpon 0/1/0 指的分别是机框,1号槽位,1号pon口删除service-port:如果一个ont创建了service-port,要删除这个ont,必须先删除掉这个ont上所有的service-portHuaWeiGpon(config)#undo service-port port 0/1/0 ont 9 gemport 1 user-vlan 1003 //删除1号槽位1号pon口9号ONU gemport1中的1003 vlanHuaWeiGpon(config)#undo service-port all//删除所有的olt上所有的service-port(6)组播配置创建业务vlanHuaWeiGpon (config)#vlan 2008 smart上联口加入业务vlanHuaWeiGpon (config)#port vlan 2008 0/7 2//上联口7号板卡2号上联口加入组播vlan创建组播vlanHuaWeiGpon (config)#multicast-vlan 2008//创建组播vlanHuaWeiGpon (config)#multicast-vlan 2008HuaWeiGpon (config-mvlan 2008)#igmp mode proxy//配置olt igmp modeHuaWeiGpon (config-mvlan 2008)#igmp version v2//配置olt igmp versionHuaWeiGpon (config-mvlan 2008)#igmp program add ip 建立组播源HuaWeiGpon (config-mvlan 2008)#igmp program add batch to-ip 建立一个范围的组播源绑定组播vlan与上联口HuaWeiGpon (config-mvlan 2008)#igmp default uplink-port 0/7/2创建service-portHuaWeiGpon(config)#service-port vlan 2008 gpon 0/1/1 ont 2 gemport 1 multi-serviceuser-vlan 2008//Pon 口、ONT加入vlan(与单播相同)Service-port 加入igmpHuaWeiGpon(config)#display service-port all//查看service-port的indexHuaWeiGpon (config-btv)#igmp user add service-port 100//将单播vlan的index加入到组播中配置组播vlan memberHuaWeiGpon (config)#multicast-vlan 2008HuaWeiGpon (config-mvlan 2008)#igmp multicast-vlan member service-port 100配置ont端口组播vlanHuaWeiGpon (config-gpon-srvprofile-20)#port multicast-vlan eth 1 2008设置ont的组播模式HuaWeiGpon (config-if-gpon-0/1)#ont multicast-mode 3 1 igmp-snooping(7)QOS增加一个ont的流分类规则,precedenceHuaWeiGpon (config)#classification 88HuaWeiGpon (config-classification-profile-88)#rule add precedence 1 queue-mapped 3 ethernet prioritymark 7 condition-num 1绑定QOS规则到ont-srvprofileHuaWeiGpon (config-gpon-srvprofile-20)#port classification eth 1 profile-id 88将traffic table绑定到虚端口上HuaWeiGpon (config)#service-port vlan 1500 gpon 0/2/3 ont 1 multi-service user-vlan 1500 inbound traffic-table index 13 outbound traffic-table index 13。

相关主题