MA5680T(config-if-giu-0/19)#quit MA5680T(config)#interface vlanif 100
MA5680T(config-if-vlanif100)#ip address 1.1.1.3 24 //MA5620G可通过OLT管理,按数据规划,其管理IP将设置为1.1.1.2,因此管理vlan100的IP地址设置为同网段IP。 MA5680T(config-if-vlanif100)#quit 步骤2: 配置DBA 模板
MA5680T(config)#dba-profile add profile-id 10 type1 fix 10240 //若使用系统缺省模板,则不用创建 步骤3: 配置线路模板
MA5680T(config)#ont-lineprofile gpon profile-id 10 //以下三行用于创建管理通道:
MA5680T(config-gpon-lineprofile-10)#tcont 1 dba-profile-id 10
MA5680T(config-gpon-lineprofile-10)#gem add 0 eth tcont 1 cascade on //添加GEM port MA5680T(config-gpon-lineprofile-10)#gem mapping 0 0 vlan 100 //设置映射关系 //以下三行用于创建业务通道:
MA5680T(config-gpon-lineprofile-10)#tcont 2 dba-profile-id 10
MA5680T(config-gpon-lineprofile-10)#gem add 1 eth tcont 2 cascade on //添加GEM port MA5680T(config-gpon-lineprofile-10)#gem mapping 1 1 vlan 101 //设置映射关系 MA5680T(config-gpon-lineprofile-10)#commit MA5680T(config-gpon-lineprofile-10)#quit //映射模式、QoS模式均没有设置,表示使用的是缺省设置。映射模式缺省为vlan映射,QoS模式缺省为PQ。
步骤4: 配置业务模板
使用snmp模式注册,不需配置业务模板。 步骤5 :增加ONT,并设置其管理IP
MA5680T(config)#interface gpon 0/7 MA5680T(config-if-gpon-0/7)#port 0 ont-auto-find enable //开启0端口的自动发现ONT功能 MA5680T(config-if-gpon-0/7)#display ont autofind 0
Command:
display ont autofind 0
------------------------------------------------------------------------
Number F/ S/ P SN Password ------------------------------------------------------------------------ 1 0/ 7/ 0 32303131B402AC41 ------------------------------------------------------------------------
MA5680T(config-if-gpon-0/7)#ont add 0 0 sn-auth 32303131B402AC41 snmp ont-lineprofile-id 10 //ONT的管理模式有snmp和omci两种。对于A类ONT(例如HG850),使用omci模式,ONT的端口由OLT直接管理,添加ont时需绑定线路模板和业务模板;对于MxU(例如MA5620G、MA5606T等),使用snmp模式,添加ont时绑定线路模板即可。在omci模式下,ont的管理vlan通过业务模板中的port vlan iphost命令下发,ont ipconfig命令无法带vlan信息;在snmp模式下,由于ont不绑定业务模板,ont的管理vlan通过ont ipconfig命令下发。
MA5680T(config-if-gpon-0/7)#ont ipconfig 0 0 static ip-address 1.1.1.2 mask 255.255.255.0 gateway 1.1.1.254 vlan 100 priority 0 //设置MA5620G的管理IP为1.1.1.2。该命令下发后将会在ont上创建一个vlan并且添加了vlan interface。priority设置为0。 MA5680T(config-if-gpon-0/7)#quit 步骤6 : 添加vlan的业务需端口
MA5680T(config)#service-port vlan 100 gpon 0/7/0 ont 0 gemport 0 multi-service user-vlan 100
rx-cttr 6 tx-cttr 6 //使用了默认流量模板6
MA5680T(config)#service-port vlan 101 gpon 0/7/0 ont 0 gemport 1 multi-service user-vlan 101 rx-cttr 6 tx-cttr 6 //使用了默认流量模板6 步骤7: 登陆MA5620G进行配置
MA5680T(config)#telnet 1.1.1.2 MA5620G(config)#vlan 101 //创建业务vlan101
MA5620G(config)#port vlan 101 0/0 1 //添加vlan的上行口
MA5620G(config)#service-port vlan 101 eth 0/1/1 user-vlan untagged rx-cttr 6 tx-cttr 6 //添加vlan的业务端口 步骤8: 保存数据
例:MA5680T(config)#save 步骤9: 验证
在MA5620G的ETH 0/1/1口接PC1,在MA5680T的上行口0/19/0接PC2,两台PC的IP地址设置为同一个网段,PC1和PC2可互相ping通。
2.2 IPTV业务配置指导
2.2.1 数据规划
配置项 GPON业务板/ONTID 上行接口 组播模式和版本 OLT组播vlan MxU组播vlan DBA模板 节目库
0/7/0; ONTID:0 上行口:0/19/0 模式:proxy;版本:V3 Smart VLAN 1000 Smart VLAN 1000 索引号:10;模板类型:type1;固定带宽:10Mbit/s 组播地址:224.1.1.1;节目的源IP地址:192.168.1.4 数据
2.2.2配置流程图
开始 OLT上创建VLAN OLT上配置VLAN上行口 否 有合适的DBA模板和流量模板? 添加DBA模板和流量模板 是 否 是否有合适的ONT线路模板? OLT上添加ONT线路模板 是 否 是否有合适的ONT业务模板? OLT上添加ONT业务模板 是 添加ONT OLT上配置业务虚端口 配置组播用户 添加组播vlan 选择组播模式和组播版本 配置IGMP上行端口 配置组播节目 加入组播用户 登陆MA5620G进行配置 保存 结束
2.2.3 配置步骤
步骤1: 创建VLAN、加入上行端口、设置端口native-vlan
MA5680T(config)#vlan 100 smart //用于管理MA5620G MA5680T(config)#vlan 1000 smart //用于承载组播业务 MA5680T(config)#port vlan 100 0/19 0 MA5680T(config)#port vlan 1000 0/19 0 MA5680T(config)#interface giu 0/19
MA5680T(config-if-giu-0/19)#native-vlan 0 vlan 1000 MA5680T(config-if-giu-0/19)#quit MA5680T(config)#interface vlanif 100
MA5680T(config-if-vlanif100)#ip address 1.1.1.3 24 //MA5620G可通过OLT管理,按数据规划,其管理IP将设置为1.1.1.2,因此管理vlan100的IP地址设置为同网段IP。 MA5680T(config-if-vlanif100)#quit 步骤2: 配置DBA 模板
MA5680T(config)#dba-profile add profile-id 10 type1 fix 10240 //若使用系统缺省模板,则不用创建 步骤3: 配置线路模板
MA5680T(config)#ont-lineprofile gpon profile-id 10 //以下三行用于创建管理通道:
MA5680T(config-gpon-lineprofile-10)#tcont 1 dba-profile-id 10
MA5680T(config-gpon-lineprofile-10)#gem add 0 eth tcont 1 cascade on //添加GEM port MA5680T(config-gpon-lineprofile-10)#gem mapping 0 0 vlan 100 //设置映射关系 //以下三行用于创建业务通道:
MA5680T(config-gpon-lineprofile-10)#tcont 3 dba-profile-id 10
MA5680T(config-gpon-lineprofile-10)#gem add 3 eth tcont 3 cascade on //添加GEM port MA5680T(config-gpon-lineprofile-10)#gem mapping 3 3 vlan 1000 //设置映射关系 MA5680T(config-gpon-lineprofile-10)#commit MA5680T(config-gpon-lineprofile-10)#quit //映射模式、QoS模式均没有设置,表示使用的是缺省设置。映射模式缺省为vlan映射,QoS模式缺省为PQ。
步骤4: 配置业务模板
使用snmp模式注册,不需配置业务模板。 步骤5 :增加ONT,并设置其管理IP
MA5680T(config)#interface gpon 0/7 MA5680T(config-if-gpon-0/7)#port 0 ont-auto-find enable //开启0端口的自动发现ONT功能 MA5680T(config-if-gpon-0/7)#display ont autofind 0
Command:
display ont autofind 0
------------------------------------------------------------------------
Number F/ S/ P SN Password ------------------------------------------------------------------------ 1 0/ 7/ 0 32303131B402AC41 ------------------------------------------------------------------------
MA5680T(config-if-gpon-0/7)#ont add 0 0 sn-auth 32303131B402AC41 snmp ont-lineprofile-id 10 //ONT的管理模式有snmp和omci两种。对于A类ONT(例如HG850),使用omci模式,ONT