//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