1、系统简单配置
MA5680T (config)# switch language-mode 中英文切换
MA5680T (config)# display board 0 查看所有的单板 0 框号
MA5680T (config)# interface gpon 0/1 进入GPON命令模式 1是PON口号
MA5680T(config-if-gpon-0/1)# port 0 ont-auto-find enable 使能端口自动发现ONU
MA5680T (config)# display ont autofind all 查看自动发现的ONU(如果存在自动发现的ONU则如下所示)
2、进入config终端配置
1、通过端口查看ONU的mac-address
MA5680T (config)# display mac-address port 0/1/0 (0/1/0是框号/槽号/端口号)
2、通过VLAN查看ONU的mac-address
MA5680T (config)# display mac-address vlan 100 ( 100是VLAN id)
3、查看ONU的service-port 信息
MA5680T(config)#display service-port port 0/1/0 ont 1(0/1/0是框号/槽号/端口号 1是ONU id)
4、查看MA5680T的版本信息
MA5680T(config)# display version
5、查看DBA 模板
MA5680T(config)# display dba-profile all
6、查看线路模板
MA5680T(config)# display ont-lineprofile gpon all
7、查看单板信息
MA5680T(config)# display board 0
8、查看单板上ONU的信息
MA5680T(config)# display board 0/1 (0/1是框号/槽号)
常用的GPON ONT 相关信息的查询命令
ONT 版本信息
MA5800(config-if-gpon-0/15)#display ont version 0 0
ONT 当前状态和配置信息
MA5800(config-if-gpon-0/15)#display ont info 0 0
ONT 的实际能力
MA5800(config-if-gpon-0/15)#display ont capability 0 0
ONT 光模块信息
MA5800(config-if-gpon-0/15)#display ont optical-info 0 0
ONT 以太端口实时流量
MA5800(config-if-gpon-0/15)#display ont traffic 0 0
ONT 所属MG 接口注册的注册状态(H.248协议)
MA5800(config-if-gpon-0/15)#display ont mg status 0 1
查看ONT配置的IP地址相关信息
MA5800(config-if-gpon-0/2)#display ont ipconfig 1 0
查看ONT 的 WAN 端口的相关信息
MA5800(config-if-gpon-0/2)#display ont wan-info 1 0
可在OLT上使用命令行设置和查询ONT 的性能统计信息
查询 ONT 性能统计信息
MA5800(config-if-gpon-0/15)#display ont statistics performance 0 0
清除在线 ONT 性能统计信息
MA5800(config-if-gpon-0/15)#reset statistics ont 0 0
查询 ONT 线路质量统计信息
MA5800(config-if-gpon-0/15)#display statistics ont-line-quality 0 0
清除在线ONT线路质量统计信息
MA5800(config-if-gpon-0/15)#reset statistics ont-line-quality 0 0
查询ONT因缓存溢出导致的优先级队列丢弃字节告警计数的统计信息
MA5800(config-if-gpon-0/15)#display statistics ont-priority-queue 0 0
清除ONT因缓存溢出导致的优先级队列丢弃字节告警计数的统计信息
MA5800(config-if-gpon-0/15)#reset statistics ont-priority-queue
查询ONT上ETH端口性能统计信息
MA5800(config-if-gpon-0/15)#display statistics ont-eth 0 0 ont-port 1
清除在线ONT以太网端口的性能统计信息
MA5800(config-if-gpon-0/15)#reset statistics ont-eth 0 0 ont-port 1
查询ONT性能统计数目
MA5800(config-if-gpon-0/15)#display statistics ont 0 0
查询ONT性能统计相关参数
MA5800(config-if-gpon-0/15)#display statistics ont-performance 0 0 historic-15minutes
GPON 上行中心波长 1310 nm
XGS-PON 中心波长为 1270 nm
查看ONT端口状态 (omci管理模式),查看端口连接的设备状态是否上线
MA5800-X17(config-if-gpon-0/15)#display ont port state 0 1 eth-port all
或者通过报警信息查看端口连接设备状态
MA5800-X17(config-if-gpon-0/15)#display ont alarm-state 2 1
检查当前端口ONT配置
MA5800-X17(config-if-gpon-0/15)#display current-configuration ont 0/15/2 1
查看端口状态
MA5800(config-if-gpon-0/15)#display port state all
查看端口ONU状态
MA5800(config-if-gpon-0/15)#display port state 0
查询ONU信息与状态
MA5800(config-if-gpon-0/15)#display ont info 0 all
查看OLT 接收光功率 ONU 接送光功率 ONU 发送光功率
MA5800(config-if-gpon-0/15)#display ont optical-info 0 all
查看OLT 发送光功率
MA5800(config-if-gpon-0/15)#display port state 0
OMCI管理模式型ONT上网业务配置流程:
1.配置流量模板(可选);流量模板编号10 ,CRI信息保证速率(平均速率)4096kbps.峰值速率8096kbps。报文优先级从user-cos拷贝,没有则使用默认为5,优先级策略为 tag
MA5800(config)#traffic table ip index 10 cir 4096 pir 8096 priority user-cos 5 priority-policy tag-In-package
2添加ONT(
1.配置DBA模板;增加DBA模板,编号为30,保证带宽为4M
MA5800(config)#dba-profile add profile-id 30 type2 assure 4096
2.配置ONT线路模板;增加一个线路模板,标号为40,配置模板参数
MA5800(config)#ont-lineprofile gpon profile-id 40
绑定dba模板到TCONT 2
MA5800(config-gpon-lineprofile-40)#tcont 2 dba-profile-name 30
添加 GEM(GPON 封装模型)0 类型为eth(以太网)并绑定tcont 2
MA5800(config-gpon-lineprofile-40)#gem add 0 eth tcont 2
映射gem-index 0到mapping-index 0,ONT VLAN ID 35
MA5800(config-gpon-lineprofile-40)#gem mapping 0 0 vlan 35
提交保存配置commit Commit profile data
MA5800(config-gpon-lineprofile-40)#commit
3.配置ONT业务模板;
增加一个业务模板编号为50
MA5800(config)#ont-srvprofile gpon profile-id 50
ont 端口集 业务配置 4个eth口,2个pots口 (电话口)
MA5800(config-gpon-srvprofile-230)#ont-port eth 4 pots 2
端口eth 1 配置为VLAN 35
MA5800(config-gpon-srvprofile-230)#port vlan eth 1 35
提交保存配置commit
MA5800(config-gpon-srvprofile-230)#commit
4.添加ONT并绑定相关模板);
离线预添加ONT,进入0框15板
MA5800-X17(config)#interface gpon 0/15
在0端口添加onu ID为4 SN号为485754435706C391 管理模式为OMCI。 绑定线路模板40 , 服务模板50
MA5800-X17(config-if-gpon-0/15)#ont add 0 4 sn-auth 485754435706C391 omci ont-lineprofile-id 40 ont-srvprofile-id 50
手动确认ONT。使能端口0 自动发现 ont
MA5800-X17(config-if-gpon-0/15)#port 0 ont-auto-find enable
确认0 端口 ontid 4 SN号为485754435706C391 管理模式为OMCI。 绑定线路模板40 , 服务模板50
MA5800-X17(config-if-gpon-0/15)#ont confirm 0 ontid 4 sn-auth 485754435706C391 omci ont-lineprofile-id 40 ont-srvprofile-id 50
3.配置ONT端口缺省VLAN(可选);
进入0框15板
MA5800-X17(config)#interface gpon 0/15
配置OLT 0框15板端口0 ontid 4 以太网口 1 默认VLAN 为35
MA5800-X17(config-if-gpon-0/15)#ont port native-vlan 0 4 eth 1 vlan 35
4.配置VLAN及VLAN属性;
单层VLAN场景
创建vlan 35 并配置为smart类型
MA5800-X17(config)#vlan 35 smart
可不配(默认外层VLAN就是common属性)
MA5800-X17(config)#vlan attrib 35 common
5.配置VLAN上行口;允许上行口0框9板0端口通过该业务VLAN 35
MA5800-X17(config)#port vlan 35 0/9 0
6.配置业务虚拟端口;增加一条业务虚拟端口vlan35 给0框15槽端口0 ont id 为4 使用,多业务服务用户VLAN 35 接收 限速模板10 发送限速模板10
MA5800-X17(config)#service-port vlan 35 gpon 0/15/0 ont 4 gemport 0 multi-service user-vlan 35 rx-cttr 10 tx-cttr 10
双层QinQ场景
增加业务VLAN,设置其类型为smart,属性为QinQ
MA5800-X17(config)#vlan 2012 smart
可不配(默认外层VLAN就是common属性)
MA5800-X17(config)#vlan attrib 2012 q-in-q
5.配置VLAN上行口;允许上行口0框9板0端口通过该业务VLAN 2012
MA5800-X17(config)#port vlan 2012 0/9 0
6.配置业务虚拟端口;增加一条业务虚拟端口vlan 2012 给0框15槽端口0 ont id 为4 使用,多业务服务用户VLAN 35 接收 限速模板10 发送限速模板10
MA5800-X17(config)#service-port vlan 2012 gpon 0/15/0 ont 4 gemport 0 multi-service user-vlan 35 rx-cttr 10 tx-cttr 10
(注:业务虚拟端口中的上下行流量模板优先级可以不相同)
OMCI管理模式型ONT 摄像头 业务配置流程:
创建流量模板:创建视频监控业务通道流量模板,模板名称为 traffic_table_videomonitor ,不限速,优先级为5 ,优先级策略为 tag
MA5800-X17(config)#traffic table ip name traffic_table_videomonitor cir off priority 5 priority-policy Tag-In-Package
配置Gem port 与 VLAN 的映射关系;在ONT线路模板中,将VLAN 200 的业务流映射到索引16的GEM port
MA5800-X17(config)#ont-lineprofile gpon profile-name pol_line_all
MA5800-X17(config-gpon-lineprofile-4)#gem mapping 16 1 vlan 200
MA5800-X17(config-gpon-lineprofile-4)#commit
MA5800-X17(config-gpon-lineprofile-4)#quit
在ONT业务模板中,将ONU连接摄像头的1号ETH端口加入VLAN 200中。
MA5800-X17(config)#ont-srvprofile gpon profile-name pol_line_all
MA5800-X17(config-gpon-srvprofile-230)#port vlan eth 1 200
MA5800-X17(config-gpon-srvprofile-230)#commit
MA5800-X17(config-gpon-srvprofile-230)#quit
配置ONT端口的Native Vlan; ONT 上的ID为4,ETH端口为1, Nate VALN ID 为 200 。
MA5800-X17(config)#interface gpon 0/15
MA5800-X17(config-if-gpon-0/15)#ont port native-vlan 0 4 eth 1 vlan 200
MA5800-X17(config-if-gpon-0/15)#quit
创建业务VLAN 200
MA5800-X17(config)#vlan 200 smart
将上行端口0/9/0加入到VLAN 200 中
MA5800-X17(config)#port vlan 200 0/9 0
添加业务虚拟端口;业务VLAN为200,GEM Port ID 为16,用户侧VLAN为200,使用名称为 traffic_table_videomonitor 的流量模板
MA5800-X17(config)#service-port vlan 200 gpon 0/15/0 ont 4 gemport 16 multi-service user-vlan 200 tag-transform translate inbound traffic-table name traffic_table_videomonitor outbound traffic-table name traffic_table_videomonitor
使能ONT ETH 端口的PoE功能(可选);ONU上ID为4,ETH端口为1,使能ETH端口的POE功能,配置最大供电登记为class3.
MA5800-X17(config-if-gpon-0/15)#ont port poe 0 4 eth 1 enable max-power-class class3
(注:次操作仅适用于ONT的ETH端口支持POE功能,且ETH端口通过POE方式方式给摄像头供电的情况,不支持POE特性,不支持的设备无法实现POE功能)
OMCI管理模式型ONT WIFI 业务配置流程:
WIFI接入业务网配置流程
添加ONT
配置流量模板
配置Gem port 与 VLAN 的映射关系
配置VLAN 及vlan 属性
配置VLAN 的上行口
配置业务虚拟端口
ONT配置
登入web配置页面
配置WIFI参数
配置三层路由WAN接口参数
检查WAN口连接状态
创建流量模板:创建WIFI业务通道流量模板,模板名称为 traffic_table_wifi ,不限速,优先级为0 ,采用本地优先级策略
MA5800-X17(config)#traffic table ip name traffic_table_wifi cir off priority 0 priority-policy local-setting
配置Gem port 与 VLAN 的映射关系;在ONT线路模板中,将VLAN 1001 的业务流映射到索引18的GEM port
MA5800-X17(config)#ont-lineprofile gpon profile-name wlan-wifi
MA5800-X17(config-gpon-lineprofile-1)#gem mapping 18 1 vlan 1001
MA5800-X17(config-gpon-lineprofile-1)#commit
MA5800-X17(config-gpon-lineprofile-1)#quit
创建业务VLAN 1001 smart
MA5800-X17(config)#vlan 1001 smart
将上行端口0/9/0加入到VLAN 1001 中
MA5800-X17(config)#port vlan 1001 0/9 0
添加业务虚拟端口;业务VLAN为 1001,GEM Port ID 为18,用户侧VLAN为 101,使用名称为 traffic_table_wifi 的流量模板
MA5800-X17(config)#service-port vlan 1001 gpon 0/15/0 ont 4 gemport 18 multi-service user-vlan 1001 tag-transform translate inbound traffic-table name traffic_table_wifi outbound traffic-table name traffic_table_wifi
ont 配置
登入web...
OMCI管理模式型ONT AP 业务配置流程:
创建流量模板:创建 AP 业务通道流量模板,模板名称为 traffic_table_ap ,保证带宽4M,峰值8M,优先级为5 ,采用本地优先级策略
MA5800-X17(config)#traffic table ip name traffic_table_ap cir 4096 pir 8198 priority user-cos 5 priority-policy local-setting
配置Gem port 与 VLAN 的映射关系;在ONT线路模板中,将VLAN 400 的业务流映射到索引 15 的GEM port
MA5800-X17(config)#ont-lineprofile gpon profile-name pol_line_ap
MA5800-X17(config-gpon-lineprofile-1)#gem mapping 15 1 vlan 400
MA5800-X17(config-gpon-lineprofile-1)#commit
MA5800-X17(config-gpon-lineprofile-1)#quit
在ONT业务模板中,将ONU连接摄像头的1号ETH端口加入VLAN 400 中。
MA5800-X17(config)#ont-srvprofile gpon profile-name pol_ser
MA5800-X17(config-gpon-srvprofile-230)#port vlan eth 1 400
MA5800-X17(config-gpon-srvprofile-230)#commit
MA5800-X17(config-gpon-srvprofile-230)#quit
使能ONT ETH 端口的PoE功能(可选);ONU上ID为4,ETH端口为1,使能ETH端口的POE功能,配置最大供电登记为class3.
MA5800-X17(config-if-gpon-0/15)#ont port poe 0 4 eth 1 enable max-power-class class3
(注:此操作仅适用于ONT的ETH端口支持POE功能,且ETH端口通过POE方式方式给摄像头供电的情况,不支持POE特性,不支持的设备无法实现POE功能)
创建业务VLAN 400 smart
MA5800-X17(config)#vlan 400 smart
将上行端口0/9/0加入到VLAN 400 中
MA5800-X17(config)#port vlan 400 0/9 0
添加业务虚拟端口;业务VLAN为 400,GEM Port ID 为 15,用户侧VLAN为 101,使用名称为 traffic_table_ap 的流量模板
MA5800-X17(config)#service-port vlan 400 gpon 0/15/0 ont 4 gemport 15 multi-service user-vlan 400 tag-transform translate inbound traffic-table name traffic_table_ap outbound traffic-table name traffic_table_ap
OMCI管理模式型ONT BTV(iptv) 业务配置流程:
创建流量模板:创建 AP 业务通道流量模板,模板名称为 traffic_table_iptv ,不限速。优先级为3 ,采用本地优先级策略
MA5800-X17(config)#traffic table ip name traffic_table_ap cir off priority 3 priority-policy local-setting
配置Gem port 与 VLAN 的映射关系;在ONT线路模板中,将VLAN 1000 的业务流映射到索引 17 的GEM port
MA5800-X17(config)#ont-lineprofile gpon profile-name pol_line_all
MA5800-X17(config-gpon-lineprofile-1)#gem mapping 17 1 vlan 1000
MA5800-X17(config-gpon-lineprofile-1)#commit
MA5800-X17(config-gpon-lineprofile-1)#quit
在ONT业务模板中,将ONU连接摄像头的1号ETH端口加入VLAN 1000 中。
MA5800-X17(config)#ont-srvprofile gpon profile-name pol_ser
MA5800-X17(config-gpon-srvprofile-230)#port vlan eth 2 1000
MA5800-X17(config-gpon-srvprofile-230)#commit
MA5800-X17(config-gpon-srvprofile-230)#quit
创建业务VLAN 1000 smart
MA5800-X17(config)#vlan 1000 smart
将上行端口0/9/0加入到VLAN 1000 中
MA5800-X17(config)#port vlan 1000 0/9 0
添加业务虚拟端口;业务VLAN为 1000,GEM Port ID 为 17,用户侧VLAN为 1000,使用名称为 traffic_table_iptv 的流量模板
MA5800-X17(config)#service-port 1 vlan 1000 gpon 0/15/0 ont 4 gemport 17 multi-service user-vlan 1000 tag-transform translate inbound traffic-table name traffic_table_iptv outbound traffic-table name traffic_table_iptv
配置组播业务
配置ONT的组播转发模式为不带VLAN TAG
MA5800-X17(config)#ont-srvprofile gpon profile-name pol_ser
MA5800-X17(config-gpon-srvprofile-230)#multicast-forward untag
MA5800-X17(config-gpon-srvprofile-230)#commit
MA5800-X17(config-gpon-srvprofile-230)#quit
创建组播VLAN并配置IGMP版本;设置组播VLAN 1000 的GMP版本为GMP V2
MA5800-X17(config)#multicast-vlan 1000
MA5800-X17(config-mvlan100)#igmp version v2 y
配置节目库;配置组播节目为动态获取方式,
MA5800-X17(config-mvlan100)#igmp mode off y
MA5800-X17(config-mvlan100)#igmp match mode disable
(可选)配置动态节目的地址范围为224.1.1.1 ~ 224.1.1.100
MA5800-X17(config-mvlan100)#igmp match group ip 224.1.1.1 to-ip 224.1.1.100
(注:修改节目匹配模式需要在IGMP模式为off时配置)
配置IGMP模式;使用IGMP PROXY模式
MA5800-X17(config-mvlan100)#igmp mode proxy y
配置IGMP上行端口;IGMP上行端口号0/9/0,组播上行端口模式为default,协议报文向节目所在VLAN内的所有组播上行端口发送。
MA5800-X17(config-mvlan100)#igmp uplink-port 0/9/0
MA5800-X17(config-mvlan100)#btv
MA5800-X17(config-btv)#igmp uplink-port-mode default y
配置组播用户;将索引号为1的业务流添加为组播用户
MA5800-X17(config-btv)#igmp user add service-port 1
MA5800-X17(config-btv)#multicast-vlan 1000
MA5800-X17(config-mvlan100)#igmp multicast-vlan member service-port 1
MA5800-X17(config-mvlan100)#quit
(注:当成功将某个端口上的组播用户设置为组播VLAN成员时即执行igmp multicast-vlan member service-port 1 后,系统提示add 1 multicast vlan member(s) successfully )
T-CONT及GEM Port的规划原则
在ONU线路模板中配置T-CONT及GEM Port 的绑定关系
GEM Port与业务流一一映射
GEM Port 与T-CONT 一一绑定
不同的业务流承载在不同的T-CONT中
不同的T-CONT 绑定的DBA模板类型不一样
GEM Port 和 T-CONT的绑定可以一对一绑定,也可以多对一绑定,为了不同类型的业务合理采用不同的流量策略,推荐采用一对一的映射方式。
VLAN规划原则
根据用户需求通过单层VLAN模糊匹配或QinQ VLAN/Stacking VLAN 实现精确绑定,唯一标识。
同一业务类型不做PON口区分,打上相同的单层VLAN标签;
同一PON口针对不同业务打上不同的单层VLAN标签;
如果不同PON口的外层标签相同,内层标签可以不相同;
如不同PON口的外层标签不相同,内层标签可以相同。
VLAN的数据规划相对较灵活,规划设计可根据实际情况选择单层VLAN,QinQ VLAN或者是Stacking VLAN.
GPON基本概念
上行复用结构
GEM端口用作业务通道,一个GEM端口可以承载一种或者多种业务。
一个ONU可以包含多个T-CONT。
上行宽带基于T-CONT来划分,不同业务使用不同的T-CONT.
GEM Port
GEM Port:1.GPON Encapsulation Mode (GEM)帧在OLT和ONU/ONT之间传送。2.每个T-CONT包含一个或多个GEM Port,每个GEM端口承载一种业务。
GEM Port-ID:每个GEM Port 由一个Port-ID唯一标识,Port-ID 取值范围0~4095,由OLT分配,一个GEM Port只能被一个PON口下的一个ONU/ONT使用。
T-CONT:在GPON系统中,T-CONT被用作上行业务流量的缓存器。
Alloc-ID :1.每个T-CONT由Alloc唯一标识。2.Alloc-ID取值范围0~4095.由OLT分配,也就是说,一个Alloc-ID 只能被一个PON口下的一个ONU/ONT使用。
GEM Port和业务之间的不同映射方式
VLAN映射:将一个特定VLAN ID 映射到一个唯一的PortPort-ID. ONU/ONT 使用VLAN ID 来区分业务流。
802.1p 映射:将一个特定802.1p映射到一个唯一的Port-ID. ONU/ONT 使用802.1优先几倍来区分业务流,用户优先级策略必须是Pri-tagged.
VLAN 802.1P 映射:将一个特定的VLAN ID +802.1映射到一个唯一的Port-ID. ONU/ONT 使用优先级+VLAN ID 来区分不同的业务流。
查询GPON端口0/15/0下所有ONU信息
MA5800(config-if-gpon-0/15)#display ont info 0 all
查询GPON端口0/15/0下的在线ONU实际能力
MA5800(config-if-gpon-0/15)#display ont capability 0 0
查询GPON端口0/8/0下特定的ONU ID 信息
MA5800(config-if-gpon-0/15)#display ont info 0 0
在OLT查找SN号为 4857544386E0A870 ONU信息
MA5800(config)#display ont info 0 all | include "4857544386E0A870"
查询GPON端口0/8/0下的ONU配置能力
MA5800(config-if-gpon-0/15)#display ont config-capability 1 3
查询ONU版本信息
MA5800(config-if-gpon-0/15)#display ont version 1 3
查询ONU的收发光功率
MA5800(config-if-gpon-0/15)#display ont optical-info 1 3
修改ONU端口缺省VLAN.对于OMCI管理方式的ONT用以下命令 (当ONT端口直接接PC的情况下,从ONT转发出来的数据需要剥离掉用户的VALN TAG ,则配置的ONT native-vlan=ONT port vlan)
MA5800(config-if-gpon-0/15)#ont port native-vlan 1 3 eth 1 vlan 11
ONU 日常维护
修改ONT的属性,更换新的ONT .........
MA5800(config-if-gpon-0/15)#ont modify 1 3 ?
---------------------------------------------
Command of gpon-0/15 Mode:
---------------------------------------------
authtype ONT authentication type
desc ONT description
discovery-mode ONT discovery mode
loid Logic ONU identifier
manage-mode ONT management mode
ont-lineprofile-id ONT line profile ID
ont-lineprofile-name ONT line profile name
ont-srvprofile-id ONT service profile ID
ont-srvprofile-name ONT service profile name
ont-type ONT rate type
password ONT password
sn ONT serial number
ONU配置SNMP路由(当网管服务器和设备在不同网段时需要配置)
MA5800(config-if-gpon-0/15)#ont snmp-route 1 3 ip-address 192.168.1.1 mask 255.255.255.0 next-hop 192.168.1.254
ONU重新发现
CGFK_MA5800(config-if-gpon-0/15)#ont re-discovery 1 3
删除自动发现的ONU
MA5800(config-if-gpon-0/15)#ont cancel 1 485754435706C391
ONU重新注册
MA5800(config-if-gpon-0/15)#ont re-register 1 3
取消激活ONU (比如欠费了,给他断网。停止业务。缴费后使用 MA5800(config-if-gpon-0/15)#ont activate 1 3 激活即可)
MA5800(config-if-gpon-0/15)#ont deactivate 1 3
ONU远程重启
MA5800(config-if-gpon-0/15)#ont reset 1 3
登入到ONU 对ONU进行 命令重启
MA5821(config)#reboot system
ONU删除流程
在没有配置业务时,可以直接删除ONU。
在配置了业务的情况下,需要删除ONU配置的业务后才能删除ONU。
查看ONU的 service-port 信息
MA5800(config)#display service-port port 0/15/1 ont 3
需要删除ONU配置的业务后才能删除ONU。
MA5800(config)#undo service-port 542
MA5800(config)#undo service-port 543
MA5800(config)#undo service-port 544
MA5800(config)#interface gpon 0/15
MA5800(config-if-gpon-0/15)#ont delete 1 3
ONT更换流程
接入新的ONT,修改已注册待跟换的ONU的SN新设备SN号。
MA5800(config-if-gpon-0/15)#ont modify 0 3 sn 485754435706C391
DBA模板的作用是什么?
为ONU分配上行带宽的作用
线路模板和业务模板配置错误会产生什么后果?
线路模板配置错误会导致配置状态失败
业务模板配置错误会导致业务不匹配
如何 判断ONU下线原因是掉电还是光纤断裂? display ont info 0 2
查询ONU的详细信息如果是LOS 则是光纤断裂或者出现流氓ONU(一直在发光的ONU)。dying-gasp 断电离线。 deactivate 出现环路。
添加ONU需要关联的模板有:
DBA模板:描述PON的上行流量参数,每个ONU都需要配置。
线路模板:TCONT绑定DBA模板,GEM PORT ID,业务映射方式(VLAN或者802.1P),业务类型(以太网或TDM),Qos模式(PQ或者CAR)等,每个ONU都需要配置。
业务模板:1.ONU端口类型和数量,端口编号和VLAN映射关系。2.在增加管理模式为OMCI的ONT时引用。
SNMP模板:1.当上层网络通过网管服务器管理设备时,需要配置相关的SNMP协议参数,包括SNMP版本,团体名,网管IP。2.在增加管理模式为SNMP的ONU时引用。
3、添加ONT
MA5800-X17(config-if-gpon-0/15)#ont add 0 4 sn-auth 485754435706C391 omci ont-lineprofile-name MA5671_4
查看ONU 状态 (Control flag: active) 表示已注册激活上线
MA5800-X17(config-if-gpon-0/15)#display ont info 0 4
配置ONU业务,不限速
MA5800-X17(config)#service-port vlan 2300 gpon 0/15/6 ont 4 gemport 2 multi-service user-vlan 2300 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
MA5800-X17(config)#service-port vlan 12 gpon 0/15/6 ont 4 gemport 1 multi-service user-vlan 12 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
配置ONT本地ETH端口 vlan
MA5800-X17(config)#interface gpon 0/15
MA5800-X17(config-if-gpon-0/15)#ont port native-vlan 0 4 eth 1 vlan 2300 priority 0
MA5800-X17(config-if-gpon-0/15)#ont port native-vlan 0 4 eth 2 vlan 2300 priority 0
MA5800-X17(config-if-gpon-0/15)#ont port native-vlan 0 4 eth 3 vlan 2300 priority 0
MA5800-X17(config-if-gpon-0/15)#ont port native-vlan 0 4 eth 4 vlan 12 priority 0
保存配置
MA5800-X17(config)#
enable
config
undo service-port 542
undo service-port 543
undo service-port 544
interface gpon 0/15
ont delete 13 3
ont add 6 4 sn-auth ****** omci ont-lineprofile-id 4 ont-srvprofile-id 230 desc "C_WLT_piaoliushoupiaochu_16#"
quit
service-port vlan 2300 gpon 0/15/6 ont 4 gemport 2 multi-service user-vlan 2300 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
interface gpon 0/15
ont port native-vlan 6 4 eth 1 vlan 2300 priority 0
ont port native-vlan 6 4 eth 2 vlan 2300 priority 0
ont port native-vlan 6 4 eth 3 vlan 2300 priority 0
ont port native-vlan 6 4 eth 4 vlan 12 priority 0
quit
service-port vlan 12 gpon 0/15/6 ont 4 gemport 1 multi-service user-vlan 12 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
save
Standard VLAN 不包括业务虚端口(业务流),只支持加入以太端口。
MUX VLAN 只包含一个业务端口(业务流),不同MUX VLAN 间的业务虚拟端口相互隔离
Smart VLAN 可包含多个业务虚拟端口(业务流),同一个Smart VLAN 中的业务虚拟端口相互隔离。
Super VLAN 是基于三层的VLAN。一个Super VLAN中可包含多个SubVLAN。SubVLAN的类型可以为:Smart VLAN或MUX VLAN。通过ARP proxy可实现Sub VLAN的互相通信。各个SubVLAN统一通过Super VLAN的三层接口实现三层转发业务。
NativeVLAN 上行端口的缺省VLAN。端口的缺省 VLAN(PVID,Port Default VLAN ID),又称为默认VLAN或NativeVLAN。如果为一个以太端口设置了缺省VLAN,针对发送不同VLAN tag的报文,以太网端口的处理规则如下:
系统缺省 VLAN 1 默认类型是SmartVLAN,可修改此VLAN的类型,但不能删除。defaultvlan modify { mux | standard | smart }
系统缺省保留 VLAN 4079~4093 不能作为业务VLAN使用,可修改系统的保留 VLAN。vlan reserve start-vlanid
VLAN 属性
Common 属性的VLAN只支持单层VLAN。可作为普通的二层VLAN使用,需要用于三层转发时可以为之添加VLAN三层接口。
Stacking 属性的VLAN只支持双层VLAN,Stacking VLAN的外层VLAN和内层VLAN标签都是OLT分配,可应用于上层BRAS设备进行双VLAN认证,为ISP提供批发业务。
QinQ 属性的VLAN支持单层或者多层VLAN,主要应用于透传和专线的场景。如果是支持多层VLAN的场景,QinQ的外层VLAN和内层VLAN可以在OLT上配置分配(两层VLAN场景:用户侧带一层VLAN,OLT再添加第二层VLAN)。
创建VLAN
huawei(config)#vlan vlan-list [ mux | smart | standard | super ] 或
huawei(config)#vlan vlanid [ to end-vlanid] [ mux | smart | standard | super ]
创建VLAN描述与删除VLAN描述
huawei(config)#vlan desc vlanid description description-value
删除VLAN描述信息
huawei(config)#undo vlan desc { vlanid| bydesc description-value }
配置VLAN的属性(vlan attrib命令用于设置VLAN的属性。VLAN创建后,缺省属性为Common。在专线等业务中,需要设置VLAN属性。)
huawei(config)#vlan attrib vlanid { q-in-q | stacking | common}或
huawei(config)#vlan attrib vlan-list{ q-in-q | stacking | common }
配置VLAN的上行口
huawei(config)#port vlan vlanid [ to end-vlanid ] frameid/slotid portlist
删除VLAN的上行口
huawei(config)#undo port vlan vlanid [ to end-vlanid ]frameid/slotid portlist
删除VLAN
huawei(config)#undo vlan vlan-list或
huawei(config)#undo vlan vlanid [ to end-vlanid ]
查询VLAN
huawei(config)#display vlan vlanid或
huawei(config)#display vlan vlanid to end-vlanid [ mux | smart| standard | super ] [ vlanattr { sub | common| q-in-q | stacking } ]
Super VLAN配置
huawei(config)#supervlan supervlanid subvlan vlanid [ to end-vlanid ]
举例1:创建1个编号为10的VLAN业务模板,二层网桥协议报文透传(即BPDU透传)enable,企业业务参数默认,VLAN业务模板与
huawei(config)#vlan service-profile profile-id 10
huawei(config-vlan-srvprof-10)#bpdu tunnel enable
huawei(config-vlan-srvprof-10)#commit
huawei(config-vlan-srvprof-10)#quit
huawei(config)#vlan bind service-profile 100 profile-id 10
创建业务流
举例:OLT的GPON端口0/1/9下接ONT,ONT ID为10,承载业务流的GEM Port索引值为2,以多业务方式为此用户
提供上网业务,基于用户侧VLAN ID来做流分类,S-VLAN为1379,C-VLAN为1379,VLAN切换方式为透传,上下行
绑定流量模板序号为8
huawei(config)# service-port 2 vlan 1379 gpon 0/1/9 ont 10 gemport 2 multi-service user-vlan 1379 tag-transform transparent inbound traffic-table index 8 outbound traffic-table index8
查询单板软件版本信息
MA5800(config)#display version 0/9
查询系统时间
huawei(config)#display time
2019-11-12 15:37:45+08:00
设置系统本地时间
huawei(config)#time 9:30:59 2019-11-12
配置网络时间
huawei(config)#ntp-service unicast-server 10.11.1.1 source-interface meth 0
修改系统名称
huawei(config)#sysname OLT_Hangzhou
查询指定的某一个槽位单板信息
huawei(config)#display board 0/1 H901XEHD
离线增加单板
huawei(config)#board add 0/4
H901CIUA Universal interface board
H901EDSH TDM service board
H901EPHF 16-port EPON interface board
H901GPHF 16-port GPON interface board
H901GPSF 16-port GPON interface board
H901NXED L3 transmit interface board
H901OGHK 48-port GE optical service board
H901OXHD 8-port 10GE optical service board
H901PILA DC Power Interface board
H901XEHD 8-port 10G EPON interface board
H901XGHD 8-port 10G GPON interface board
确认自动发现的单板
huawei(config)#board confirm 0//确认所有单板
huawei(config)#board confirm 0/4//确认指定单板
删除单板
huawei(config)#board delete
复位单板
huawei(config)#board reset
禁用单板/解禁用单板
huawei(config)#board prohibit
huawei(config)#undo board prohibit
查看语言版本 字体 字符集
MA5800(config)#display language
切换语言模式 英文/中文
MA5800-X17(config)#switch language-mode
查询用户模板
MA5800-X17(config)#display terminal user-profile all
添加用户模板
MA5800-X17(config)#terminal user-profile add testprofile 90 90 8:00 20:00 n
查看当前存在的用户
MA5800-X17(config)#display terminal user all
添加用户
MA5800-X17(config)#terminal user name admin mduadmin mduadmin testprofile 3 2 guanliyuanTELLNUM15117893478 N
查询在线的用户
MA5800-X17(config)#display terminal user all
修改用户级别
MA5800(config)#terminal user level 3 3 y
修改用户密码
MA5800(config)#terminal user password admin mduadmin mduadmin n
删除在线用户 先查询 clientID 号
MA5800(config)#display client
强制 注销用户 (只能踢出低级别账户)
MA5800(config)#client kickoff clientID
删除用户
MA5800(config)#undo terminal user name admin
删除用户模板
MA5800(config)#terminal user-profile delete testprofile
查询默认框 0
MA5800(config)#display board 0
删除 空的(不连接ONU) 槽位
MA5800(config)#board delete 0/2
增加单板
MA5800(config)#board confirm 0
单板断电
MA5800(config)#board power-off 0/2
单板供电
MA5800(config)#board power-on 0/2
修改 修改带外管理 接口 meth 0 接口地址
MA5800(config)#interface meth 0
MA5800(config-if-meth0)#ip address 10.11.104.2 255.255.255.0
添加默认路由
MA5800(config)#ip route-static 0.0.0.0 0.0.0.0 10.11.104.254
配置带内管理接口
MA5800(config)#vlan 4000 smart
绑定上行口
MA5800(config)#port vlan 4000 0/9 0
创建三层虚拟接口
MA5800(config)#interface vlanif 4000
MA5800(config-if-vlanif4000)#ip address 10.11.104.120/16
配置IP静态路由
MA5800(config)#ip route-static 0.0.0.0 0.0.0.0 10.11.104.254 preference 70
查看所有接口地址信息
MA5800#display ip interface brief
查询VLANIF 或 接口 的详细IP信息
MA5800(config)#display ip interface vlanif 4000
MA5800(config)#display ip interface meth 0
防止非法登入,创建防火墙 配置ACL 匹配规则 . 只有 30.30 地址段可访问
MA5800(config)#firewall enable
MA5800(config)#acl 3000
MA5800(config-acl-adv-3000)#rule 5 permit 30.30.0.0 0.0.255.255 destination 129.9.1.100 0
MA5800(config-acl-adv-3000)#rule 10 deny ip source any
MA5800(config)#interface vlanif 4000
MA5800(config-if-vlanif4000)#firewall packet-filter 3000 inbound
限制协议登入 只允许 ssmp 10.110.10.1 10.110.10.2 地址段可登入
MA5800(config)#sysman ip-access snmp 10.110.10.1 10.110.10.2
MA5800(config)#sysman firewall snmp enable
MA5800(config)#save
增加SNMP模板
增加一个SNMP模板 ( public private 与网管服务器配置名称需保持一致 )
huawei(config)#snmp-profile add profile-id 1 profile-name dsight v2c public private 192.168.48.250 162 private
ONU 添加流程
添加DBA模板
添加线路模板
ONT : ONT 需要线路模板和业务模板
添加业务模板
添加 ONU 并绑定相关模板
MDU : MDU 仅需要线路模板。若想通过网管管理MDU设备,再需创建SNMP模板并绑定。
添加 ONU 并绑定相关模板
ONU添加方式
方式一:自动发现方式添加ONU
流程:
·ONU接入光纤上电
·使能PON端口自动发现功能
·OLT添加ONU:确认自动发现的ONU的SN
·ONU正常注册
方式二:手动方式添加ONU
流程:
·ONU接入光纤上电
·OLT添加ONU:手动添加ONU的SN
▪ONU正常注册
自动发现方式添加ONU (1)
打开PON口自动发现功能
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/8)#port 0 ont-auto-find enable
注:PON口自动发现功使能后,PON口下新发现的ONU能够自动显示。
自动发现方式添加ONU (2)
查询发现的ONU
huawei(config-if-gpon-0/8)#display ont autofind 0
如何确认设备时 ONT 还是 MDU ,可查询设备的 Ont EquipmentID. H G开头的为 ONT; M A S 开头的为 MDU;
自动发现方式添加ONU (3)
·确认已经发现的ONU
huawei(config-if-gpon-0/8)#ont confirm 0 ontid 8 sn-auth 4857544363C8959A omci ont-lineprofile-id 66 ont-srvprofile-id 88
注:选择了OMCI管理模式,需要同时绑定线路模板和业务模板。
手动发现方式添加ONU
·添加一个ONU
huawei(config-if-gpon-0/8)#ont add 0 8 sn-auth 4857544363C8959A omci ont-lineprofile-id 66 ont-srvprofile-id 88
注:选择了OMCI管理模式,需要同时绑定线路模板和业务模板。
查看ONU状态
查看已经添加后的ONU状态
。huawei(config-if-gpon-0/8)#display ont info 0 all
控制标志
ONU的控制标志,包括“激活”和“去激活”两种状态。激活:ONU处于激活态。去激活:ONU处于去激活状态。
运行标志
ONU的运行标志,标识当前ONU的运行状态。包括“在线”、“离线”两种状态,ONU正常在线时显示为“在线”。
配置状态
ONU正常上线后,此状态标识ONU是否配置恢复以及配置恢复的完成情况。共包括“初始状态”、“正常”、“失败”、“配置中”四种状态。
匹配状态
标识ONU与绑定的ONU业务模板的能力是否一致。包括“初始状态”、“匹配”、“不匹配”三种状态,ONU匹配状态并不影响业务流的正常转发,只反映ONU实际能力与ONU业务模板的匹配状况。
带外管理操作步骤
步骤一:进入维护网口模式
huawei(config)#interface meth (D
步骤二:设置维护网口IP 地址
huawei(config-if-meth0)#ip address 10.110.20.1 255.255.255.0
huawei(config-if-meth0)#quit
步骤三:添加带外管理路由
huawei(config)#ip route-static 10.110.21.0 24 10.110.20.254
IP规划
远程终端 IP 地址
10.110.21.1/24
上层路由器接口地址
10.110.30.254/24
设备上行口
0/9/0
带内管理VLAN
4000
OLT设备带内管理地址
10.110.30.1/24
带内管理操作步骤
步骤一:创建管理VLAN
huawei(config)#vlan 4000 standard
步骤二:添加上行端口
。huawei(config)#port vlan 4000 0/9 0
步骤三:进入网管VLAN接口
huawei(config)#interface vlanif 4000
步骤四:设置管理VLAN接口IP地址
huawei(config-if-vlanif4000)#ip address 10.110.30.1 255.255.255.0
huawei(config-if-vlanif4000)#quit
步骤五:设置管理路由
huawei(config)#ip route-static 0.0.0.0 0.0.0.0 10.110.30.254
查看设备的IP地址
查看设备所有IP地址0
huawei(config)#display ip interface brief
查看设备的某个IP地址
huawei(config)#display ip interface meth 0
huawei(config)#display ip interface vlanif 4000
查看带外管理地址
huawei(config)#display interface meth 0
配置安全策略
打开防火墙(系统默认关闭)
huawei(config)#firewall enable
添加一条访问列表
。允许远程管理终端10.110.21.0/24 网段可以访问设备
huawei(config)#acl 3000
huawei(config acl adv 3000)#rule 5 permit ip source 10.110.21.0 0.0.0.255 destination 10.110.20.1 0
huawei(config-acl-adv-3000)# rule 10 denyip source 10.110.21.10 /禁止其他IP地址的数据访问设备
在接口的入方向上使能该访问列表
在带内接口上使能
huawei(config)#interface vlanif4000
huawei(config-if-vlanif4000)#firewall packet-filter 3000 inbound
在带外接口上使能
huawei(config)#interface meth 0
huawei(config-if-meth0)#firewall packet-filter 3000 inbound
配置Telnet的安全策略
添加允许telnet的访问段
huawei(config)#sysman ip-access telnet 10.110.21.1 10.110.21.2
查看允许的访问段
huawei(config)#display sysman ip-access telnet
GPONE
ONT:
FTTH
OMCI
MDU(SNMP):
FTTH
FTTC
FTTO
ONU模板类型
GPON ONU模板是将GPON接入业务需要配置的参数集合起来组成的各种板。ONU部署量大,若为每个ONU分别配置若干参数,工作量大、效率低,可通过绑定ONU模板的方式实现配置简化。
1.DBA模板
定义了GPON的上行流量参数,通过绑定DBA完成上行流量控制。
2.线路模板
定义了ONU的底层线路参数,如T-CONT使用的DBA模板,GEM portID,业务映射方式,业务类型,QoS,FEC加密与否。
3.业务模板
定义了ONU端口的类型和数量,端口编号和VLAN映射关系,组播VLAN、VLAN切换方法等
在增加管理模式为OMCI的ONT时引用,MDU不需要配置业务模板。
4. SNMP模板
当上层网络通过网管服务器管理MDU类型设备时,需配置相关的SNMP协议参数,包括SNMP版本团体名、网管服务器IP.
查询缺省DBA模板
查询已存在的DBA-profile
huawei(config)#display dba-profile all
增加DBA模板
增加一个新的DBA模板。ONT上只有绑定了DBA模板后,才能够用于承载业务。当系统缺省的DBA模板不能够满足业务需求时,使用此命令新增一个DBA模板。
huawei(config)#dba-profile add profile-id 22 profile-name 2M type3 assure 2048 max 4096
增加ONU线路模板(1)(注:创建线路模板或DBA模板的时候,如果不指定模板ID,则系统会自动分配板ID。)
增加一个名为XiaoYuanKuanDai的ONU线路模板创建模板并进入模板配置模式a
huawei(config)#ont-lineprofile gpon profile-id 66 profile-name xiaoyuankuandai
增加ONU线路模板(2)
TCONT绑定DBA模板(必须配置的参数)
示例:编号为66的线路模板设置编号为2的T-CONT,此T-CONT绑定22号DBA模板
huawei(config-gpon-lineprofile-66)#t-cont 2 dba-profile-id 22
增加ONU线路模板(3)
增加GEM Port 并映射到对应的T-CONT (必须配置的参数)
GEM Port是ONU上最小的逻辑端口,ONU上行通道中GEM Port必须与某个T-CONT绑发在构建业务流时,GEM Port是业务流目的端的最小标识端口,以下是面向交换的业务流部分实现命令字段
vlan vlanid gpon frameid/slotid/portidont ontid gemport gemindex源端(主交换S-VLAN)目的端(用户接入端口)
示例:为 66 号线路模板添加序列号为 20 的承载以太业务的GEM Port,该GEM Port绑定在T-CONT2上,优先级为3
huawei(config-gpon-lineprofile-66)#gem add 20 eth t-cont 2 priority-queue 3
业务类型
ETH :非TDM 的都为以太网业务
TDM :E1 或者 T1
T-CONT :不同的ONU支持数量不一样。建议使用 0~7 之间;ONT 0~7 ; MDU 0~127 ;T-CONT 0 默认用来做OMCI管理通道用;
增加ONU线路模板(4)
配置映射模式
ONU需要将业务接口上行的以太帧封装为GEM,但是业务侧与GEMPort之间建立什么样的封装映射关系需要设置明确,首先需要确定映射模式,即,是基于物理端口映射还是基于vlan id映射等。
huawei(config-gpon-lineprofile-66)#mapping-mode vlan (默认为VLAN映射,可不配)
配置gem port和VLAN的映射关系(必须配置的参数)
示例:为 20 号GEM Port创建编号为0的映射关系,映射到vlan 10
huawei(config-gpon-lineprofile-66)#gem mapping 20 0 vlan 10
增加ONU线路模板(5)
配置QoS模式0
huawei(config-gpon-lineprofile-66)#qos-mode priority-queue (默认使用队列优先级策略,可不配)
提交使能所设置的参数0
huawei(config-gpon-lineprofile-66)#commit
huawei(config-gpon-lineprofile-66)#quit
注:所有参数设置,必须提交(commit),才能生效。
查询ONU线路模板
查询配置完成的线路模板
huawei(config)#display ont-lineprofile gpon profile-id 66
增加ONU业务模板(1)
增加一个名为 eq8145v5 的ONU业务模板。创建业务模板并进入模板配置模式
huawei(config)#ont-srvprofile gpon profile-id 88 profile-name eq8145v5
增加ONU业务模板(2)
配置ONU端口能力(必须配置的参数)
huawei(config-gpon-srvprofile-88)#ont-port eth 4 pots 2 (ONU 有 4 个以太网端口 , 2 个 电话口)
ONU端口VLAN设置
huawei(config-gpon-srvprofile-88)#port vlan eth 1 10 (ONU 打开了 LAN 1 口,并且 允许 VLAN 10 通行, 上行的数据打上 VLAN 10 TAG )
增加ONU业务模板(3)
配置组播报文 VLAN TAG 转发模式(有组播业务时,才需要配置)
huawei(config-gpon-srvprofile-88)#multicast-forward untag
配置IGMP报文转发模式(有组播业务时,才需要配置)
huawei(config-gpon-srvprofile-88)#igmp-forward unconcern
提交配置0
huawei(config-gpon-srvprofile-88)#commit
huawei(config-gpon-srvprofile-88)#quit
注:所有参数设置,必须提交(commit),才能生效。
查询ONU业务模板
查询已配置完成的业务模板
huawei(config)#display ont-srvprofile gpon profile-id 88
OMCI 管理方式配置 ONU
ONU模板规划
设备类型 EG8240H
OLT PON口 0/8/0
ONT_ID 1
SN 4857544363C8958A
管理方式 OMCI
ont-lineprofile ID 91,Name eg8240h
ont-srvprofile ID 91,Name eg8240h 端口 4个以太网口,2个POTS口
注:选择了OMCI管理模式,需要同时绑定线路模板和业务模板。
ONU业务数据规划
语音 IP_HOST VLAN 172 gem port id 1 tcont id 1 dba id 21,voip Type1,固定1M
上网 ETH 1 VLAN 11 gem port id 2 tcont id 2 dba id 22,hsi Type2,保证 2M
视频监控 ETH 2 VLAN 12 gem port id 3 tcont id 3 dba id 23,vid Type3,保证4M,最大8M
ONU模板创建
创建 ONU 线路模板
huawei(config)#ont-lineprofile gpon profile-id 91 profile-name eg8240h
huawei(config-gpon-lineprofile-91)#commit
huawei(config-gpon-lineprofile-91)#quit
创建 ONU 业务模板
huawei(config)#ont-srvprofile gpon profile-id 91 profile-name eg8240h
huawei(config-gpon-srvprofile-91)#ont-port eth 4 pots 2
huawei(config-gpon-srvprofile-91)#commit
huawei(config-gpon-srvprofile-91)#quit
注:OMCI管理模式的ONU,需要同时绑定线路模板和业务模板。
配置DBA模板
配置语音业务DBA
huawei(config)#dba-profile add profile-id 21 profile-name voip type1 fix 1024
配置上网业务DBA
huawei(config)#dba-profile add profile-id 22 profile-name hsi type2 assure 2048
配置视频业务DBA
huawei(config)#dba-profile add profile-id23 profile-namevid type3 assure 4096 max 8112
配置ONU线路模板
huawei(config)#ont-lineprofile gpon profile-id 91
添加ONU业务相关配置(2)
TCONT绑定DBA模板
huawei(config-gpon-lineprofile-91)#tcont 1 dba-profile-id 21
huawei(config-gpon-lineprofile-91)#tcont 2 dba-profile-id 22
huawei(config-gpon-lineprofile-91)#tcont 3 dba-profile-id 23
增加GEM port并映射到对应TCONT
huawei(config-gpon-lineprofile-91)#gem add 1 eth tcont 1
huawei(config-gpon-lineprofile-91)#gem add 2 eth tcont 2
huawei(config-gpon-lineprofile-91)#gem add 3 eth tcont 3
配置GEM port 和业务VLAN的映射关系
huawei(config-gpon-lineprofile-91)#gem mapping 1 1 vlan 172
huawei(config-gpon-lineprofile-91)#gem mapping 2 2 vlan 11
huawei(config-gpon-lineprofile-91)#gem mapping 3 3 vlan 12
huawei(config-gpon-lineprofile-91)#commit
huawei(config-gpon-lineprofile-91)#quit
添加ONU业务相关配置(3)
配置ONU业务模板
huawei(config)#ont-srvprofile gpon profile-id 91
huawei(config-gpon-srvprofile-91)#port vlan iphost 172
huawei(config-gpon-srvprofile-91)#port vlan eth 1 11
huawei(config-gpon-srvprofile-91)#port vlan eth 2 12
huawei(config-gpon-srvprofile-91)#commit
huawei(config-gpon-srvprofile-91)#quit
注:OMCI管理模式的ONU,需要绑定业务模板,SNMP管理模式的ONU不需要配置业务模板。
OMCI管理模式ONU添加及ETH端口配置
·自动发现后添加ONU
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/8)#port 0 ont-auto-find enable
huawei(config-if-gpon-0/8)#ont confirm 0 ontid 1 sn-auth 4857544363C8958A omci ont-lineprofile-name eg8240h ont-srvprofile-name eg8240h
配置ONU ETH端口Native VLAN
配置1号ETH端口的Native VLAN ID为11;
配置2号ETH端口的Native VLAN ID为12。
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/8)#ont port native-vlan 0 1 eth 1 vlan 11
huawei(config-if-gpon-0/8)#ont port native-vlan 0 1 eth 2 vlan 12
huawei(config-if-gpon-0/8)#quit
增加VLAN上行端口及业务虚端口创建(1)
创建上网及视频监控业务VLAN并配置其上行口
将上行端口0/9/0加入到VLAN11-12中
huawei(config)#vlan 11 to 12 smart
huawei(config)#port vlan 11 to 12 0/90
创建业务虚端口。上网业务VLAN为11,GEM Port ID为2,用户侧VLAN为11。视频监控业务VLAN为12,GEM Port ID为3,用户侧VLAN为12
(用户VLAN 11 转换为 OLT 的VLAN 11 )
huawei(config)#service-port vlan 11 gpon 0/8/0 ont 1 gemport 2 multi-service user-vlan 11 tag-transform translate
huawei(config)#service-port vlan 12 gpon 0/8/0 ont 1 gemport 3 multi-service user-vlan 12 tag-transform translate
增加VLAN上行端口及业务虚端口创建(2)
创建语音业务VLAN并配置其上行口。将上行端口0/9/0加入到VLAN 172中
huawei(config)#vlan 172 smart
huawei(config)#port vlan 172 0/9 0
增加VLAN上行端口及业务虚端口创建(2)
创建业务虚端口
语音业务VLAN为172,GEM Port ID为1,用户侧VLAN为172
huawei(config)#service-port vlan172 gpon 0/8/0 ont 1 gemport 1 multi-service user-vlan 172 tag-transform translate
使用“displayont autofind all”命令无法发现未注册的网关设
使用“display ont info by-sn xxx”(XXX为智能网关设备的sn号)命令检查该智能网关设备是否已经在该OLT上注册过了
业务配置实验
XXM_MA5800>enable
XXM_MA5800#config
XXM_MA5800(config)#
XXM_MA5800(config)#display dba-profile all
----------------------------------------------------------------------------
Profile-ID type Bandwidth Fix Assure Max Bind
compensation (kbps) (kbps) (kbps) times
----------------------------------------------------------------------------
10 3 No 0 32768 65536 0
VLAN 40 放到 gem port 1 ;gem port 1 放到 tcont 1; tcont 1 跟 dba 10绑定。 (T-CONT 0 默认绑定 dba 1 作为 OMCI 管理通道使用 )
XXM_MA5800(config)#
XXM_MA5800(config)#dba-profile add profile-id 10 profile-name 20M type3 assure 10240 max 20480
XXM_MA5800(config)#ont-lineprofile gpon profile-id 2 profile-name hg8245
XXM_MA5800(config-gpon-lineprofi1e-2)#tcont 1 dba-profile-id 10
XXM_MA5800(config-gpon-lineprofi1e-2)#gem add 1 eth tcont 1
XXM_MA5800(config-gpon-lineprofi1e-2)#gem mapping 1 0 vlan 40
ONT 能力集 4个以太网口 2个电话口 。 ONU 的 LAN 1 口 user-vlan 40 转换为 OLT VLAN 40 ,
XXM_MA5800(config)#ont-srvprofile gpon profile-id 2 profile-name hg8245
XXM_MA5800(config-gpon-srvprofi1e-2)#ont-port eth 4 pots 2
XXM_MA5800(config-gpon-srvprofi1e-2)#port vlan eth 1 translation 40 user-vlan 40
XXM_MA5800(config-gpon-srvprofi1e-2)#commit
ONT 当前接在 0/1/1 下 .开启自动发现,并添加 ONU
XXM_MA5800(config)#interface gpon 0/1
XXM_MA5800(config-if-gpon-0/1)#port 1 ont-auto-find enable
XXM_MA5800(config-if-gpon-0/1)#display ont autofind 1
XXM_MA5800(config-if-gpon-0/1)#ont confirm 1 ontid 100 sn-auth 48575443E8A9A409 omci ont-lineprofile-id 2 ont-srvprofi1e-id 2
删除 ONU
#XXM_MA5800(config-if-gpon-0/1)#ont delete 1 100
配置 C-VLAN (user-vlan) tag
XXM_MA5800(config-if-gpon-0/1)#ont port native-vlan 1 100 eth 1 vlan 40
创建VLAN 3000 为双层(stacking),加入上行口,
XXM_MA5800(config)#vlan 3000 smart
XXM_MA5800(config)#vlan attrib 3000 stacking
XXM_MA5800(config)#port vlan 3000 0/9 0
加入虚拟服务端口,不做限速 。上传双层VLAN tag 3000 与 40
XXM_MA5800(config)#service-port vlan 3000 gpon 0/1/1 ontid 100 gemport 1 multi-service user-vlan 40
加入虚拟服务端口,不做限速 。vlan 40 转化为 vlan 1000
#XXM_MA5800(config)#service-port vlan 3000 gpon 0/1/1 ontid 100 gemport 1 multi-service user-vlan 40 tag-transform translate-and-add inner-vlan 1000
ONU模板、带内管理规划
设备类型 EA5821
OLT PON口 0/8/0
ONT_ID 2
SN 4857544363B7958A
管理方式 SNMP
带内管理IP OLT 管理VLAN 4000,上行口0/9/0 静态IP 192.168.2.254/24 ONU 管理VLAN 4000,静态IP 192.168.2.2/24
ont-lineprofile
ID 92,Name ea5821
带内管理: TCONT ID 0
带内管理:Gem port ID 0 绑定到 TCONT O
带内管理:Gem port ID 0 映射到 VLAN 4000
注:SNMP管理模式ONU添加只需绑定线路模板。
ONU业务数据规划
上网 用户端口 ETH 1-4 SVLAN 100 用户CVLAN 11 GEM Port 5 TCONT ID 2 DBA ID 和 Name 22,hsi 带宽 Type2,保证2M
视频监控 用户端口 ETH 5-8 SVLAN 100 用户CVLAN 12 GEM Port 6 TCONT ID 3 DBA ID 和 Name 23,vid 带宽 Type3,保证4M,最大8M
注:举例设备类型为SmartAX EA5821-8GE。
ONU带内管理配置流程
配置带内管理VLAN
配置OLT侧带内管理地址
配置ONU带内管理业务通道
添加ONU上线
配置ONU侧带内管理地址
测试连通性
远程登陆ONU
带内管理配置(1)
OLT配置带内管理VLAN
huawei(config)#vlan 4000
huawei(config)#port vlan 4000 0/9 0
OLT配置带内管理IP
huawei(config)#interface vlanif 4000
huawei(config-if-vlanif4000)#ip address 192.168.2.254 24
配置ONU带内管理业务通道
创建配置ONU线路模板
huawei(config)#ont-lineprofile gpon profile-id 92 profile-name ea5821
huawei(config-gpon-lineprofile-92)#gem add 0 eth tcont 0
huawei(config-gpon-lineprofile-92)#gem mapping 0 0 vlan 4000
huawei(config-gpon-lineprofile-92)#commit
huawei(config-gpon-lineprofile-92)#quit
带内管理配置(2)
查询自动发现ONU
huawei(config)#display ont autofind all
自动发现后添加ONU
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/8)# ont confirm 0 ontid 2 sn-auth 4857544363B7958A snmp ont-lineprofile-id 92
huawei(config-if-gpon-0/8)# display ont info 0 all
带内管理配置(3)
配置ONU带内管理IP 此处vlan 4000 为ONU管理VLAN
-huawei(config-if-gpon-0/8)#ont ipconfig 0 2 static ip-address 192.168.2.2 mask 255.255.255.0 gateway 192.168.2.254 vlan 4000
·绑定SNMP模板(可选,只有当需要网管服务器管理时)
huawei(config-if-gpon-0/8)#ont snmp-profile0 2 profile-id 1
。配置ONU带内业务虚端口 此处service-port vlan 4000 为OLT 的管理VLAN ;user-vlan 4000 为ONU管理VLAN (默认为 tag-transform translate,可配与不配,默认都会把user-vlan 转换为 service-port vlan )
huawei(config)#service-port vlan 4000 gpon 0/8/0 ont 2 gemport 0 multi-service user-vlan 4000 tag-transform translate
注:可使用snmp-profile add增加SNMP管理模板。SNMP管理模板增加成功后,当SNMP管理模板被绑定时,配置参数生效。
带内管理通道测试
测试带内通道
huawei(config)#ping 192.168.2.2
OLT远程登陆到ONU
huawei(config)#telnet 192.168.2.2
添加ONU业务相关配置
配置ONU线路模板
huawei(config)#ont-lineprofile gpon profile-id 92
TCONT绑定DBA模板
huawei(config-gpon-lineprofile-92)#tcont 2 dba-profile-id 22
huawei(config-gpon-lineprofile-92)#tcont 3 dba-profile-id 23
增加GEM port 并映射到相应的TCONT
huawei(config-gpon-lineprofile-92)#gem add 5 eth tcont 2
huawei(config-gpon-lineprofile-92)#gem add 6 eth tcont 3
配置GEM port和VLAN的映射关系
huawei(config-gpon-lineprofile-92)#gem mapping 5 5 vlan 11
huawei(config-gpon-lineprofile-92)#gem mapping 6 6 vlan 12
huawei(config-gpon-lineprofile-92)#commit
huawei(config-gpon-lineprofile-92)#quit
增加VLAN上行端口及业务虚端口创建
创建SVLAN并配置其上行口。将上行端口0/9/0加入到SVLAN100中 ( stacking 属性表示双层标签)
huawei(config)#vlan 100
huawei(config)#vlan attrib 100 stacking
huawei(config)#port vlan 100 0/9 0
创建业务虚端口
上网业务 SVLAN 为 100 ,GEM PortID为 5,用户侧VLAN为 11
视频监控业务 SVLAN 为 100 ,GEM PortID为 6,用户侧VLAN为 12
huawei(config)#service-port vlan 100 gpon 0/8/0 ont 2 gemport 5 multi-service user-vlan 11
huawei(config)#service-port vlan 100 qpon 0/8/0 ont 2 gemport 6 multi-service user-vlan 12
注:ONU侧仍需要通过远程登录进入设备,完成业务流、上行VLAN等参数配置。
onu业务配置实验
MA5800-X17>enab1e
MA5800-x17#config
固定带宽 31M
MA5800-x17(config)#dba-profile add profile-id 11 profile-name ma5620-30M type2 assure 31920
查看管理 VLAN 4000
MA5800-x17(config)#display interface vlanif 4000
Internet Address is 172.16.0.6/21
MA5800-x17(config)#ont-lineprofile gpon profile-id 11 profile-name ma5620
MA5800-x17(config-gpon-1ineprofile-11)#tcont 1 dba-profile-id 11
gem port 0 承载管理业务;gem port 1 承载宽带业务
MA5800-X17(config-gpon-lineprofi1e-11)#gem add 0 eth tcont 0
MA5800-x17(config-gpon-lineprofile-11)#gem add 1 eth tcont 1
MA5800-x17(config-gpon-1ineprofi1e-11)#gem mapping 0 0 vlan 4000
MA5800-X17(config-gpon-1ineprofile-11)#gem mapping 1 0 vlan 40
MA5800-X17(config-gpon-1ineprofile-11)#commit
查看ONU 并添加 检查
MA5800-x17(config)#display ont autofind a11
MA5800-x17(config)#interface gpon 0/1
MA5800-x17(config-if-gpon-0/1)#ont add 1 127 sn-auth 4857544365608410 snmp ont-lineprofile-id 11
MA5800-x17(config-if-gpon-0/1)#display ont info 1 127
创建OLT vlan 为双层 (q-in-q)
MA5800-x17(config)#vlan 2500 smart
MA5800-x17(config)#vlan attrib 2500 q-in-q
MA5800-x17(config)#port van 2500 0/9 0
增加业务端口来承载他的带宽业务 GPON 0框 1槽 1号 ONT ID 127
MA5800-x17(config)#service-port vlan 2500 gpon 0/1/1 ont 127 gemport 1 muiti-service user-vlan 40
为 ONU 配置 TENET 登入地址
MA5800-x17(config)#interface gpon 0/1
MA5800-x17(confi0)#ont ipconfig 1 127 static ip-address 172.16.146.140 mask 255.255.0.0 gateway 172.16.0.254 vlan 4000
ONU的带内管理的一条业务虚端口service-port van 4000
MA5800-x17(config)#service-port vlan 4000 gpon 0/1/1 ont 127 gemport 0 multi-service user-vlan 4000
测试连通性,并 telnet 登入 ONU
MA5800-x17(config)#ping 172.16.146.140
MA5800-x17(config)#telnet 172.16.146.140
MA5620>enab7e
MA5620#config
配置ONU , 透传VLAN 40 透传 gpon 1 口出去
MA5620(config)#port vlan 40 0/0 1
增加一条虚拟业务端口 vlan 40 0框 1槽 1口 不带标签 ,上下行 绑定流量模板 6 (不做任何处理)
MA5620(config)#service-port vlan 40 eth 0/1/1 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6
查看流量模板
MA5620(config)#display traffic table ip from-index 0
---------------------------------------------------------------------------
TID CIR CBS PIR PBS Pri Copy-policy Pri-Policy
(kbps) (bytes) (kbps) (bytes)
---------------------------------------------------------------------------
6 off off off off 0 - tag-pri
创建自定义流量模板
MA5620(config)#traffic table ip index 7 cir 2048 pir 4096 priority user-cos 3 priority-policy tag-In-Package
在 ONU 上查看 ONU 端口是否链接设备
MA5821(config)#display service-port all
在 OLT 上查看 ONT 端口 连接的服务端口与 gem port 端口 ,对应的状态
MA5800(config)#display service-port port 0/15/2 ont 2
查询ONU信息(1)
查询GPON端口0/8/0下的所有ONU信息
huawei(config-if-gpon-0/8)#display ont info 0 all
查询ONU信息(2)
查询GPON端口0/8/0下的特定ONUID信息
huawei(config-if-gpon-0/8)#display ont info 0 1
ONU能力查询(1)
查询GPON端口0/8/0下的在线ONU实际能力(1)
huawei(config-if-gpon-0/8)# display ont capability 0 2
ONU能力查询(3)
查询GPON端口0/8/0下的ONU配置能力
huawei(config-if-gpon-0/8)#display ont config-capability 0 1
查询ONU版本信息
查询ONU版本信息
huawei(config-if-gpon-0/8)#display ont version 0 3
查询ONU收发光功率
查看ONU的收发光功率
huawei(config-if-gpon-0/8)#display ont optical-info 0 1
修改ONU端口缺省VLAN
对于OMCI管理方式的ONU用以下命令;当ONT端口直接接PC的情况下,从ONT转发出来的数据需要剥掉用户VLAN TAG,则配置ONT native-vlan=ONT port vlan .
huawei(config-if-gpon-0/8)#ont port native-vlan 0 1 eth 1 vlan 11
ONU日常维护(1)
ONU可以修改的属性
huawei(config-if-gpon-0/8)#ont modify 0 1 ?
authtype ONT authentication type
desc ONT description
discovery-mode ONT discovery mode
loid Logic ONU identifier
manage-mode ONT management mode
ont-lineprofile-id ONT line profile ID
ont-lineprofile-name ONT line profile name
ont-srvprofile-id ONT service profile ID
ont-srvprofile-name ONT service profile name
password ONT password
sn ONT serial numbe
ONU日常维护(2)
ONU配置SNMP路由(当网管服务器和设备在不同网段时需要配置)
huawei(config-if-gpon-0/8)# ont snmp-route0
ONU重新发现
huawei(config-if-gpon-0/8)# ont re-discovery
删除自动发现的ONU
huawei(config-if-gpon-0/8)# ont cancel
ONU重新注册
huawei(config-if-gpon-0/8)# ont re-register
去激活ONU
huawei(config-if-gpon-0/8)# ont deactivate
ONU重启
huawei(config-if-gpon-0/8)# ont reset
ONU删除、更换
ONU删除流程
在没有配置业务时,可以直接删除ONU。
在配置了业务的情况下,需要删除ONU配置的业务流后才能删除ONU。
huawei(config-if-gpon-0/8)#ont delete 0 1
ONU更换流程
。接入新的ONU,修改已注册待更换ONU的SN新设备SN号
huawei(config-if-gpon-0/8)#ont modify 0 1 sn 485754435C3A8D9C
GPON基本概念-上行复用结构
GEM端口用做业务通道,一个GEM端口可以承载一种或者多种业务流。
一个ONU可以包含多个T-CONT。上行带宽基于T-CONT来划分,不同业务使用不同的T-CONT。
PON
ONU
T-CONT
Port
Port
Port
T-CONT
Port
ONU
T-CONT
Port
Port
Port
T-CONT
Port
Port
GPON基本概念-GEM Port
GEM Port
。GPON Encapsulation Mode (GEM)帧在 OLT 和 ONU/ONT之间传送。
。每个 T-CONT 包含一个或多个GEM Port,每个GEM端口承载一种业务流。
GEM Port-ID
。每个 GEM Port 由一个Port-ID唯一标识.Port-ID取值范围0~4095,由
OLT分配。一个GEM port 只能被一个PON 口下的一个ONU/ONT使用。
PON
ONU
T-CONT
Port
Port
Port
单 PON 口下最多 4096 个 Gemport
GPON基本概念-T-CONT
T-CONT
。在GPON系统中,T-CONT 被用作上行业务流量的缓存器。
·Alloc-ID
。每个 T-CONT 由 Alloc-ID 唯一标识。
。 Alloc-ID 取值范围 0~4095 。由 OLT 分配,也就是说,一个 Alloc-ID 只能被一个 PON 口下的一个 ONU/ONT 使用。
PON
ONU
T-CONT
Port
Port
Port
GEM Port与业务流的映射
GEM port和业务之间的不同映射方式
映射方式 映射方法 具体应用
VLAN 映射; 将一个特定 VLAN ID 映射到一个唯一的 Port-ID。 ONU/ONT 使用 VLAN ID 来区分业务流。
802.1p 映射; 将一个特定 802.1p 映射到一个唯一的Port-ID。 ONU/ONT 使用 802.1 优先级别来区分业务流.用户优先级策略必须是 Pri-tagged。
VLAN 802.1p 映射; 将一个特定的 VLAN ID +802.1p 映射到一个唯一的 Port-ID。 ONU/ONT 使用优先级 +VLAN ID 来区分不同用户的业务流。
GPON业务转发原理-ONT
OLT
GPON Port
service port (流量模板)
gem port (voice)
T-CONT (DBA 模板)
ONT (线路模板、业务模板)
phone
iptv
PC
service port (流量模板)
gem port (video)
T-CONT (DBA 模板)
ONT (线路模板、业务模板)
phone
iptv
PC
service port (流量模板)
gem port (data)
T-CONT (DBA 模板)
ONT (线路模板、业务模板)
phone
iptv
PC
GPON业务转发原理-ONU
OLT
GPON PORT
service port (流量模板)
gem port (voice)
T-CONT (DBA 模板)
MDU (线路模板)
phone
iptv
PC
service port (流量模板)
gem port (video)
T-CONT (DBA 模板)
MDU (线路模板)
phone
iptv
PC
service port (流量模板)
gem port (data)
T-CONT (DBA 模板)
MDU (线路模板)
phone
iptv
PC
T-CONT 及 GEM Port 规划原则
在 ONU 线路模板中配置 T-CONT 及 GEM Port 的绑定关系
GEM Port与业务流一一映射;
GEM Port与T-CONT一一绑定;
不同的业务流承载在不同的T-CONT中;
不同的T-CONT绑定的DBA模板类型不一样。
GEM Port 和 T-CONT 的绑定可以一对一绑定,也可以多对一绑定,为了给不同类型的业务合理采用不的流量策略,推荐采用一对一的映射方式。
VLAN规划原则
根据用户需求通过单层VLAN模糊匹配或QinQ;VLAN/Stacking VLAN实现精确绑定,唯一标识。
同一业务类型不做PON口区分,打上相同的单层VLAN标签;
同一PON口针对不同业务打上不同的单层VLAN标签;
如不同PON口的外层标签相同,内层标签不可以相同;
如不同PON口的外层标签不相同,内层标签可以相同。
VLAN的数据规划相对较灵活,规划设计时可根据实际情况选择单层VLAN,QinQ VLAN或者是Stacking VLAN。
OLT设备单层VLAN规划示例
框 槽 端口 业务 VLAN标签
0 7 0 宿舍上网 50
1 0 7 宿舍上网 50
0 5 2 视频监控 60
2 0 5 AP接入 70
注: ①不同PON口针对于相同业务打上相同的单层VLAN标签;
②同一PON口针对不同业务打上不同的单层VLAN标签。
OLT设备双层QINQ VLAN规划示例
框 槽 端口 业务 外层标签 内层标签
0 2 0 宿舍上网 100 523-1500
0 2 1 宿舍上网 1002 523-1500
0 2 2 宿舍上网 1006 523-1500
0 2 3 宿舍上网 1009 523-1500
注:不同PON口的外层标签不相同,内层标签可以相同。
IP规划原则
网络核心DMZ区或Internet互联区少量设备使用公网IP,内部网络使用私网IP;
不同接入场景划分不同IP地址段;
原则上服务器,特殊终端设备(打卡机,打印服务器,IP视频监控设备等)和生产设备建议采用静态IP;
智慧城市项目IP规划示例
OLT OLT管理地址 管理地址掩码 管理地址网关 摄像头IP地址 摄像头网关
XX 34.61.47.194 255.255.255.192 34.61.47.193 34.60.35.3-34.60.35.254 34.60.35.1
XX 34.61.47.195 255.255.255.192 34.61.47.193 34.60.36.3-34.60.36.254 34.60.36.1
XX 34.61.47.196 255.255.255.192 34.61.47.193 34.60.37.3-34.60.37.254 34.60.37.1
OMCI管理模式型ONT配置
ONT上网业务数据规划
OLT PON端口 0/8/0
ONT ID 0
ONT 序列号 48575443D659FD40
外层 VLAN ID 2012
内层VLAN ID35
用户ETH端口 1
用户VLAN 35
DBA带宽类型 Type 2
流量模板编号 10
业务上行口 0/9/0
DBA 模板编号 30
ONT线路模板编号 40
ONT业务模板编号 50
T-CONT 编号 2
GEM Port 索引 0
带宽值 4096kbps
流量模板 保证4096 kbps,最大8192 kbps
OMCI 管理模式型 ONT 上网业务配置流程
OLT侧操作
配置流量模板(可选)
添加 ONT(ONT侧配置全部由OLT下发完成)
配置 DBA 模板
配置 ONT 线路模板
配置 ONT 业务模板
添加ONT并绑定相关模板
配置 ONT 端口缺省 VLAN(可选)
配置 VLAN 及 VLAN 属性
配置 VLAN 上行口
配置业务虚端口
配置流量模板(可选) cir 保证速率(平均速率), pir 峰值速率 priority (user-cos )优先级拷贝用户侧速率 ,没有则为 5 , 使用报文自带的来做队列
huawei(config)#traffic table ip index 10 cir 4096 pir 8096 priority user-cos 5 priority-policy Tag-In-Package
配置ONT模板类型示例
·增加一个DBA模板,编号为30 保证速率 4M
huawei(config)# dba-profile add profile-id 30 type2 assure 4096
·增加一个线路模板,编号为40,配置模板参数
huawei(config)#ont-lineprofile gpon profile-id 40
huawei(config-gpon-lineprofile-40)#tcont 2 dba-profile-id 30
huawei(config-gpon-lineprofile-40)#gem add 0 eth tcont 2
huawei(config-gpon-lineprofile-40)#gem mapping 0 0 vlan 35
huawei(config-gpon-lineprofile-40)#commit
·增加一个业务模板,编号为 50 ,配置模板参数 配置ONT 4 个LAN 口, 2 个电话口
huawei(config)#ont-srvprofile gpon profile-id 50
huawei(config-gpon-srvprofile-50)#ont-port eth 4 pots 2
huawei(config-gpon-srvprofile-50)#port vlan eth 1 35
huawei(config-gpon-srvprofile-50)#commit
OMCI管理模式ONT添加及端口缺省VLAN配置
离线预增加ONT
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/8)#ont add 0 0 sn-auth 48575443D659FD40 omci ont-lineprofile-id 40 ont-srvprofile-id 50
·手动确认ONT
huawei(config-if-gpon-0/8)#port 0 ont-auto-find enable
huawei(config-if-gpon-0/8)#ont confirm 0 ontid 0 sn-auth 48575443D659FD40omci ontl-ineprofile-id 40 ont-srvprofile-id 50
·指定 ONT 端口 VLAN
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/8)#ont port native-vlan 0 0 eth 1 vlan 35
配置VLAN及加入上行口-单层VLAN场景
·业务 VLAN 类型为 Smart ,属性为 Common (默认属性, 可不配)
huawei(config)#vlan 35 smart
huawei(config)#vlan attrib 35 common
·允许上行口通过该业务VLAN
huawei(config)#port vlan 35 0/9 0
添加该VLAN的GPON业务虚端口
huawei(config)#service-port vlan 35 gpon 0/8/0 ont 0 gemport 0 multi-service user-vlan 35 rx-cttr 10 tx-cttr 10
注:业务虚端口中的上下行流量模板优先级可以不相同。
配置VLAN及加入上行口-双层QinQ场景
·增加业务VLAN,设置其类型为Smart,属性为QinQ
huawei(config)#vlan 2012 smart
huawei(config)#vlan attrib 2012 q-in-q
·允许上行口通过该业务VLAN
huawei(config)#port vlan 2012 0/9 0
添加该VLAN的GPON业务虚端口
huawei(config)#service-port vlan 2012 gpon 0/8/0 ont 0 gemport 0 multi-service user-vlan 35 rx-cttr 10 tx-cttr 10
注:业务虚端口中的上下行流量模板优先级可以不相同。
摄像头接入业务数据规划
流量模板: traffic_table_videomonitor 不限速 优先级:5
ONU线路模板: pol_line_all GEM port ID: 16
上行端口: 0/9/0
PON端口:0/8/0
ONU ID: 0
单层 VLAN
SVLAN ID: 200
CVLAN ID: 200
VLAN类型: smart
VLAN属性: common
流量模板创建及配置 Gem Port 与 VLAN 映射
(可选)创建流量模板
创建视频监控业务通道流量模板,模板名称为 traffic_table_videomonitor,不限速,优先级为 5
MA5800(config)#traffic table ip name traffic_table_videomonitor cir off priority 5 priority-policy tag-In-package
·配置 Gem port 与 VLAN 的映射关系
。在ONT线路模板中,将VLAN 200的业务流映射到索引 16 的 GEM port
huawei(config)#ont-lineprofile gpon profile-name pol_line_all
huawei(config-gpon-lineprofile-1)#gem mapping 16 1 vlan 200
huawei(config-gpon-lineprofile-1)#commit
huawei(config-gpon-lineprofile-1)#quit
配置 ETH 端口 VLAN 与 ONT 端口的 Native VLAN
·在ONT业务模板中,将 ONU 连接摄像头的 1 号 ETH 端口加入 VLAN 200 中。
huawei(config)#ont-srvprofile gpon profile-name pol_ser
huawei(config-gpon-srvprofile-1)#port vlan eth 1 200
huawei(config-gpon-srvprofile-1)#commit
huawei(config-gpon-srvprofile-1)#quit
·配置ONT端口的Native VLAN
。ONT 上 ID 为 0 , ETH 端口为 1, Native VLAN ID 为 200 。
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/1)#ont port native-vlan 0 0 eth 1 vlan 200
huawei(config-if-gpon-0/1)#quit
配置VLAN并配置上行口
·创建业务VLAN 200
huawei(congig)#vlan 200 smart
·将上行端口0/9/0加入到VLAN 200 中
huawei(config)#port vlan 200 0/9 0
·添加业务虚端口
。业务VLAN为 200,GEM Port ID为 16,用户侧VLAN为 200,使用名称为 traffic_table_videomonitor 的流量模板
huawei(config)#service-port vlan 200 gpon 0/8/0 ont 0 gemport 16 multi-service user-vlan 200 tag-transform translate inbound traffic-table name traffic_table_videomonitor outbound traffic-table name traffic_table_videomonitor
使能ONT ETH端口的PoE功能
·(可选)使能ONT ETH端口的PoE功能
ONU 上 ID 为 0 ,ETH 端口为 1,使能ETH端口的PoE功能,配置最大供电等级为 class3 。
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/1)#ont port poe 0 0 eth 1 enable max-power-class class3
huawei(config-if-gpon-0/1)#quit
注:此操作仅适用于ONT的ETH端口支持PoE功能,且ETH端口通过PoE方式给摄像头供电的情况,不支持PoE特性,不支持的设备无法实现PoE功能。
Wi-Fi接入业务数据规划
流量模板
Wi-Fi业务通道流量模板:traffic_table_wifi 不限速 优先级:0
ONU线路模板:wuxian-wifi GEM port ID: 18
OLT上行端口:0/9/0
PON接入端口:0/8/0
ONU ID: 0
单层VLAN
SVLAN ID: 1001
CVLAN ID: 1001
VLAN类型:smart
VLAN属性:common
注:如果Wi-Fi业务VLAN复用上网业务VLAN,则Wi-Fi业务可以复用上网业务的数据规划,包括VLAN、Gem port。
Wi-Fi接入业务配置流程
OLT侧配置
添加ONT
配置流量模板
配置 Gem port 与 VLAN 的映射关系
配置 VLAN 及 VLAN 属性
配置 VLAN 上行口
配置业务虚端口
ONT侧配置
登录 Web 配置页面
配置 Wi-Fi 参数
配置三层路由 WAN 接口参数
检查WAN口连接状态
流量模板创建及配置Gem port与VLAN映射
创建流量模板
创建Wi-Fi业务通道流量模板,模板名称为traffic_table_wifi,不限速,优先级为0。
huawei(config)#traffic table ip name traffic_table_wifi cir off priority 0 priority-policy local-setting
配置Gem port与VLAN的映射关系
在ONT线路模板中,将用户侧VLAN 1001的业务流映射到索引18的GEM port。
huawei(config)#ont-lineprofile gpon profile-name wuxian-wifi
huawei(config-gpon-lineprofile-1)#gem mapping 18 1 vlan 1001
huawei(config-gpon-lineprofile-1)#commit
huawei(config-gpon-lineprofile-1)#quit
配置VLAN与VLAN属性并配置上行口
创建业务VLAN 1001与属性配置
huawei(congig)#vlan 1001 smart
huawei(config)#vlan attrib 1001 common
·将上行端口0/9/0加入到VLAN 1001中
huawei(config)#port vlan 1001 0/9 0
·添加业务虚端口
。业务VLAN为1001,GEM PortID为18,用户侧VLAN为1001,使用名称为traffic_table_wifi的流量模板。
huawei(config)#service-port vlan 1001 gpon 0/8/0 ont 0 gemport 18 multi-service user-vlan 1001 tag-transform translate inbound traffic-table name traffic_table_wifi outbound traffic-table name traffic_table_wifi
ONT侧配置(1)
·登录Web配置页面:
。设置PC网卡的IP地址,使其与ONT的本地维护IP地址在同一网段;
。打开浏览器,输入ONT的本地维护IP地址(推荐使用安全性更高的https方式登录)。在登录窗口中输入管理员的用户名和密码。密码验证通过后,即可访问Web配置页面。
·配置Wi-Fi参数:
。选择“无线网络”页签,在左侧导航树中选择“无线网络基本参数配置”。在右侧信息栏页面中,勾选“开启无线网络”单选框,在弹出的窗口中设置无线网络参数,包括SSID、认证模式和加密模式等。
ONT侧配置(3)
配置三层路由WAN接口参数:
。选择“WAN”页签,在左侧导航树中选择“WAN配置”。在右侧信息栏页面中,单击“新建”,在弹出的窗口中设置“WAN类型”为“路由WAN"。
ONT侧配置(4)
·检查ONT连接状态:
。选择“状态”页签,在左侧导航树中选择“WAN信息”。在右侧信息栏页面中,可以查看WAN接口的状态、获取IP方式、IP地址和子网掩码等信息。
AP接入业务数据规划
流量模板:traffic_table_ap 保证4096 kbps,最大8192 kbps
ONT线路模板:pol_line_ap GEM port ID: 15
上行端口:0/9/0
PON端口:0/8/0
ONU ID: 0
单层VLAN
SVLAN ID: 400
CVLAN ID: 400
VLAN类型:smart
VLAN属性:common
注:如果AP规划了管理VLAN,请参考下面的配置步骤透传管理VLAN。
流量模板创建及配置Gem port与VLAN映射
·(可选)创建流量模板
。创建AP业务通道流量模板,模板名称为traffic_table_ap,保证4096kbps,最大8192 kbps。
huawei(config)#traffic table ip name traffic_table_ap cir 4096 pir 8192 priority user-cos 5 priority-policy local-Setting
·配置Gem port与VLAN的映射关系
·在ONT线路模板中,将用户侧VLAN400的业务流映射到索引15的GEM port。
huawei(config)#ont-lineprofile gpon profile-name pol_line_ap
huawei(config-gpon-lineprofile-1)#gem mapping 15 1 vlan 400
huawei(config-gpon-lineprofile-1)#commit
huawei(config-gpon-lineprofile-1)#quit
配置ETH端口VLAN与使能端口POE功能
·在ONT业务模板中,将ONT连接AP的1号ETH端口加入VLAN400中。
huawei(config)#ont-srvprofile gpon profile-name pol_ser
huawei(config-gpon-srvprofile-1)#port vlan eth 1 400
huawei(config-gpon-srvprofile-1)#commit
huawei(config-gpon-srvprofile-1)#quit
(可选)使能ONT ETH端口的PoE功能
ONU上ID为1,ETH端口为1,使能ETH端口的PoE功能,配置最大供电等级为class3。
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/1)#ont port poe 0 0 eth 1 enable max-power-class class3
huawei(config-if-gpon-0/1)#quit
注:此操作仅适用于ONT的ETH端口支持PoE功能,且ETH端口通过PoE方式给AP供电的情况,不支持PoE特性,不支持的设备无法实现PoE功能。
配置VLAN并配置上行口
创建业务VLAN 400
huawei(congig)#vlan 400 smart
将上行端口0/9/0加入到VLAN 400 中
huawei(config)#portvlan 400 0/9 0
添加业务虚端口
业务VLAN为400,GEM Port ID为15,用户侧VLAN为400,使用名称为traffic_table_ap的流量模板。
huawei(config)#service-port vlan 400 gpon 0/8/0 ont 0 gemport 15 multi-service user-vlan 400 tag-transform translate inbound traffic-table name traffic_table_ap outbound traffic-table name traffic_table_ap
BTV业务数据规划
流量模板:traffic_table_iptv 802.1p优先级:3 CIR: off(不限速)
ONT线路模板:pol_line_all
GEM Port ID: 17
上行端口:0/9/0
PON端口:0/8/0
ONU ID: 0
单层VLAN
SVLAN ID: 1000
CVLAN ID: 1000
VLAN类型:smart
VLAN属性:common
组播VLAN:1000
组播协议:IGMP Proxy
组播版本:IGMPv2
组播节目:动态获取
流量模板创建及配置Gem port与VLAN映射
(可选)创建流量模板
创建btv业务通道流量模板,模板名称为traffic_table_iptv,不限速,优先级为3。
huawei(config)#traffic table ip name traffic_table_iptv cir off priority 3 priority-policy local-setting
配置Gem port与VLAN的映射关系
在ONT线路模板中,将用户侧VLAN1000的业务流映射到索引17的GEMport。
huawei(config)#ont-lineprofile gpon profile-name pol_line_all
huawei(config-gpon-lineprofile-1)#gem mapping 17 1 vlan 1000
huawei(config-gpon-lineprofile-1)#commit
huawei(config-gpon-lineprofile-1)#quit
配置ETH端口VLAN
·ONT通过2号ETH端口接入STB,将2号ETH端口加入VLAN 1000
huawei(config)#ont-srvprofile gpon profile-name pol_ser
huawei(config-gpon-srvprofile-1)#port vlan eth 2 1000
huawei(config-gpon-srvprofile-1)#commit
huawei(config-gpon-srvprofile-1)#quit
注:STB即数字电视接收机,也需同步调测,调测流程依据各设备厂家提供的调测指导书。
配置VLAN并配置上行口
创建业务VLAN 1000
huawei(congig)#vlan 1000 smart
将上行端口0/9/0加入到VLAN 1000 中
huawei(config)#port vlan 1000 0/9 0
添加业务虚端口
业务VLAN为1000,GEM Port ID为17,用户侧VLAN为1000,使用名称为traffic_table_iptv的流量模板。
huawei(config)#service-port 1 vlan 1000 gpon 0/8/0 ont 0 gemport 17 multi-service user-vlan 1000 tag-transform translate inbound traffic-table name traffic_table_iptv outbound traffic-table name traffic_table_iptv
配置组播业务(1)
配置ONT的组播转发模式为不带VLAN tag
huawei(config)#ont-srvprofile gpon profile-name pol_ser
huawei(config-gpon-srvprofile-1)#multicast-forward untag
huawei(config-gpon-srvprofile-1)#commit
huawei(config-gpon-srvprofile-1)#quit
创建组播VLAN并配置IGMP版本
设置组播VLAN 1000的IGMP版本为IGMP v2
huawei(config)#multicast-vlan 1000
huawei(config-mvlan1000)#igmp version v2 y
配置组播业务(2)
配置节目库
配置组播节目为动态获取方式
huawei(config-mvlan1000)#igmp mode off y
huawei(config-mvlan1000)#igmp match mode disable
(可选)配置动态节目的地址范围
配置动态节目的地址范围为224.1.1.1-224.1.1.100
huawei(config-mvlan1000)#igmp match group ip 224.1.1.1 to-ip 224.1.1.100
注:修改节目匹配模式需要在IGMP模式为off时配置。
配置组播业务(3)
配置IGMP模式
使用IGMP proxy模式
huawei(config-mvlan1000)#igmp mode proxy y
配置IGMP上行端口
IGMP上行端口号0/9/0,组播上行端口模式为default,协议报文向节目所在VLAN内的所有组播上行端口发送。
huawei(config-mvlan1000)#igmp uplink-port 0/9/0
huawei(config-mvlan1000)#btv
huawei(config-btv)#igmp uplink-port-mode default y
配置组播业务(4)
配置组播用户
将索引号为1的业务流添加为组播用户
huawei(config-btv)#igmp user add service-port 1
huawei(config-btv)#multicast-vlan 1000
huawei(config-mvlan1000)#igmp multicast-vlan member service-port 1
huawei(config-mvlan1000)#quit
注:当成功将某个端口上的组播用户设置为组播VLAN成员时即执行igmp multicast-vlan member service-port
1 命令后,系统提示“Add 1 multicast VLAN member(s) successfully"。
SNMP管理模式型ONU配置
上网业务数据规划
参数类型
OLT PON口 0/8/0
ONU_ID 0
ONU 序列号 4857544323BE233B
外层 VLAN ID 2012
内层VLAN ID 35
用户 FE 端口 ONU 0/1/1
用户VLAN 35
DBA带宽类型 Type 2
流量模板编号 10
DBA 模板编号 30
ONU线路模板编号 40
T-CONT (网管) 0
T-CONT(业务_ 2
GEM (网管) 0
GEM(业务) 1
带宽值 4096
流量模板带宽 大于4096 kbps,小于 8192 kbps
SNMP管理模式型ONU上网业务
OLT侧操作
配置各类模板
OLT上添加ONU
配置业务VLAN及VLAN属性
配置业务VLAN上行口
配置业务虚端口
配置ONU的带内管理
Telnet登录ONU
ONU侧操作
ONU创建业务VLAN
ONU配置业务VLAN上行口
ONU设置速率模板
ONU配置业务虚端口
Save保存
配置各类模板(OLT侧)
需要增加的模板有:
流量模板
DBA模板
ONU线路模板:需要同时配置带内网管参数及业务流参数。
注:各种模板的添加方法请参考OMCI管理模式ONU上网业务配置。SNMP管理模式ONU支持SNMP协议,其无需配置ONT业务模板,
配置GPON线路模板(OLT侧)
配置举例:
进入GPON 线路模板配置模式,编号为40,配置板参数。
huawei(config)# ont-lineprofile gpon profile-id 40
huawei(config-gpon-lineprofile-40)#tcont 0 dba-profile-id 30 //带内网管
huawei(config-gpon-lineprofile-40)#tcont 2 dba-profile-id 30 //业务
huawei(config-gpon-lineprofile-40)#gem add 0 eth tcont 0 //带内网管
huawei(config-gpon-lineprofile-40)#gem add 1 eth tcont 2 //业务
huawei(config-gpon-lineprofile-40)#mapping-mode vlan
huawei(config-gpon-lineprofile-40)#gem mapping 0 0 vlan 4000 //带内网管
huawei(config-gpon-lineprofile-40)#gem mapping 1 1 vlan 35 //业务
huawei(config-gpon-lineprofile-40)#commit
手动增加或者确认ONU(OLT侧)
手动增加ONU
huawei(config)#interface gpon 0/8
huawei(config-if-gpon-0/8)#ont add 0 0 sn-auth 4857544323BE233B snmp ont-lineprofile-id 40
自动发现后确认ONU
huawei(config-if-gpon-0/8)#port 0 ont-auto-find enable
huawei(config-if-gpon-0/8)#ont confirm 0 ontid 0 sn-auth 4857544323BE2338 snmp ont-lineprofile-id 40
配置业务VLAN及加入端口(OLT侧)
增加业务VLAN,设置其类型为Smart,属性为QinQ。
huawei(config)#vlan 2012 smart
huawei(config)#vlan attrib 2012 q-in-g
允许上行口通过该业务VLAN
huawei(config)#port vlan 2012 0/9 0
添加该VLAN的GPON业务虚端口
huawei(config)#service-port vlan 2012 gpon 0/8/0 ont 0 gemport 1 multi-service user-vlan 35 rx-cttr 10 tx-cttr 10
配置网管VLAN及加入端口(OLT侧)
增加业务VLAN,设置其类型为Smart,属性默认为Common。
huawei(config)#vlan 4000 smart
允许上行口通过该业务VLAN
huawei(config)#port vlan 4000 0/9 0
配置OLT的网管地址
huawei(config)#interface vlanif 4000
huawei(config-if-vlanif4000)#ip address 172.16.200.1 160
添加该VLAN的GPON业务虚端口(带内网管通道)
huawei(config)#service-port vlan 4000 gpon 0/8/0 ont 0 gemport 0 multi-service user-vlan 4000 rx-cttr 10 tx-cttr 10
配置ONU网管参数(OLT侧)
配置ONU的管理地址
huawei(config-if-gpon-0/8)#ont ipconfig 0 1 static ip-address 172.16.200.2 mask 255.255.0.0 gateway 172.16.0.1 vlan 4000
Telnet登录ONU
huawei(config)#ping 172.16.200.2
huawei(config)#telnet 172.16.200.2
>>User name:root
>>User password:mduadmin
ONU用户VLAN与流量模板配置(ONU侧)
创建用户VLAN
EA5821(config)#vlan 35
配置用户VLAN上行口
EA5821(config)#port vlan 35 0/0 1
配置ONU的流量模板
EA5821(config)#traffic table ip index 10 cir 4096 pir 8192 cbs 2048 pbs 4096 priority user-cos 50 priority-policy Tag-In-Package
注:可以使用如下命令查询ONU系统内存在的流量模板信息:
EA5821(config)#display traffic table ip from-index 0
ONU业务虚端口配置(ONU侧)
配置业务虚端口//添加ONU上对应的FE1号端口业务流,指定用户VLAN,并且限速。
EA5821(config)#service-port vlan 35 eth 0/1/1 user-vlan untagged rx-cttr 10 tx-cttr 10
查询ONT上的业务配置
huawei(config-if-gpon-0/15)#display ont info 0 0
查询ONU上的业务配置
EA5821(config)#display vlan all //查询所有VLAN
EA5821(config)#display vlan 31 //查询特定VLAN
EA5821(config)#display service-port all //查询业务虚端口
查询OLT上网业务
查询业务VLAN
huawei(config)#display vlan 2012
huawei(config)#display service-port vlan 2012
查询上网业务流量
查询ONT流量
huawei(config-if-gpon-0/8)#display ont traffic 0 2
查询ONU的PON端口流量
EA5821(config-if-epu-0/0)#display port traffic 1
查询ONU的FE端口流量
EA5821(config-if-epf-0/1)#display port traffic 1
查询上网业务相关MAC地址
查询对应VLAN下的MAC地址
huawei(config)#display mac-address vlan 2012
查询用户 MAC地址
huawei(config)#display mac-address board 0/8
EA5821(config)#display mac-address port 0/1/1
删除故障ONT
删除流程
查询 ONT 的 Service-port ID
删除 ONT 业务承载 Service-port
OLT上删除ONT
huawei(config)#display service-port {all |index} //查询ONT的Service-port ID
huawei(config)#undo service-port {all |index} //删除ONTService-port(业务)
huawei(config-if-gpon-0/8)#ont delete portid {all |ontid}//删除ONT
删除故障ONU
删除流程
查询ONU的Service-port ID
删除ONU业务承载Service-port
删除ONU管理承载Service-port
删除ONU的带内管理
OLT上删除ONU
删除命令
huawei(config)#display service-port {all |index} //查询ONU的Service-port ID
huawei(config)#undo service-port {all |index} //删除ONUService-port(业务&管理)
huawei(config-if-gpon-0/8)#undo ont ipconfig port ontid //删除ONU带内管理
huawei(config-if-gpon-0/8)#ont delete portid {all | ontid}//删除ONU
在ONU上关闭 物理 端口
MA5821(config)#display service-port all
MA5821(config)#interface eth 0/1
MA5821(config-if-eth-0/1)#display port state all
MA5821(config-if-eth-0/1)#shutdown 14
MA5821(config-if-eth-0/1)#shutdown 16
MA5821(config-if-eth-0/1)#shutdown 10
启动用端口物理 端口
MA5821(config-if-eth-0/1)#undo shutdown 14
MA5821(config-if-eth-0/1)#undo shutdown 16
MA5821(config-if-eth-0/1)#undo shutdown 10
查看ONU 上下行带宽
XXM_MA5800(config-if-gpon-0/13)#display ont traffic 0 3
05-20
02-23
1093

03-19