华为GPON配置说明
几个名词说明 (1)
数据规划 (1)
数据配置 (2)
1.OLT数据配置 (2)
创建DBA模板 (2)
创建线路模板 (2)
注册ONU (5)
OLT上透传ONU上来的vlan (5)
2.ONU上语音数据配置 (6)
几个名词说明
1.DBA模板:创建的dba模板时给tcont引用的,dba模板的作用是对整台ONU上行
进行限速。一个PON口上行带宽为1G,实际能用的只有900M,所以要对ONU的
上行进行合理分配。
2.Tcont:tcont是连接dba和gemport的通道,也就是说gemport是通过和tcont联系,
才把dba的作用引用过来。
3.Gemport:gemport是OLT线程工作的最小单元,前面的dba,tcont都是最终给gemport
用。
4.线路模板ont-lineprofile:ONU注册时要选相应线路模板,里面包含tcont,gem等
信息
5.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