华为OLT配置HGU 技术指导书

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

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

查看已有srvprofile模板:
HuaWeiGpon(config)#display ont-srvprofile gpon all
HuaWeiGpon(config)#display ont-srvprofile gpon profile-id 1 查看具体模板
创建srvprofile模板:
HuaWeiGpon(config)#ont-srvprofile gpon profile-id 19
HuaWeiGpon(config-gpon-srvprofile-19)#ont-port eth 4 pos 2
//设置ont有几个uni口
HuaWeiGpon(config-gpon-srvprofile-19)#port vlan eth 1 2100
//划分ont的端口VLAN
HuaWeiGpon(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 name
type1 Fixed bandwidth
type2 Assured bandwidth
type3 Assured bandwidth, Maximum bandwidth
type4 Maximum bandwidth
type5 Fixed bandwidth, Assured bandwidth, Maximum bandwidth
可以看到DBA模板有5中type:
type1:只绑定固定带宽
type2:只绑定保证带宽
type3:绑定保证带宽和最大带宽
type4:只绑定最大带宽
type5:绑定固定带宽、保证带宽、最大带宽
(3)建立lineprofile模板
Lineprofile模板:创建tcont,gemport,并且绑定DBA模板(带宽)
查看lineprofile模板:
HuaWeiGpon(config)#display ont-lineprofile gpon all
HuaWeiGpon(config)#display ont-lineprofile gpon profile-id 2
//查看具体模板信息
修改已有的lineprofile模板,把需要的vlan加入模板中:
HuaWeiGpon(config)#ont-lineprofile gpon profile-id 25
HuaWeiGpon(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 20
HuaWeiGpon(config-gpon-lineprofile-25)#tcont 1 dba-profile-id 20
//添加tcont绑定dba
HuaWeiGpon(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 添加vlan
HuaWeiGpon(config-gpon-lineprofile-25)#gem mapping 1 2 vlan 2008
//gem mapping 添加vlan
HuaWeiGpon(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 4857544365778904 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-port
HuaWeiGpon(config-if-gpon-0/1)#ont delete 1 8
//删除2号pon口8号ont
(5)vlan加入上联口和虚口
HuaWeiGpon(config)#vlan 1003 smart
//建立vlan 1003
HuaWeiGpon(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-port
HuaWeiGpon(config)#undo service-port port 0/1/0 ont 9 gemport 1 user-vlan 1003
//删除1号槽位1号pon口9号ONU gemport1中的1003 vlan
HuaWeiGpon(config)#undo service-port all
//删除所有的olt上所有的service-port
(6)组播配置
创建业务vlan
HuaWeiGpon (config)#vlan 2008 smart
上联口加入业务vlan
HuaWeiGpon (config)#port vlan 2008 0/7 2
//上联口7号板卡2号上联口加入组播vlan
创建组播vlan
HuaWeiGpon (config)#multicast-vlan 2008
//创建组播vlan
HuaWeiGpon (config)#multicast-vlan 2008
HuaWeiGpon (config-mvlan 2008)#igmp mode proxy
//配置olt igmp mode
HuaWeiGpon (config-mvlan 2008)#igmp version v2
//配置olt igmp version
HuaWeiGpon (config-mvlan 2008)#igmp program add ip 229.1.1.1
//建立组播源
HuaWeiGpon (config-mvlan 2008)#igmp program add batch 229.1.1.1 to-ip 229.1.1.10
//建立一个范围的组播源
绑定组播vlan与上联口
HuaWeiGpon (config-mvlan 2008)#igmp default uplink-port 0/7/2
创建service-port
HuaWeiGpon(config)#service-port vlan 2008 gpon 0/1/1 ont 2 gemport 1 multi-service
user-vlan 2008
//Pon 口、ONT加入vlan(与单播相同)
Service-port 加入igmp
HuaWeiGpon(config)#display service-port all
//查看service-port的index
HuaWeiGpon (config-btv)#igmp user add service-port 100
//将单播vlan的index加入到组播中
配置组播vlan member
HuaWeiGpon (config)#multicast-vlan 2008
HuaWeiGpon (config-mvlan 2008)#igmp multicast-vlan member service-port 100
配置ont端口组播vlan
HuaWeiGpon (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的流分类规则,precedence
HuaWeiGpon (config)#classification 88
HuaWeiGpon (config-classification-profile-88)#rule add precedence 1 queue-mapped 3 ethernet prioritymark 7 condition-num 1
绑定QOS规则到ont-srvprofile
HuaWeiGpon (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。

相关文档
最新文档