非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。

1.1 概述

1.1.1 成员组成

1.1.2 概念介绍

1.2 软硬件使用限制

2 GPON常见业务典型配置举例

2.1 组网图

2.2 需求分析

2.2.2 典型需求

2.2.3 组网配置方案

2.3 配置流程说明

2.4 配置ONU模板

2.4.1 配置规划

2.4.2 配置步骤

2.5 配置ONU注册上线

2.5.1 配置规划

2.5.2 配置步骤

2.6 TR069零配置上线(EPON)

2.6.1 介绍

2.6.2 组网需求

2.6.3 组网图

2.6.4 配置ONU注册上线

2.6.5 配置EPON的DHCP服务以及地址池

2.6.6 配置文件

2.6.7 注册成功界面

2.7 TR069零配置上线 (GPON)

2.7.1 介绍

2.7.2 组网需求

2.7.3 组网图

2.7.4 配置ONU注册上线

2.7.5 配置ONU业务模板

2.7.6 配置三层交换机

2.7.7 注册成功界面

2.8 配置数据/上网业务

2.8.1 配置规划

2.8.2 配置步骤

2.9 配置AP接入业务

2.9.1 配置规划

2.9.2 配置步骤

2.10 配置 VoIP 业务(基于 SIP 协议)

2.10.1 配置规划

2.10.2 配置步骤

2.11 摄像头接入业务

2.11.1 配置规划

2.11.2 配置步骤

2.12 批量配置创建

2.12.1 vlan批量创建

2.12.2 端口添加vlan批量创建

2.12.3 vlan-translate批量创建

3 校园网典型配置举例

3.1 组网需求

3.2 配置步骤

3.3 配置注意事项

3.4 使用P3100作为GPON OLT的配置步骤

3.4.1 端口聚合配置

3.4.2 业务模板配置

3.4.3 VLAN配置

3.4.4 UNI端口VLAN模式配置

3.5 使用P3500作为GPON OLT的配置步骤

3.5.1 业务规划

3.5.2 端口聚合配置

3.5.3 业务模板配置

3.5.4 UNI端口VLAN模式配置

3.5.5 全局VLAN配置

3.5.6 主备冗余组网

3.6 使用P3600作为GPON OLT的配置步骤

3.6.1 业务规划

3.6.2 端口聚合配置

3.6.3 业务模板配置

3.6.4 UNI端口VLAN模式配置

3.6.5 全局VLAN配置

4 相关资料

1.1  概述

GPON(Gigabit PON 千兆无光源网络)是PON技术的一种,主要基于ITU-T G 984系列标准,具有如下优势:

· 最高可以为GPON ONU提供上行1.25Gbps,下行2.5Gbps的带宽;XGPON ONU提供上行2.5Gbps,下行10Gbps的带宽。XGSPON ONU提供上行10Gbps,下行10Gbps的带宽。

· 长距离接入,可支持20km的距离传输。

· 支持宽带上网,IPTV,VoIP(Voice Over internet Protocol,网络电话)等业务同时接入。

· 无源ODN(Optical Distribution Network,光分配网络)中无需维护有源设备,光纤和无源分光器不受电磁干扰和雷电影响,故障点少。

· 点到多点(P2MP)的网络结构支持弹性扩容。

1.1.1  成员组成

1. OLT(Optical Line Terminal,光线路终端)

PON 系统的核心设备,一般放置在中心机房,用于统一管理 ONU,并将接入业务汇聚和传递到 IP 网。

2. POS(Passive Optical Splitter,无源分光器)

用来向 ONU 分发 OLT 的下行数据,并向 OLT汇聚各 ONU 的上行数据。POS 的分光比可达到 1:128,即每个 OLT 光模块接口最多可连接 128 台 ONU。

3. ODN(Optical Distribution Network,光分配网络)

由光纤和一到多个 POS 等无源光器件组成,在 OLT 和 ONU 间提供光信号传输通道。

4. ONU(Optical Network Unit,光网络单元)

PON 系统的用户端设备,用于连接用户 PC、机顶盒、交换机等,通常放置在用户家中、楼道或道路两侧,负责响应 OLT 发出的管理命令,并将用户数据转发到 OLT。

1.1.2  概念介绍

1. 带内和带外管理

通过带内管理,管理员可以远程管理OLT系统。带内管理可以通过OLT的上行端口操作。带外管理可以通过OLT管理端口在本地进行操作。为了网络安全,该端口处于隔离区(Demilitarized Zone,DMZ)。

2. ONU 注册

每个GPON端口(以下称为PON端口)可以连接最多64个ONU,GPON系统支持多种认证模式(snonly认证,snandpassword认证,disable认证,passwordonly认证,loidonly认证,loidandcheckcode认证)。

OLT为认证通过的ONU分配相应的ONU ID。

1.2  软硬件使用限制

表1-1 硬件支持列表

本章节为P3500和P3600设备的命令行配置资料。不同产品及不同版本的命令行配置及设备的显示信息可能有所差异,请以设备的实际情况为准。

ONU同时只能绑定一个业务模板,如果ONU涉及业务比较复杂,请先做好业务规划,在创建gpon profile时分配不同vport进行业务区分。2.4-2.9章节业务都是独立区分的业务模板,涉及交叉业务需要配置在一个业务模板中,应用给ONU。

2.1  组网图

图2-1 GPON组网拓扑示意图

ONU部署方式有:

(1)     光纤到桌面,光纤到天花板,光纤到墙壁面板,光纤到墙壁信息箱。

(2)     ONU采用以太端口接入用户终端,提供上网/数据、语音、无线、监控等业务。

(3)     对于视频监控和无线WiFi覆盖,ONU可以通过PoE给摄像头和AP供电。

2.2.2  典型需求

某园区网需要实现以下需求:

· 整体网络采用无源光网络组网架构。

· 不同的网络通过IP&VLAN划分。

· ONU挂接AP,提供无线AP接入功能。

· ONU挂接模拟电话终端,提供VoIP(Voice over IP,IP网络电话)功能。

· ONU挂接摄像头,提供摄像头接入功能。

2.2.3  组网配置方案

为满足以上典型需求,以下面具体的组网配置方案为例进行说明:

· 根据部署的终端个数或网口个数确定ONU的数量,ONU部署在楼道中或房间内。

· OLT带宽规划。

· 使用802.1Q VLAN来划分二层网络,VLAN规划推荐基于OLT口分配。

· 数据业务模型推荐配置为南北向流量模型。

· GPON网络下属的AP可通过AC(Access Controller,接入控制器)进行集中管理。

· IP地址在BRAS上获取,认证由BRAS和AAA服务器交互,其他核心交换机不感知。

2.3  配置流程说明

图2-2 流程图

2.4  配置ONU 模板

2.4.1  配置规划

GPON OLT缺省存在HGU模板,MDU/SFU模板(请参见配置指导中关于flow配置中uni-type参数的说明)按需配置,建议配置ONU接口的上行带宽为最大,使得PON网络充分共享上行带宽。Flow模板用于描述上行流属性,而Tcont模板描述与DBA 的绑定。

表2-1 Flow模板配置表格

telnet@GX3116H> enable

telnet@GX3116H#configure management

telnet@GX3116H(config-mgmt)#system hostname OLT

# 配置ONU流模板。该流模板的ID为2,index为1,名称为newprof_flow_2,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf,代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 101表示匹配的是VLAN tag为101的报文,其中前一个101表示起始VLAN,后面的101表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xff。Vport 1指定流量走虚拟口1。

telnet@OLT#configure terminal

telnet@OLT(config-t)#gpon profile flow id 2 1 name newprof_flow_2 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 101 101 pri-bitmap 0xf vport 1

# 配置ONU Tcont模板的dba的ID为2,名称为newprof_dba_2。 dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160bit/s。

telnet@OLT(config-t)#gpon profile dba id 2 name newprof_dba_2 type4 max 1244160

# tcont服务模板中绑定给的dba模板是2

telnet@OLT(config-t)#gpon profile tcont-svc id 2 name newprof_tcontsvc_2 dba-id 2

# 配置vport服务模板,就是gemport服务模板,配置的ID为2,名称为newprof_vportsvc_2。us-pri配置0代表上行流所在的队列为0队列,usratectrl-id和dsratectrl-id是对上下行流量的限速,0代表不限速。

telnet@OLT(config-t)#gpon profile vportsvc id 2 name newprof_vportsvc_2 us-pri 0 usratectrl-id 0 dsratectrl-id 0

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为2,虚拟口为1,名称为newprof_tcontbind_2。vportsvc-id、tcont-id、tcontsvc-id均为2。

telnet@OLT(config-t)#gpon profile tcont-bind id 2 v-port 1 name newprof_tcontbind_2 vportsvc-id 2 tcont-id 2 tcontsvc-id 2

2. P3500设备

# 配置OLT设备名称。

P3500#system name OLT

# 进入OLT单板配置视图。

OLT#slot 1

GPFA-1-1> enable

GPFA-1-1#configure terminal

# 配置ONU流模板。该流模板的ID为2,index为1,名称为newprof_flow_2,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf,代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 101表示匹配VLAN tag为101的报文,其中前一个101表示起始VLAN,后面的101表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xf。Vport 1指定流量走虚拟口1。

GPFA-1-1(config-t)#gpon profile flow id 2 1 name newprof_flow_2 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 101 101 pri-bitmap 0xf vport 1

# 配置ONU Tcont模板的dba的ID为2,名称为newprof_dba_2。 dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160bit/s。

GPFA-1-1(config-t)#gpon profile dba id 2 name newprof_dba_2 type4 max 1244160

# tcont服务模板中绑定给的dba模板是2。

GPFA-1-1(config-t)#gpon profile tcont-svc id 2 name newprof_tcontsvc_2 dba-id 2

# 配置vport服务模板,就是gemport服务模板,配置的ID为2,名称为newprof_vportsvc_2。us-pri配置0代表上行流所在的队列为0队列,usratectrl-id和dsratectrl-id是对上下行流量的限速,0代表不限速。

GPFA-1-1(config-t)#gpon profile vportsvc id 2 name newprof_vportsvc_2 us-pri 0 usratectrl-id 0 dsratectrl-id 0

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为2,虚拟口为1,名称为newprof_tcontbind_2。vportsvc-id、tcont-id、tcontsvc-id均为2。

GPFA-1-1(config-t)#gpon profile tcont-bind id 2 v-port 1 name newprof_tcontbind_2 vportsvc-id 2 tcont-id 2 tcontsvc-id 2

3. P3600 设备

(1)     OLT配置步骤

# 进入OLT单板配置视图。

P3600#Slot 1

P3600(Slot-1)#

# 配置ONU流模板。该流模板的ID为2,index为1,名称为newprof_flow_2,uni-type 配置onu的类型为ethernet-uni,对应了sfu。 uni-bitmap 代表允许通过的 uni 口,这里配置了 0xf ,代表 4 ONU 。upmap-type匹配报文的类型为vlanId,配置了vlanId 101表示匹配VLAN tag为101的报文,其中前一个101表示起始VLAN,后面的101表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xff。Vport 1指定流量走虚拟口1。

P3600(Slot-1)#gpon profile flow id 2 1 name newprof_flow_2 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 101 101 pri-bitmap 0xff vport 1

# 配置ONU Tcont模板的dba的ID为2,名称为newprof_dba_2。 dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160bit/s。

P3600(Slot-1)#gpon profile dba id 2 name newprof_dba_2 type4 max 1244160

# tcont服务模板中绑定给的dba模板是2。

P3600(Slot-1)#gpon profile tcont-svc id 2 name newprof_tcontsvc_2 dba-id 2

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为2,虚拟口为1,名称为newprof_tcontbind_2。tcont-id为1,vportsvc-id、tcontsvc-id不需要配置,缺省会填充为1。

P3600(Slot-1)#gpon profile tcont-bind id 2 v-port 1 name newprof_tcontbind_2 tcont-id 1

2.5  配置ONU 注册上线

可以通过手工、批量、自动方式绑定ONU设备到ONU接口。

2.5.1  配置规划

这里使用自动绑定方式, ONU 设备接入后能够自动注册上线。

2.5.2  配置步骤

1. P3100设备

# 全局开启自动绑定ONU功能。

telnet@GX3116H> enable

telnet@OLT#configure terminal

telnet@OLT(config-t)#gpon ont-authentication disable

Info:Change auth mode will clean all onu config, are you sure to change mode? (y

telnet@OLT(config-t)#exit

2. P3500设备

# 进入OLT单板配置视图。

OLT#slot 1

GPFA-1-1> enable

GPFA-1-1#configure terminal

# 全局开启自动绑定ONU功能。

GPFA-1-1(config-t)#gpon ont-authentication disable

Info:Change auth mode will clean all onu config, are you sure to change mode? (y

GPFA-1-1(config-t)#exit

3. P3600设备

(1)     进入板卡配置命令模式。

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)# gpon profile flow id 5 1 name sfu uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 999 999 pri-bitmap 0xff vport 1

P3600(Slot-1)# gpon profile flow id 5 2 name sfu uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 1012 1012 pri-bitmap 0xff vport 2

P3600(Slot-1)# gpon profile flow id 5 3 name sfu uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 20 20 pri-bitmap 0xff vport 3

P3600(Slot-1)# gpon profile tcont-bind id 5 v-port 1 name newprof_tcontbind_1 tcont-id 1

P3600(Slot-1)# gpon profile tcont-bind id 5 v-port 2 name newprof_tcontbind_1 tcont-id 1

P3600(Slot-1)# gpon profile tcont-bind id 5 v-port 3 name newprof_tcontbind_1 tcont-id 1

(2)     可以按照现场需求配置各种 ONU 需要的模板类型,进入gpon profile命令模式。

P3600#configure

P3600(CONFIG)#gpon-profile

P3600(CONFIG/config-t-gpon-pro)#

(3)     进入ont-template命令模式。命令格式可以参考ONU命令, user-service命令可以参考VLAN转换命令。

P3600(CONFIG/config-t-gpon-pro)#ont-template 1

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#virtual-port 1 port unlock

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#virtual-port 2 port unlock

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#virtual-port 3 port unlock

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#service flow-profile 5 tcont-bind-profile 5 svt_type n_p

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#port-vlan 5 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#port-vlan 5 rule 1 untag add-vid inner-pri 0 inner-vid 999 inner-tpid mode4 ether-type 0

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#port-vlan 7 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#port-vlan 7 rule 1 untag add-vid inner-pri 0 inner-vid 20 inner-tpid mode4 ether-type 0

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#user-service virtual-port 1 svid 999 cvid 4095 new-svid 999 new-cvid 4095 cos copy

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#user-service virtual-port 2 svid 1012 cvid 4095 new-svid 1012 new-cvid 4095 cos copy

P3600(CONFIG/config-t-gpon-pro/ont-template-1)#user-service virtual-port 3 svid 20 cvid 4095 new-svid 20 new-cvid 4095 cos copy

P3600(CONFIG/config-t-gpon-pro/ont-template-1) brief-show configuration running

gpon-profile

ont-template 1

virtual-port 1 encrypt disable

virtual-port 2 encrypt disable

virtual-port 3 encrypt disable

service flow-profile 5 tcont-bind-profile 5 svc_type m_p

port-vlan 5 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

port-vlan 5 rule 1 untag add-vid inner-pri 0 inner-vid 999 inner-tpid mode0 ether-type 0

port-vlan 7 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

port-vlan 7 rule 1 untag add-vid inner-pri 0 inner-vid 20 inner-tpid mode0 ether-type 0

user-service virtual-port 1 svid 999 cvid 4095 new-svid 999 new-cvid 4095 cos copy

user-service virtual-port 2 svid 1012 cvid 4095 new-svid 1012 new-cvid 4095 cos copy

user-service virtual-port 3 svid 20 cvid 4095 new-svid 20 new-cvid 4095 cos copy

(4)     进入OLT配置模式配置开启自动注册功能。

P3600(Slot-1)# interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#

P3600(Slot-1/if-gpon-olt-1/1)# auto-register ont-template 1

(5)     进入OLT配置模式配置自动注册模型。

P3600(Slot-1)# interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#auto-register-model 1 ont-template 1 model-type equip-id    equipment  "EGT354"

(6)     开启自动注册功能。

P3600(Slot-1/if-gpon-olt-1/1)#auto-register ont-template 1

2.6  TR069 零配置上线(EPON)

2.6.1  介绍

TR069(也称为CPE WAN Management Protocol)是一种用于远程管理网络终端设备的协议。它提供了一种自动化的方式来配置、监控和维护CPE(Customer Premises Equipment,客户端设备)。通过TR069的零配置上线注册,网络运营商可以实现对大量CPE设备的自动化管理,提高网络维护效率和用户体验。

在TR069中,零配置上线注册是指当新的CPE设备接入网络时,它可以自动注册到远程管理服务器,无需手动配置。这个过程主要涉及以下几个步骤:

· 发现:CPE设备在接入网络后,会发送一个广播消息来寻找TR069自动配置服务器。TR069自动配置服务器会回复这个消息,告知CPE设备如何连接。

· 连接:CPE设备通过指定的URL和端口连接到TR069自动配置服务器。

· 认证:CPE设备使用预先配置好的认证信息(如用户名和密码)来向TR069服务器进行认证。如果认证成功,CPE设备就可以与服务器建立通信。

· 配置:一旦连接和认证成功,TR069自动配置服务器将向CPE设备发送配置指令,包括网络参数、固件升级、服务订阅等。CPE设备会根据这些指令来自动进行相应的配置。

· 监控和管理:一旦配置完成,CPE设备会定期向TR069自动配置服务器发送状态报告,包括性能统计、事件日志等。TR069服务器可以根据这些报告来监控和管理CPE设备。

CPE(Customer Premises Equipment,客户端设备)指的是放置在客户端本地的设备,通常用于接入互联网服务,如光纤、ADSL 等网络。CPE包括了各种各样的设备,如家庭路由器、网络交换机、光纤终端机、调制解调器等。

ACS(Auto Configuration Server,即自动配置服务器)是一种用于监控和管理CPE的服务器,可以远程管理和维护各种各样的CPE设备,如调制解调器、家庭路由器、网络交换机等等。ACS通过远程管理协议与CPE设备通信,从而实现对设备的配置、升级、故障排除等等功能。

2.6.2  组网需求

iMC Server作为ONU和OLT的管理平台、DHCP服务器都需部署到OLT,ONU通过分光器等器件连接到OLT的业务板卡。

2.6.3  组网图

图2-3 TR069零配置上线注册组网图

2.6.4  配置ONU 注册上线

1. 配置规划

EPON模式下有自动绑定和手动绑定两种模式,注册ONU上线。以下用S7500E设备作为演示。

2. 配置步骤

# 自动绑定

进入OLT进入ftth模式。

[OLT]ftth

[OLT-ftth]onu bind auto

# 手动绑定

进入OLT的接口,创建ONU接口,绑定ONU的MAC地址就完成了ONU手动绑定。

[OLT]int olt 6/0/8

[OLT-Onu6/0/8:4]bind onu-id 017c-7a3c-18a4

2.6.5  配置EPON 的DHCP服务以及地址池

1. 配置规划

零配置上线关键的是通过option 125或43提供TR069服务器的URL。端口号8888是安装TR069组件设置的端口号。默认的tag模式的VLAN46需要DHCP server给WAN提供IP地址。

2. 配置步骤

配置DHCP的地址池,为WAN连接分配与imc服务器相同网段的IP。

# 全局使能DHCP。

[H3C]dhcp enable

# 创建VLAN 46三层接口做DHCP server。

[H3C]interface Vlan-interface46

ip address 10.1.1.100 255.255.0.0

[H3C-Vlan-interface46]dhcp select server

# 8888端口号为imc-tr069组件安装时的http port。EGT904-H-TW适配option 125,ET908-H-8TW适配option 43。

[H3C]dhcp server ip-pool 1

[H3C-dhcp-pool-1]dhcp server ip-pool 1

gateway-list 10.1.1.100

network 10.1.0.0 mask 255.255.0.0

address range 10.1.1.2 10.1.1.40

option 125 ascii http://10.1.1.105:8888

option 43 ascii http://10.1.1.105:8888

# 查看由DHCP服务器分配的IP地址。

[H3C]display dhcp server ip-in-use

IP address       Client-identifier/    Lease expiration        Type          Hardware address

10.1.1.8         017c-7a3c-18a4-29      Jun  4 08:08:59 2013   Auto(C)

2.6.6  配置文件

OLT 侧配置

dhcp enable

dhcp server ip-pool 1

gateway-list 10.1.1.100

network 10.1.0.0 mask 255.255.0.0

address range 10.1.1.2 10.1.1.40

option 125 ascii http://10.1.1.105:8888

option 43 ascii http://10.1.1.105:8888

vlan 46

interface Vlan-interface46

ip address 10.1.1.100 255.255.0.0

onu bind auto

interface olt 6/0/8

port link-type hybrid

port hybrid vlan 46 tagged

port hybrid vlan 1 untagged

interface Onu6/0/8:4

bind onu-id 017c-7a3c-18a4

port link-type trunk

port trunk permit vlan all

2.6.7  注册成功界面

进入分支网点管理页面,点击CPE名称下列的CPE就获取到上线的ONU的信息,如下图所示。

图2-4 ONU已经成功注册IMC

进入ONU的web界面,状态中查看网络侧信息可看到WAN连接的信息。

图2-5 ONU web界面 WAN连接信息

进入ONU的web界面,进入高级配置查看inform上报

图2-6  ONU web界面上报成功界面

2.7  TR069 零配置上线(GPON)

2.7.1  介绍

TR069(也称为CPE WAN Management Protocol)是一种用于远程管理网络终端设备的协议。它提供了一种自动化的方式来配置、监控和维护CPE(Customer Premises Equipment,客户端设备)。通过TR069的零配置上线注册,网络运营商可以实现对大量CPE设备的自动化管理,提高网络维护效率和用户体验。

在TR069中,零配置上线注册是指当新的CPE设备接入网络时,它可以自动注册到远程管理服务器,无需手动配置。这个过程主要涉及以下几个步骤:

· 发现:CPE设备在接入网络后,会发送一个广播消息来寻找TR069自动配置服务器。TR069自动配置服务器会回复这个消息,告知CPE设备如何连接。

· 连接:CPE设备通过指定的URL和端口连接到TR069自动配置服务器。

· 认证:CPE设备使用预先配置好的认证信息(如用户名和密码)来向TR069服务器进行认证。如果认证成功,CPE设备就可以与服务器建立通信。

· 配置:一旦连接和认证成功,TR069自动配置服务器将向CPE设备发送配置指令,包括网络参数、固件升级、服务订阅等。CPE设备会根据这些指令来自动进行相应的配置。

· 监控和管理:一旦配置完成,CPE设备会定期向TR069自动配置服务器发送状态报告,包括性能统计、事件日志等。TR069服务器可以根据这些报告来监控和管理CPE设备。

CPE(Customer Premises Equipment,客户端设备)指的是放置在客户端本地的设备,通常用于接入互联网服务,如光纤、ADSL 等网络。CPE包括了各种各样的设备,如家庭路由器、网络交换机、光纤终端机、调制解调器等。

ACS(Auto Configuration Server,即自动配置服务器)是一种用于监控和管理CPE的服务器,可以远程管理和维护各种各样的CPE设备,如调制解调器、家庭路由器、网络交换机等等。ACS通过远程管理协议与CPE设备通信,从而实现对设备的配置、升级、故障排除等等功能。

2.7.2  组网 需求

1. 组网需求

iMC Server作为ONU和OLT的管理平台、三层交换机作为ONU的DHCP服务器都需部署到OLT的上层,连接OLT的上层接口板卡。

ONU通过分光器等器件连接到OLT的业务板卡。

2.7.3  组网图

图2-7 TR069零配置上线注册组网图

2.7.4  配置ONU 注册上线

1. 配置规划

GPON模式下ONU注册上线一般通过绑定SN的认证方式注册。

以下用P3608设备作为演示。

2. 配置步骤

P3608#slot 1

P3608#brief-show slot 1 ont-unbound

P3608(Slot-1)#interface gpon-olt 1/6

P3608(Slot-1/if-gpon-olt-1/6)#ont 2

P3608(Slot-1/if-gpon-olt-1/6/2)#sn H3CT00000034  type xgspon

P3608(Slot-1/if-gpon-olt-1/6/2)#brief-show slot 1 ont-info

ONT      TYPE      SN              Status   Find     Auth            Reason            Join

1/6/1    xgspon    GHTT87651234    ready    auto     snonly          none              manual

1/6/2    xgspon    H3CT00000034    ready    auto     snonly          none              manual

Total Ont Number    :2

Active Ont Number   :2

3. 配置文件

slot 1

brief-show slot 1 ont-unbound

interface gpon-olt 1/6

ont 2

sn H3CT00000034  type xgspon

2.7.5  配置ONU 业务模板

1. 配置规划

EGT904-H-TW设备初始一条默认的WAN连接为tag模式的带46的连接,所以必须保证VLAN 46在GPON中业务能够打通。

2. 配置步骤

3. VLAN 的相关配置

# 创建VLAN 46,作为二层虚接口。并将上联的xge1口规划为VLAN 46的成员端口,并配置相应的VLAN转换。

P3608(CONFIG)#l2

P3608(CONFIG/L2)#vlan

P3608(CONFIG/L2/VLAN)#vid 46 name tr069 mode bridge

P3608(CONFIG/L2/VLAN)#interface xge 1 vid 46 tag

P3608(CONFIG/L2/VLAN)#translate slot 1 port 6 ont 2 virtual-port 1 svid 46 new-svid 46

4. 业务的相关配置

# 要保证VLAN 46的二层业务通畅,需配置flow-profile以及tcont-profile,并应用ONU:

P3608(Slot-1)# gpon profile flow id 46 1 name tr069 uni-type veip uni-bitmap 0xf upmap-type vlanId 46 56 pri-bitmap 0xff vport 1

P3608(Slot-1)# gpon profile tcont-bind id 46 v-port 1 name tr069 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

P3608(Slot-1/if-gpon-olt-1/6/2)#virtual-port 1 encrypt disable

P3608(Slot-1/if-gpon-olt-1/6/2)#service flow-profile 46 tcont-bind-profile 46

# 查看ONU的配置情况。

P3608#brief-show slot 1 interface gpon-olt 1/6 ont 2

ont 2

description "ONT-2"

virtual-port 1 encrypt disable

service flow-profile 46 tcont-bind-profile 46 svc-type 1_mp

5. 配置文件

vid 46 name 46 mode bridge

interface xge 1 vid 46 tag

translate slot 1 port 6 ont 2 virtual-port 1 svid 46 new svid 46

gpon profile flow id 46 1 name tr069 uni-type veip uni-bitmap 0xf upmap-type vlanId 46 56 pri-bitmap 0xff vport 1

gpon profile tcont-bind id 46 v-port 1 name tr069 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

2.7.6  配置三层交换机

1. 配置规划

以S7500E作为上层的三层设备并做DHCP服务器,给ONU的WAN提供与imc服务器同样的IP地址,让ONU的那条WAN能够直接连通tr069服务器。

2. 配置步骤

以上面       所配置的上联口xge1口与EPON中的以太接口连接,配置以太接口为trunk模式,目的是为了让GPON出去的报文通过xge1口下行,能够带VLAN 46的tag,并配置DHCP的地址池,为WAN连接分配与imc服务器相同网段的IP。

# 全局使能DHCP。

[H3C]dhcp enable

# 上联口xge1口与EPON中的以太口连接,配置以太口为trunk模式。

[H3C]interface gigabitEthernet 2/0/25

[H3C-GigabitEthernet2/0/25] port link-mode bridge

[H3C-GigabitEthernet2/0/25] port link-type trunk

[H3C-GigabitEthernet2/0/25] port trunk permit vlan 1 46

# 创建VLAN 46三层接口做DHCP server。

[H3C]interface Vlan-interface46

[H3C-Vlan-interface46]ip address 10.1.1.100 255.255.0.0

[H3C-Vlan-interface46]dhcp select server

# 8888端口号为imc-tr069组件安装时的http port。EGT904-H-TW适配option 125,ET908-H-8TW适配option 43。

[H3C]dhcp server ip-pool 1

[H3C-dhcp-pool-1] gateway-list 10.1.1.100

[H3C-dhcp-pool-1] network 10.1.0.0 mask 255.255.0.0

[H3C-dhcp-pool-1] address range 10.1.1.2 10.1.1.40

[H3C-dhcp-pool-1] option 125 ascii http://10.1.1.105:8888

[H3C-dhcp-pool-1] option 43 ascii http://10.1.1.105:8888

# 查看由DHCP服务器分配的IP地址。

[H3C]display dhcp server ip-in-use

IP address       Client-identifier/    Lease expiration      Type

Hardware address

10.1.1.8         017c-7a3c-18a4-29     Jun  4 08:08:59 2013  Auto(C)

# 完成之后可以查看IMC上是否有查询到相关ONU。

图2-8 分支网点管理页面

3. 配置文件

dhcp enable

dhcp server apply ip-pool 1

gateway-list 10.1.1.100

network 10.1.0.0 mask 255.255.0.0

address range 10.1.1.2 10.1.1.40

option 125 ascii http://10.1.1.105:8888

option 43 ascii http://10.1.1.105:8888

vlan 46

interface Vlan-interface46

ip address 10.1.1.100 255.255.0.0

dhcp select server

interface gigabitEthernet 2/0/25

port link-mode bridge

port link-type trunk

port trunk permit vlan 1 46

2.7.7  注册成功界面

进入分支网点管理页面,点击CPE名称下列的CPE,就可以获取到上线的ONU的信息如下图所示。

图2-9 ONU已经成功注册IMC

进入ONU的web界面,状态中查看网络侧信息可看到WAN连接的信息。

图2-10 ONU web界面 WAN连接信息

进入ONU的web界面,进入高级配置查看inform上报

图2-11  ONU web界面上报成功界面

2.8  配置数据/ 上网业务

2.8.1  配置规划

表2-3 数据/上网业务配置表格

telnet@OLT> enable

telnet@OLT#configure terminal

telnet@OLT(config-t)#interface link-aggregation 1

telnet@OLT(config-t-if-lg-1)#load-balance src-MAC

telnet@OLT(config-t-if-lg-1)#member ge2/1-2

# 缺省端口状态为shutdown,需要手动打开二层聚合接口1。

telnet@OLT(config-t-if-lg-1)#no shutdown

telnet@OLT(config-t-if-lg-1)#exit

# 创建业务VLAN101

telnet@OLT(config-t)#vlan 101

telnet@OLT(config-t-vlan-101)#exit

# 上行聚合口加入VLAN101。

telnet@OLT(config-t)#interface link-aggregation 1

telnet@OLT(config-t-if-lg-1)# add-to vlan 101 tagged

telnet@OLT(config-t-if-lg-1)#exit

# OLT内联口加入VLAN101。

telnet@OLT(config-t)#vlan 101

telnet@OLT(config-t-vlan-101)#member ge1/1 tagged

telnet@OLT(config-t-vlan-101)#exit

# 将ONU接入OLT1/1,全局已开启自动绑定ONU功能,ONU接口Onu1/1/1将被自动创建,ONU模板已创建,ONU接口1/1/1开启virtual-port 1并下发 2.4 配置ONU模板 中的ONU模板。

telnet@OLT(config-t)#interface gpon-olt 1/1

telnet@OLT(config-t-if-gpon-olt-1/1)#ont 1

telnet@OLT(config-if-gpon-ont-1/1/1)#virtual-port 1 port unlock

#把flow模板和tcont模板应用在onu接口下。

telnet@OLT(config-if-gpon-ont-1/1/1)#service flow-profile 2 tcont-bind-profile 2

# 配置ONU的UNI端口1的上行模式up-mode,add-vid是加一层tag,down-mode是下行模式,delete-vid表示剥掉一层tag,up-pri配置修改上行报文优先级为0,up-vid配置上行untag的报文加vlan101的tag。

telnet@OLT(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 1 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 101

# OLT透传VLAN 101,101 to 101是指对上下行VLAN 101的报文,在经过OLT口时不修改VLAN tag继续转发

telnet@OLT(config-t)#interface gpon-olt 1/1

telnet@OLT(config-t-if-gpon-olt-1/1)#vlantranslate 1/1 101 to 101

2. P3500设备

# 创建动态二层聚合接口1,并加入2个成员端口。

OLT# configure

OLT(CONFIG)# l2

OLT(CONFIG/L2)# port trunk 1 agge1 xge 3,4 srcMAC lacp

# 创建业务VLAN101。

OLT(CONFIG/L2)# vlan

OLT(CONFIG/L2/VLAN)# vid 101 name 101

# 上行聚合口加入VLAN101,为tag模式。

OLT(CONFIG/L2/VLAN)# interface trunk 1 vid 101 tag

# IS口加入VLAN101,为tag模式

OLT(CONFIG/L2/VLAN)# interface is 1/1 vid 101 tag

# OLT透传VLAN101,表示对slot 1的 port 1内的 ont 1的 虚拟口 1 的上行下行流量的tag不做修改。

OLT(CONFIG/L2/VLAN)# translate slot 1 port 1 ont 1 virtual-port 1 cvid 101 new-svid 101

# 将ONU接入Olt1/1,全局已开启自动绑定ONU功能,ONU接口Onu1/1/1将被自动创建,ONU模板已创建,ONU接口1/1/1开启virtual-port 1并下发1.2.4章节中的ONU模板。

OLT(CONFIG)#slot 1

GPFA-1-1> enable

GPFA-1-1#configure terminal

GPFA-1-1(config-t)#interface gpon-olt 1/1

GPFA-1-1(config-t-if-gpon-olt-1/1)#ont 1

GPFA-1-1(config-if-gpon-ont-1/1/1)#virtual-port 1 port unlock

# 把flow模板和tcont模板应用在onu接口下。

GPFA-1-1(config-if-gpon-ont-1/1/1)#service flow-profile 2 tcont-bind-profile 2

# 配置ONU的UNI端口1的up-mode上行模式,add-vid是加一层tag,down-mode是下行模式,delete-vid表示剥掉一层tag,up-pri配置修改上行报文优先级为0,up-vid配置上行untag的报文加vlan101的tag。

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 1 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 101

3. P3600设备

(1)     OLT配置步骤

# 创建动态二层聚合接口1,并加入2个成员端口。

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#port trunk 1 1 interface "xge1,2" srcdstMAC lacp

# 创建业务VLAN101。

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#vid 101 name 101

# 上行聚合口加入VLAN101,为tag模式,IS口缺省透传vlan,不需要配置。

P3600(CONFIG/L2/VLAN)#interface trunk 1 vid 101 tag

# OLT透传VLAN101,表示对slot 1的 port 1内的 ont 1的 虚拟口 1 的上行下行流量的tag不做修改。

P3600(CONFIG/L2/VLAN)# translate slot 1 port 1 ont 1 virtual-port 1 svid 101 new-svid 101

# 将ONU接入Olt1/1,全局已开启自动绑定ONU功能,ONU接口Onu1/1/1将被自动创建,ONU模板已创建,ONU接口1/1/1开启virtual-port 1并下发2.4.2章节中的ONU模板。

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)#virtual-port 1 port unlock

# 把flow模板和tcont模板应用在onu接口下。

P3600(Slot-1/if-gpon-olt-1/1/1)#service flow-profile 2 tcont-bind-profile 2 svc-type m_p

# 配置ONU的UNI端口1的up-mode上行模式,downstream inverse-upstream 是上行操作与下行操作相反,untag add-vid 是给上行untag报文加一层tag,inner-pri配置修改上行报文优先级为0,inner-vid配置上行untag的报文加vlan101的tag。

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 7 rule 1 untag add-vid inner-pri 0 inner-vid 101 inner-tpid mode4 ether-type 0

2.9  配置AP 接入业务

ONU下挂独立AP,对应组网 2.1 中OLT1/2下的ONU2接入独立AP。

2.9.1  配置规划

表2-4 AP接入业务配置表格

1. P3100设备

# 开启PoE-ONU下UNI端口的PoE功能,可以给AP供电(配置可选,对于支持PoE功能的ONU,PoE功能缺省是开启的)。

telnet@OLT> enable

telnet@OLT# configure terminal

telnet@OLT(config-t)# interface gpon-olt 1/2

telnet@OLT(config-t-if-gpon-olt-1/2)# ont 1

telnet@OLT(config-if-gpon-ont-1/2/1)# eth-uni 1 poe enable

telnet@OLT(config-if-gpon-ont-1/2/1)#

telnet@OLT(config-t-if-gpon-olt-1/2)#

# 创建 VLAN61 ,作为管理 VLAN

telnet@OLT(config-t)# vlan 61

# 将连接AC(Access Controller,接入控制器)的端口GE 2/3和OLT内联口GE1/2都加入VLAN 61,确保AP和AC二层互通,AP可以在AC上注册。

telnet@OLT(config-t-vlan-61)# member ge2/3 tagged

telnet@OLT(config-t-vlan-61)# member ge1/2 tagged

telnet@OLT(config-t-vlan-61)# exit

# 创建业务VLAN401。

telnet@OLT(config-t)# vlan 401

telnet@OLT(config-t-vlan-401)# exit

# 上行聚合口加入VLAN401。

telnet@OLT(config-t)# interface link-aggregation 1

telnet@OLT(config-t-if-lg-1)# add-to vlan 401 tagged

telnet@OLT(config-t-if-lg-1)# exit

# 配置ONU流模板,该流模板的ID为3,index为1,名称为newprof_flow_3,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf,代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 61表示匹配的是VLAN tag为61的报文,其中前一个61表示起始VLAN,后面的61表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xf。Vport 1指定流量走虚拟口1。

telnet@OLT(config-t)# gpon profile flow id 3 1 name newprof_flow_3 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 61 61 pri-bitmap 0xf vport 1

# 配置ONU流模板,该流模板的ID为3,index为2,名称为newprof_flow_3_2,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf,代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 401表示匹配的是VLAN tag为401的报文,其中前一个401表示起始VLAN,后面的401表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xf。Vport 1指定流量走虚拟口1。

telnet@OLT(config-t)# gpon profile flow id 3 2 name newprof_flow_3_2 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 401 401 pri-bitmap 0xf vport 1

# 配置ONU Tcont模板的dba的ID为3,名称为newprof_dba_3。 dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160。

telnet@OLT(config-t)# gpon profile dba id 3 name newprof_dba_3 type4 max 1244160

# tcont服务模板中绑定给的dba模板是3,名称为newprof_tcontsvc_3,dba-id为3。

telnet@OLT(config-t)# gpon profile tcont-svc id 3 name newprof_tcontsvc_3 dba-id 3

# 配置vport服务模板,就是gemport服务模板,配置的ID为3,名称为newprof_vportsvc_3。us-pri配置0代表上行流所在的队列为0队列,usratectrl-id和dsratectrl-id是对上下行流量的限速,0代表不限速。

telnet@OLT(config-t)# gpon profile vportsvc id 3 name newprof_vportsvc_3 us-pri 0 usratectrl-id 0 dsratectrl-id 0

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为3,虚拟口为1,名称为newprof_tcontbind_3。vportsvc-id、tcont-id、tcontsvc-id均为3。

telnet@OLT(config-t)# gpon profile tcont-bind id 3 v-port 1 name newprof_tcontbind_3 vportsvc-id 3 tcont-id 3 tcontsvc-id 3

# 将ONU接入OLT1/2,全局已开启自动绑定ONU功能,ONU接口Onu1/2/1将被自动创建,ONU模板已创建,ONU接口1/2/1开启virtual-port 1并下发ONU模板。

telnet@OLT(config-t)# interface gpon-olt 1/2

telnet@OLT(config-t-if-gpon-olt-1/2)# ont 1

telnet@OLT(config-if-gpon-ont-1/2/1)# virtual-port 1 port unlock

# 把flow模板和tcont模板应用在onu接口下。

telnet@OLT(config-if-gpon-ont-1/2/1)# service flow-profile 3 tcont-bind-profile 3

# 配置ONU的UNI端口1的VLAN, port-vlan是一种VLAN配置方式,downstream为下行VLAN处理方式,inverse-upstream指与上行处理方式相反,intpid与outtpid的报文类型均配置为0x8100。telnet@OLT(config-if-gpon-ont-1/2/1)# port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

# 上行对于单tag 报文,处理方式是透传,下行对于单tag处理方式也是透传,downstream必须和rule一起配置。

telnet@OLT(config-if-gpon-ont-1/2/1)# port-vlan 1 rule 1 single-tag transparent

# 上行对于untag 报文,处理方式是加内层tag,inner-vid 配置61。downstream必须和rule一起配置。

telnet@OLT(config-if-gpon-ont-1/2/1)# port-vlan 1 rule 2 untag add-vid inner-vid 61

telnet@OLT(config-if-gpon-ont-1/2/1)#

# OLT透传VLAN 61, 61 to 61 是指对上下行VLAN 61的报文,在经过OLT口时不修改VLAN tag继续转发

telnet@OLT(config-t-if-gpon-olt-1/2)# vlantranslate 1/1 61 to 61

# OLT透传VLAN 401, 401 to 401 是指对上下行VLAN 401的报文,在经过OLT口时不修改VLAN tag继续转发

telnet@OLT(config-t-if-gpon-olt-1/2)# vlantranslate 1/1 401 to 401

2. P3500设备

# 公用接口如无新增配置,则继承之前配置,此处不再赘述。

# 将ONU设备绑定到OLT的ONU接口。全局已开启自动绑定ONU功能,ONU接口Onu1/2/1将被自动创建。

(1)     框式OLT配置步骤

# 开启PoE-ONU下UNI端口的PoE功能,可以给AP供电(配置可选,对于支持PoE功能的ONU,poe功能缺省是开启的)。

OLT#slot 1

GPFA-1-1> enable

GPFA-1-1#con t

GPFA-1-1(config-t)#int gp 1/2

GPFA-1-1(config-t-if-gpon-olt-1/2)#ont 1

GPFA-1-1(config-if-gpon-ont-1/2/1)#eth-uni 1 poe enable

# 创建VLAN61,作为管理VLAN。

OLT#configure

OLT(CONFIG)#l2

OLT(CONFIG/L2)#vlan

OLT(CONFIG/L2/VLAN)#vid 61 name 61

# 将连接AC(Access Controller,接入控制器)的端口XGE 1和OLT内联口IS1/1(OLT1/1-OLT1/4对应的内敛口为IS1/1)都加入VLAN 61,确保AP和AC二层互通,AP可以在AC上注册。

OLT(CONFIG/L2/VLAN)#interface xge 1 vid 61 tag

OLT(CONFIG/L2/VLAN)#interface is 1/1 vid 61 tag

# OLT透传VLAN 61,表示对slot 1的 port 2内的 ont 1的 虚拟口 1 的上行下行流量的tag不做修改。

OLT(CONFIG/L2/VLAN)# translate slot 1 port 2 ont 1 virtual-port 1 cvid 61 new-svid 61

# 创建业务VLAN401。

OLT(CONFIG/L2/VLAN)# vid 401 name 401

# 配置上行口Bridge-Aggregation 1允许VLAN401通过。

OLT(CONFIG/L2/VLAN)# interface trunk 1 vid 401 tag

# OLT透传VLAN401,表示对slot 1的 port 1内的 ont 2的 虚拟口 1 的上行下行流量的tag不做修改。

OLT(CONFIG/L2/VLAN)# translate slot 1 port 2 ont 1 virtual-port 1 cvid 401 new-svid 401

# 配置ONU流模板。

OLT# slot 1

GPFA-1-1> enable

GPFA-1-1# configure terminal

# 配置ONU流模板ID为3,index为1,名称为newprof_flow_3,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 61表示匹配的是VLAN tag 为61的报文,其中前一个61表示起始VLAN,后面的61表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xf。Vport 1指定流量走虚拟口1。

GPFA-1-1(config-t)# gpon profile flow id 3 1 name newprof_flow_3 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 61 61 pri-bitmap 0xf vport 1

# 配置ONU流模板ID为3,index为2,名称为newprof_flow_3_2,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 401表示匹配的是VLAN401的报文,其中前一个61表示起始VLAN,后面的61表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xf。Vport 1指定流量走虚拟口1。

GPFA-1-1(config-t)# gpon profile flow id 3 2 name newprof_flow_3_2 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 401 401 pri-bitmap 0xf vport 1

# 配置ONU Tcont模板的dba的ID为3,名称为newprof_dba_3。dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160bit/s。

GPFA-1-1(config-t)# gpon profile dba id 3 name newprof_dba_3 type4 max 1244160

# tcont服务模板中绑定给的dba模板是3,名称是newprof_tcontsvc_3,dba-id是3。

GPFA-1-1(config-t)# gpon profile tcont-svc id 3 name newprof_tcontsvc_3 dba-id 3

# 配置vport服务模板,就是gemport服务模板,配置的ID为3,名称为newprof_vportsvc_3。us-pri配置0代表上行流所在的队列为0队列,usratectrl-id和dsratectrl-id是对上下行流量的限速,0代表不限速。

GPFA-1-1(config-t)# gpon profile vportsvc id 3 name newprof_vportsvc_3 us-pri 0 usratectrl-id 0 dsratectrl-id 0

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为3,虚拟口为1,名称为newprof_tcontbind_3。vportsvc-id、tcont-id、tcontsvc-id均为3。

GPFA-1-1(config-t)# gpon profile tcont-bind id 3 v-port 1 name newprof_tcontbind_3 vportsvc-id 3 tcont-id 3 tcontsvc-id 3

# 将ONU接入OLT1/2,全局已开启自动绑定ONU功能,ONU接口Onu1/2/1将被自动创建,ONU模板已创建,ONU接口1/2/1开启virtual-port 1并下发ONU模板。

OLT(CONFIG)# slot 1

GPFA-1-1> enable

GPFA-1-1# configure terminal

GPFA-1-1(config-t)# interface gpon-olt 1/2

GPFA-1-1(config-t-if-gpon-olt-1/2)# ont 1

GPFA-1-1(config-if-gpon-ont-1/2/1)# virtual-port 1 port unlock

# 把flow模板和tcont模板应用在onu接口下。

GPFA-1-1(config-if-gpon-ont-1/2/1)# service flow-profile 3 tcont-bind-profile 3

# 配置ONU的UNI端口1的VLAN, port-vlan是一种vlan配置方式,downstream为下行vlan处理方式,inverse-upstream指与上行处理方式相反,intpid与outtpid的报文类型均配置为0x8100。

GPFA-1-1(config-if-gpon-ont-1/2/1)# port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

# 上行对于单 tag 报文,处理方式是透传,下行对于单 tag 处理方式也是透传, downstream 必须和 rule 一起配置。

GPFA-1-1(config-if-gpon-ont-1/2/1)# port-vlan 1 rule 1 single-tag transparent

# untag是指对上行untag报文加上一层tag,add-vid是加tag,inner-pri是加上的tag优先级是0,inner-vid是加上的tag vlan ID是61。

GPFA-1-1(config-if-gpon-ont-1/2/1)# port-vlan 1 rule 2 untag add-vid inner-pri 0 inner-vid 61

3. P3600设备

# 公用接口如无新增配置,则继承之前配置,此处不再赘述。

# 将ONU设备绑定到OLT的ONU接口。全局已开启自动绑定ONU功能,ONU接口Onu1/1/1将被自动创建。

(1)     OLT配置步骤

# 开启PoE-ONU下UNI端口的PoE功能,可以给AP供电(配置可选,对于支持PoE功能的ONU,poe功能缺省是开启的)。

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)#eth-uni 1 poe enable

# 创建VLAN61,作为管理VLAN。

P3600#configure

P3600(CONFIG)#l2

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#vid 61 name 61

# 将连接AC(Access Controller,接入控制器)的端口XGE 1加入VLAN 61,确保AP和AC二层互通,AP可以在AC上注册。

P3600(CONFIG/L2/VLAN)#interface xge 1 vid 61 tag

# OLT透传VLAN 61,表示对slot 1的 port 2内的 ont 1的 虚拟口 1 的上行下行流量的tag不做修改。

3600(CONFIG/L2/VLAN)# translate slot 1 port 2 ont 1 virtual-port 1 svid 61 new-svid 61

# 创建业务VLAN401。

P3600(CONFIG/L2/VLAN)#vid 401 name 401

# 配置上行口Bridge-Aggregation 1允许VLAN401通过。

P3600(CONFIG/L2/VLAN)# interface trunk 1 vid 401 tag

# OLT透传VLAN401,表示对slot 1的 port 1内的 ont 1的 虚拟口 2 的上行下行流量的tag不做修改。

P3600(CONFIG/L2/VLAN)# translate slot 1 port 2 ont 1 virtual-port 2 svid 401 new-svid 401

# 配置ONU流模板。

P3600#Slot 1

P3600(Slot-1)#

# 配置ONU流模板ID为3,index为1,名称为newprof_flow_3,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 61表示匹配的是VLAN tag 为61的报文,其中前一个61表示起始VLAN,后面的61表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xff。vport 1指定流量走虚拟口1。

P3600(Slot-1)# gpon profile flow id 3 1 name newprof_flow_3 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 61 61 pri-bitmap 0xff vport 1

# 配置ONU流模板ID为3,index为2,名称为newprof_flow_3_2,uni-type 配置onu的类型为ethernet-uni,对应了sfu。uni-bitmap代表允许通过的uni口,这里配置了0xf代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 401表示匹配的是VLAN401的报文,其中前一个401表示起始VLAN,后面的401表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xff。vport 1指定流量走虚拟口2。

P3600(Slot-1)# gpon profile flow id 3 2 name newprof_flow_3_2 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 401 401 pri-bitmap 0xff vport 2

# 配置ONU Tcont模板的dba的ID为3,名称为newprof_dba_3。dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160bit/s。

P3600(Slot-1)# gpon profile dba id 3 name newprof_dba_3 type4 max 1244160

# tcont服务模板中绑定给的dba模板是3,名称是newprof_tcontsvc_3,dba-id是3。

P3600(Slot-1)# gpon profile tcont-svc id 3 name newprof_tcontsvc_3 dba-id 3

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为3,虚拟口分别为1,2,名称为newprof_tcontbind_3。tcont-id为1。如果不涉及限速业务,vportsvc-id、tcontsvc-id可以不用配置,缺省为1。

P3600(Slot-1)# gpon profile tcont-bind id 3 v-port 1 name newprof_tcontbind_3 tcont-id 1

P3600(Slot-1)# gpon profile tcont-bind id 3 v-port 2 name newprof_tcontbind_3 tcont-id 1

# 将ONU接入OLT1/1,全局已开启自动绑定ONU功能,ONU接口Onu1/1/1将被自动创建,ONU模板已创建,ONU接口1/1/1开启virtual-port 1并下发ONU模板。

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)# virtual-port 1 port unlock

P3600(Slot-1/if-gpon-olt-1/1/1)# virtual-port 2 port unlock

# 把flow模板和tcont模板应用在onu接口下。

P3600(Slot-1/if-gpon-olt-1/1/1)# service flow-profile 3 tcont-bind-profile 3 svc-type m_p

# 配置ONU的UNI端口1的VLAN, port-vlan是一种vlan配置方式,downstream为下行vlan处理方式,inverse-upstream指与上行处理方式相反,intpid与outtpid的报文类型均配置为0x8100。

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

# 上行对于单 tag 报文,处理方式是透传,下行对于单 tag 处理方式也是透传, downstream 必须和 rule 一起配置。

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 1 rule 1 single-tag transparent

# untag是指对上行untag报文加上一层tag,add-vid是加tag,inner-pri是加上的tag优先级是0,inner-vid是加上的tag vlan ID是61。

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 1 rule 2 untag add-vid inner-pri 0 inner-vid 61

2.10  配置 VoIP 业务(基于 SIP 协议)

ONU支持语音业务,需要配置ONU管理IP,ONU再应用业务模板和语音模板。因为OLT只做二层业务透传,所以网关需要配置在核心上,关于核心的配置不再赘述,下面对OLT相关语音业务配置进行举例。

2.10.1  配置规划

表2-5 VoIP 业务配置表格

OLT(CONFIG/L2)#vlan

OLT(CONFIG/L2/VLAN)#vid 102 name 102 mode routed

# 将上联口 XGE 1 IS 口加入 vlan 102 中。

OLT(CONFIG/L2/VLAN)#interface xge 1 vid 102 tag

OLT(CONFIG/L2/VLAN)#interface is 1/1 vid 102 tag

OLT(CONFIG/L2/VLAN)#exit

OLT(CONFIG/L2)#exit

# 给管理VLAN和语音VLAN配置IP地址。在Vlan 102:1中,1为vlan102的子vlan,配置IP地址时需要指名子VLAN。

OLT(CONFIG)#l3

OLT(CONFIG/L3)#interface

OLT(CONFIG/L3/VLAN)# interface vlan 102:1 ip 192.168.2.1 netmask 255.255.2555.0

OLT(CONFIG/L3/VLAN)#exit

OLT(CONFIG/L3)#exit

# OLT透传VLAN102,表示对slot 1的 port 1内的 ont 1的 虚拟口 1 的上行下行流量的tag不做修改。

OLT(CONFIG)#l2

OLT(CONFIG/L2)#vlan

OLT(CONFIG/L2/VLAN)# translate slot 1 port 1 ont 1 virtual-port 1 cvid 102 new-svid 102

# 配置ONU的管理IP的流模板和语音模板。

OLT# slot 1

GPFA-1-1> enable

GPFA-1-1# configure terminal

# 配置ONU的管理IP的流模板。该流模板的ID为4,index为1,名称为newprof_flow_4,uni-type 配置ONU的类型为ip-host,对应管理IP地址。uni-bitmap代表允许通过的uni口,这里配置了0xf,代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 102表示匹配的是VLAN tag为102的报文,其中前一个102表示起始VLAN,后面的102表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xf。Vport 1指定流量走虚拟口1。

GPFA-1-1(config-t)# gpon profile flow id 4 1 name newprof_flow_4 uni-type ip-host uni-bitmap 0xf upmap-type vlanId 102 102 pri-bitmap 0xf vport 1

# 配置语音模板voip-sip-server,ID为1,名称为1,proxy-addr是代理语音服务器的地址为20.20.1.2,external-proxy-addr是外部代理语音服务器的地址为20.20.1.2,registering-addr是注册语音服务器的地址为20.20.1.2,tcp-port是指语音服务器的端口号为5060。

GPFA-1-1(config-t)# gpon profile voip-sip-server id 1 name 1 proxy-addr 20.20.1.2 external-proxy-addr 20.20.1.2 registering-addr 20.20.1.2 tcp-port 5060

# 配置ONU Tcont模板的dba的ID为4,名称为newprof_dba_4。 dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160bit/s。

GPFA-1-1(config-t)# gpon profile dba id 4 name newprof_dba_4 type4 max 1244160

# tcont服务模板中绑定给的dba模板是4,名称为newprof_tcontsvc_4,dba-id为4。

GPFA-1-1(config-t)# gpon profile tcont-svc id 4 name newprof_tcontsvc_4 dba-id 4

# 配置vport服务模板,就是gemport服务模板,配置的ID为4,名称为newprof_vportsvc_4。us-pri配置0代表上行流所在的队列为0队列,usratectrl-id和dsratectrl-id是对上下行流量的限速,0代表不限速。

GPFA-1-1(config-t)# gpon profile vportsvc id 4 name newprof_vportsvc_4 us-pri 0 usratectrl-id 0 dsratectrl-id 0

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为4,虚拟口为1,名称为newprof_tcontbind_4。vportsvc-id、tcont-id、tcontsvc-id均为4。

GPFA-1-1(config-t)# gpon profile tcont-bind id 4 v-port 1 name newprof_tcontbind_4 vportsvc-id 4 tcont-id 4 tcontsvc-id 4

# 将ONU接入OLT1/1,全局已开启自动绑定ONU功能,ONU接口Onu1/1/1将被自动创建,ONU模板已创建,ONU接口1/1/1开启virtual-port 1并下发ONU模板,管理IP地址和语音的配置。

OLT(CONFIG)# slot 1

GPFA-1-1> enable

GPFA-1-1# configure terminal

GPFA-1-1(config-t)# interface gpon-olt 1/1

GPFA-1-1(config-t-if-gpon-olt-1/2)# ont 1

GPFA-1-1(config-if-gpon-ont-1/2/1)# virtual-port 1 port unlock

# 把flow模板和tcont模板应用在ONU接口下。

GPFA-1-1(config-if-gpon-ont-1/2/1)# service flow-profile 4 tcont-bind-profile 4

# 配置192.168.2.3作为ONU的管理IP地址,配置192.168.2.1作为网关地址,static是指这是一个静态ip地址,1是一个标志。

GPFA-1-1(config-if-gpon-ont-1/2/1)# ip-host 192.168.2.3 255.255.255.0 192.168.2.1 static 1

# 对第一个语音口进行配置ont-pots-uni 1,第一个3001是电话号码,第二个3001是用户名,第三个3001是密码,第四个3001是显示的名称,ip-host前面的1是对应语音模板的1(gpon profile voip-sip-server id 1),ip-host后面的1对应的是上面配置的ip-host 中的static 1。

GPFA-1-1(config-if-gpon-ont-1/2/1)# ont-pots-uni 1 3001 3001 3001 3001 1 ip-host 1

# 配置ONU的语音口的VLAN操作模式为VLAN PVID模式,port-vlan是一种VLAN 配置方式,downstream为下行vlan处理方式,inverse-upstream指与上行处理方式相反,intpid与outtpid的报文类型均配置为0x8100。

GPFA-1-1(config-if-gpon-ont-1/2/1)# port-vlan 128 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

# port-vlan 128是对语音VLAN的VLAN模式进行配置,上行的untag语音报文加上一层tag,VLAN id是102,inner-pri配置报文的优先级是0,下行只允许vlan102的语音报文通过,会剥掉VLAN tag再继续转发。

GPFA-1-1(config-if-gpon-ont-1/2/1)# port-vlan 128 rule 1 untag add-vid inner-pri 0 inner-vid 102

2. P3100设备

# 全局开启arp学习功能

telnet@OLT(config-t)# arp-learning enable

# 创建VLAN102,作为管理VLAN和语音VLAN。

telnet@OLT(config-t)# vlan 102

# 将上联口 ge2/1 OLT 口与转发芯片的内联口 ge1/1 加入VLAN 102 中。

telnet@OLT(config-t-vlan-102)# member ge1/1 tagged

telnet@OLT(config-t-vlan-102)# member ge2/1 tagged

telnet@OLT(config-t-vlan-102)# exit

# 给管理VLAN和语音VLAN配置IP地址。

telnet@OLT(config-t)# interface vlan 102

telnet@OLT(config-t-if-vlan-102)# ip address 192.168.2.1 255.255.255.0

telnet@OLT(config-t-if-vlan-102)# no shutdown

telnet@OLT(config-t-if-vlan-102)#

# 配置ONU的管理IP的流模板。该流模板的ID为4,index为1,名称为newprof_flow_4,uni-type 配置ONU的类型为ip-host,对应管理IP地址。uni-bitmap代表允许通过的uni口,这里配置了0xf,代表4口onu。upmap-type匹配报文的类型为vlanId,配置了vlanId 102表示匹配的是VLAN tag为102的报文,其中前一个102表示起始VLAN,后面的102表示结束VLAN。upmap-type的配置是vlanid时,pri-bitmap会默认填充生成0xf。Vport 1指定流量走虚拟口1。

telnet@OLT(config-t)# gpon profile flow id 4 1 name newprof_flow_4 uni-type ip-host uni-bitmap 0xf upmap-type vlanId 102 102 pri-bitmap 0xf vport 1

# 配置语音模板voip-sip-server,ID为1,名称为1,proxy-addr是代理语音服务器的地址为20.20.1.2,external-proxy-addr是外部代理语音服务器的地址为20.20.1.2,registering-addr是注册语音服务器的地址为20.20.1.2,tcp-port是指语音服务器的端口号为5060。

telnet@OLT(config-t)# gpon profile voip-sip-server id 1 name 1 proxy-addr 20.20.1.2 external-proxy-addr 20.20.1.2 registering-addr 20.20.1.2 tcp-port 5060

# 配置ONU Tcont模板的dba的ID为4,名称为newprof_dba_4。 dba模式type4为max表示上行带宽配置为最大模式,最大的带宽为1244160bit/s。

telnet@OLT(config-t)# gpon profile dba id 4 name newprof_dba_4 type4 max 1244160

# tcont服务模板中绑定给的dba模板tcont-svc id是4,名称为newprof_tcontsvc_4,dba-id为4。

telnet@OLT(config-t)# gpon profile tcont-svc id 4 name newprof_tcontsvc_4 dba-id 4

# 配置vport服务模板,就是gemport服务模板,配置的ID为4,名称为newprof_vportsvc_4。us-pri配置0代表上行流所在的队列为0队列,usratectrl-id和dsratectrl-id是对上下行流量的限速,0代表不限速。

telnet@OLT(config-t)# gpon profile vportsvc id 4 name newprof_vportsvc_4 us-pri 0 usratectrl-id 0 dsratectrl-id 0

# 将tcont对应的所有配置都绑定在一起:绑定的tcont-bind的ID为4,虚拟口为1,名称为newprof_tcontbind_4。vportsvc-id、tcont-id、tcontsvc-id均为4。

telnet@OLT(config-t)# gpon profile tcont-bind id 4 v-port 1 name newprof_tcontbind_4 vportsvc-id 4 tcont-id 4 tcontsvc-id 4

# 将ONU接入OLT1/1,全局已开启自动绑定ONU功能,ONU接口Onu1/1/1将被自动创建,ONU模板已创建,ONU接口1/1/1开启virtual-port 1并下发ONU模板,管理IP地址和语音的配置。

telnet@OLT(config-t)# interface gpon-olt 1/1

telnet@OLT(config-t-if-gpon-olt-1/1)# ont 1

telnet@OLT(config-if-gpon-ont-1/1/1)# virtual-port 1 port unlock

# 把flow模板和tcont模板应用在onu接口下。

telnet@OLT(config-if-gpon-ont-1/1/1)# service flow-profile 4 tcont-bind-profile 4

# 配置192.168.2.3作为Onu的管理IP地址,配置192.168.2.1作为网关地址,static是指这是一个静态IP地址,1是一个标志。

telnet@OLT(config-if-gpon-ont-1/1/1)# ip-host 192.168.2.3 255.255.255.0 192.168.2.1 static 1

# 对第一个语音口进行配置ont-pots-uni 1,第一个3001是电话号码,第二个3001是用户名,第三个3001是密码,第四个3001是显示的名称,ip-host前面的1是对应语音模板的1(gpon profile voip-sip-server id 1),ip-host后面的1对应的是上面配置的ip-host 中的(static 1)。

telnet@OLT(config-if-gpon-ont-1/1/1)# ont-pots-uni 1 3001 3001 3001 3001 1 ip-host 1

# 配置ONU的语音口的VLAN操作模式为VLAN PVID模式,port-vlan是一种vlan配置方式,downstream为下行vlan处理方式,inverse-upstream指与上行处理方式相反,intpid与outtpid的报文类型均配置为0x8100。

telnet@OLT(config-if-gpon-ont-1/1/1)# port-vlan 128 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

# port-vlan 128是对语音VLAN的VLAN模式进行配置,上行的untag语音报文加上一层tag,VLAN id是102,inner-pri配置报文的优先级是0,下行只允许vlan102的语音报文通过,会剥掉VLAN tag再继续转发。

telnet@OLT(config-if-gpon-ont-1/1/1)# port-vlan 128 rule 1 untag add-vid inner-pri 0 inner-vid 102

telnet@OLT(config-if-gpon-ont-1/1/1)#

# OLT透传VLAN 102, 102 to 102 是指对上下行VLAN 102的报文,在经过OLT口时不修改VLAN tag继续转发

telnet@OLT(config-t-if-gpon-olt-1/1)# vlantranslate 1/1 102 to 102

3. P3600设备

# 公用接口如无新增配置,则继承之前配置,此处不再赘述。

# 实现ONU的语音业务分为2步,配置管理IP,下发语音配置。

# 下面配置以SFU款型ONU为例,如果是HGU款型,需要在ONU上配置。

(1)     OLT配置管理IP步骤

# 创建ip-host模板

P3600(Slot-1)# gpon profile flow id  4 name newprof_flow_4 uni-type ip-host uni-bitmap 0x3 upmap-type vlanId 120 120 pri-bitmap 0xff vport 1

P3600(Slot-1)# gpon profile tcont-bind id 4 v-port 1 name newprof_tcontbind_1 tcont-id 1

# 创建语音模板

P3600(Slot-1)# gpon profile voip-media id 1 name new_voipmedia_1 faxmode passthru

P3600(Slot-1)# gpon profile voip-sip-agent id 1 name yuyin proxy-server 20.20.1.2 registrar-server 20.20.1.2 outbound-server 20.20.1.2

P3600(Slot-1)# gpon profile voip-sip-user id 1 name yuyin voicemail-server 20.20.1.2

P3600(Slot-1)# gpon profile voip-svc id 1 name new_voipsvc_1 P3600(Slot-1)# gpon profile voip-svc id 1 name yuyin

# ONT接口下配置管理IP

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)# virtual-port 1 port unlock

P3600(Slot-1/if-gpon-olt-1/1/1)# s ervice flow-profile 4 tcont-bind-profile 1

P3600(Slot-1/if-gpon-olt-1/1/1)# i p-host 1 92.168.2.3 255.255.255.0 1 92.168.2.1

# 管理IP接口配置vlan模式

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 128 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 128 rule 1 untag add-vid inner-pri 15 inner-vid 120 inner-tpid mode4 ether-type 0

# ONT接口下创建语音号码,应用语音模板

P3600(Slot-1/if-gpon-olt-1/3/1)# voip-service svc 1

P3600(Slot-1/if-gpon-olt-1/3/1)# voip-service sip 1 agent-id 1 media-id 1 phone-num 3001 username 1 password 123 user-id 1

2.11  摄像头接入业务

2.11.1  配置规划

表2-6 摄像头接入业务配置表格

# 公用接口如无新增配置,则继承之前配置,此处不再赘述

1. P3500设备

# 开启PoE-ONU下UNI端口的PoE功能,可以给摄像头供电(配置可选,对于支持PoE功能的ONU,PoE功能缺省是开启的)。

OLT# slot 1

GPFA-1-1> enable

GPFA-1-1# con t

GPFA-1-1(config-t)# int gp 1/3

GPFA-1-1(config-t-if-gpon-olt-1/3)# ont 1

GPFA-1-1(config-if-gpon-ont-1/3/1)# eth-uni 1 poe enable

# 创建VLAN301作为视频业务VLAN。

OLT# configure

OLT(CONFIG)# l2

OLT(CONFIG/L2)# vlan

OLT(CONFIG/L2/VLAN)# vid 301 name 301

# 配置上行口Bridge-Aggregation 1和IS口1/1允许VLAN301通过。

OLT(CONFIG/L2/VLAN)# interface trunk 1 vid 301 tag

OLT(CONFIG/L2/VLAN)#interface xge 1 vid 301 tag

# OLT透传VLAN 301,表示对slot 1的 port 1内的 ont 1的 虚拟口 1 的上行下行流量的tag不做修改。

OLT(CONFIG/L2/VLAN)# translate slot 1 port 3 ont 1 virtual-port 1 cvid 301 new-svid 301

# 配置ONU流模板,匹配vlan为301的流量

OLT# slot 1

GPFA-1-1> enable

GPFA-1-1# configure terminal

GPFA-1-1(config-t)# gpon profile flow id 4 1 name newprof_flow_4 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 301 301 pri-bitmap 0xf vport 1

# 配置ONU Tcont模板,上行带宽配置为最大,uni端口不限速。

GPFA-1-1(config-t)# gpon profile dba id 4 name newprof_dba_4 type4 max 1244160

GPFA-1-1(config-t)# gpon profile tcont-svc id 4 name newprof_tcontsvc_4 dba-id 4

GPFA-1-1(config-t)# gpon profile vportsvc id 4 name newprof_vportsvc_4 us-pri 0 usratectrl-id 0 dsratectrl-id 0

GPFA-1-1(config-t)# gpon profile tcont-bind id 4 v-port 1 name newprof_tcontbind_4 vportsvc-id 4 tcont-id 4 tcontsvc-id 4

# 将ONU接入OLT1/3,全局已开启自动绑定ONU功能,ONU接口Onu1/3/1将被自动创建,ONU模板已创建,ONU接口1/3/1开启virtual-port 1并下发ONU模板。

OLT(CONFIG)# slot 1

GPFA-1-1> enable

GPFA-1-1# configure terminal

GPFA-1-1(config-t)# interface gpon-olt 1/3

GPFA-1-1(config-t-if-gpon-olt-1/3)# ont 1

GPFA-1-1(config-if-gpon-ont-1/3/1)# virtual-port 1 port unlock

GPFA-1-1(config-if-gpon-ont-1/3/1)# service flow-profile 4 tcont-bind-profile 4

# 将PoE-ONU的UNI端口1配置为VLAN标记模式,为收到的报文添加一层VLAN301的Tag。

GPFA-1-1(config-if-gpon-ont-1/3/1)# port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

GPFA-1-1(config-if-gpon-ont-1/3/1)# port-vlan 1 rule 1 single-tag transparent

GPFA-1-1(config-if-gpon-ont-1/3/1)# port-vlan 1 rule 2 untag add-vid inner-pri 0 inner-vid 301

# 开启UNI 1口的流控功能,避免因为拥塞而导致报文丢失。UNI端口的对端(摄像头)也需要开启流量控制功能

GPFA-1-1(config-if-gpon-ont-1/3/1)# eth-uni 1 config pause-time 10

GPFA-1-1(config-if-gpon-ont-1/3/1)#

2. P3100设备

# 开启PoE-ONU下UNI端口的PoE功能,可以给摄像头供电(配置可选,对于支持PoE功能的ONU,poe功能缺省是开启的)。

telnet@OLT> enable

telnet@OLT# configure terminal

telnet@OLT(config-t)# interface gpon-olt 1/3

telnet@OLT(config-t-if-gpon-olt-1/3)# ont 1

telnet@OLT(config-if-gpon-ont-1/3/1)# eth-uni 1 poe enable

telnet@OLT(config-if-gpon-ont-1/3/1)#

telnet@OLT(config-t-if-gpon-olt-1/3)#

# 创建VLAN301作为视频业务VLAN。

telnet@OLT(config-t)# vlan 301

telnet@OLT(config-t-vlan-301)# exit

# 上行聚合口加入VLAN301。

telnet@OLT(config-t)# interface link-aggregation 1

telnet@OLT(config-t-if-lg-1)# add-to vlan 301 tagged

telnet@OLT(config-t-if-lg-1)# exit

# 配置ONU流模板,匹配VLAN为301的流量

telnet@OLT(config-t)# gpon profile flow id 4 1 name newprof_flow_4 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 301 301 pri-bitmap 0xf vport 1

# 配置ONU Tcont模板,上行带宽配置为最大,UNI端口不限速。

telnet@OLT(config-t)# gpon profile dba id 4 name newprof_dba_4 type4 max 1244160

telnet@OLT(config-t)# gpon profile tcont-svc id 4 name newprof_tcontsvc_4 dba-id 4

telnet@OLT(config-t)# gpon profile vportsvc id 4 name newprof_vportsvc_4 us-pri 0 usratectrl-id 0 dsratectrl-id 0

telnet@OLT(config-t)# gpon profile tcont-bind id 4 v-port 1 name newprof_tcontbind_4 vportsvc-id 4 tcont-id 4 tcontsvc-id 4

# 将ONU接入Olt1/3,全局已开启自动绑定ONU功能,ONU接口Onu1/3/1将被自动创建,ONU模板已创建,ONU接口1/3/1开启virtual-port 1并下发ONU模板。

telnet@OLT(config-t)# interface gpon-olt 1/3

telnet@OLT(config-t-if-gpon-olt-1/3)# ont 1

telnet@OLT(config-if-gpon-ont-1/3/1)# virtual-port 1 port unlock

telnet@OLT(config-if-gpon-ont-1/3/1)# service flow-profile 4 tcont-bind-profile 4

# 将PoE-ONU的UNI端口1配置为VLAN标记模式,为收到的报文添加一层VLAN301的Tag。

telnet@OLT(config-if-gpon-ont-1/3/1)# port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

telnet@OLT(config-if-gpon-ont-1/3/1)# port-vlan 1 rule 1 single-tag transparent

telnet@OLT(config-if-gpon-ont-1/3/1)# port-vlan 1 rule 2 untag add-vid inner-vid 301

# 开启UNI 1口的流控功能,避免因为拥塞而导致报文丢失。UNI端口的对端(摄像头)也需要开启流量控制功能

telnet@OLT(config-if-gpon-ont-1/3/1)# eth-uni 1 config pause-time 10

telnet@OLT(config-if-gpon-ont-1/3/1)#

# OLT透传VLAN 301,301 to 301是指对上下行VLAN 301的报文,在经过OLT口时不修改VLAN tag继续转发

telnet@OLT(config-t-if-gpon-olt-1/3)# vlantranslate 1/1 301 to 301

3. P3600设备

# 开启PoE-ONU下UNI端口的PoE功能,可以给摄像头供电(配置可选,对于支持PoE功能的ONU,PoE功能缺省是开启的)。

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)#eth-uni 1 poe enable

# 创建VLAN301作为视频业务VLAN。

P3600# configure

P3600(CONFIG)# l2

P3600(CONFIG/L2)# vlan

P3600(CONFIG/L2/VLAN)# vid 301 name 301

# 配置上行口Bridge-Aggregation 1和IS口1/1允许VLAN301通过。

P3600(CONFIG/L2/VLAN)# interface trunk 1 vid 301 tag

P3600(CONFIG/L2/VLAN)#interface xge 1 vid 301 tag

# OLT透传VLAN 301,表示对slot 1的 port 1内的 ont 1的 虚拟口 1 的上行下行流量的tag不做修改。

P3600(CONFIG/L2/VLAN)# translate slot 1 port 3 ont 1 virtual-port 1 svid 301 new-svid 301

# 配置ONU流模板,匹配vlan为301的流量

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)# gpon profile flow id 4 1 name newprof_flow_4 uni-type ethernet-uni uni-bitmap 0xf upmap-type vlanId 301 301 pri-bitmap 0xf vport 1

# 配置ONU Tcont模板,上行带宽配置为最大,vport端口不限速。

P3600(Slot-1)# gpon profile dba id 4 name newprof_dba_4 type4 max 1244160

P3600(Slot-1)# gpon profile tcont-svc id 4 name newprof_tcontsvc_4 dba-id 4

P3600(Slot-1)# gpon profile tcont-bind id 4 v-port 1 name newprof_tcontbind_4 tcont-id 1

# 将ONU接入OLT1/3,全局已开启自动绑定ONU功能,ONU接口Onu1/3/1将被自动创建,ONU模板已创建,ONU接口1/3/1开启virtual-port 1并下发ONU模板。

P3600#Slot 1

P3600(Slot-1)#

P3600(Slot-1)#interface gpon-olt 1/1

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)#  virtual-port 1 port unlock

P3600(Slot-1/if-gpon-olt-1/1/1)# service flow-profile 4 tcont-bind-profile 4 svc-type 1_p

# 将PoE-ONU的UNI端口1配置为VLAN标记模式,为收到的报文添加一层VLAN301的Tag。

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 1 rule 1 single-tag transparent

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 1 rule 2 untag add-vid inner-pri 0 inner-vid 301

2.12  批量配置创建

如果涉及ONU数量比较大,部分配置可以考虑批量下发。

2.12.1  vlan 批量创建

# 创建vlan20到30

P3600(CONFIG/L2)#vlan

P3600(CONFIG/L2/VLAN)#vid 20-30 name 20-30

2.12.2  端口添加vlan 批量创建

# 将xge1,2口加入vlan20到30

P3600(CONFIG/L2/VLAN)#interface xge 1-2 vid 20-30 tag

2.12.3  vlan-translate 批量创建

# 批量线卡1板的OLT 1-16口的1-10 ONU接口(共160个ONU)的vport 1端口批量应用vlan20

P3600(CONFIG/L2/VLAN)# translate slot 1 port 1-16 ont 1-10 virtual-port 1 svid 20 new-svid 20

3 校园网典型配置举例

3.1  组网需求

本举例针对学校多媒体教室的网络规划,包含四大部分:核心交换机,OLT,ONU,ONU下挂设备,其中ONU下挂的设备包括多媒体设备、广播设备、监控设备,AP设备等。

图3-1 所示,GPON OLT通过聚合方式连接核心交换机,OLT接口下的ONU设备使用了EGT358-P,uni1-uni5口分别连接了PC作为多媒体设备,uni6口连接了教室广播,uni7口连接了监控,uni8口连接的AP设备用于创建无线网络。

根据组网背景,做业务规划:多媒体设备统一使用VLAN31,校园广播使用VLAN32,考试监控使用VLAN33,无线AP使用VLAN34,每个业务VLAN的流量分别映射到vport端口以区分业务流量。

表3-1 组网业务规划

3.2  配置步骤

3.3  配置注意事项

本校园组网,以一台OLT设备,两台EGT358-P分别做P3500和P3116/P3108设备的配置举例,实际应用可以按照提示修改部分参数,重新配置举例中的模板即可。

3.4  使用P3100 作为GPON OLT的配置步骤

¡ EGT358-P-2注册在olt16口的ont64接口。

以P3116为例,所有配置涉及:

¡ 配置端口聚合,请按照实际组网是否有链路聚合配置需求,没有可以不参考。

¡ 配置业务流模板配置。

¡ 配置UNI端口VLAN模式。

¡ 配置VLAN。

3.4.1  端口聚合配置

端口聚合配置举例(仅支持同一业务板内接口聚合)。

# 创建聚合口link-aggregation 1。

telnet@P3116(config-t)# interface link-aggregation 1

# 配置负载均衡方式为dst-mac。

telnet@P3116(config-t-if-lg-1)# load-balance dst-mac

NOTE: Link Aggregation Group 1 is created and add into VLAN 1 and PVID is 1.

# 配置ge2/1,2/2为聚合口成员,添加成员端口前,需要保证两个端口下的配置相同。

telnet@P3116(config-t-if-lg-1)# member ge2/1-2

NOTE: All the static MAC address and ACL rules associated with interface ge2/1-2 have been cleared.

NOTE: All the static attributes associated with interface ge2/1-2 have inherit from Lag 1.

3.4.2  业务模板配置

业务模板配置与P3500相同,需要注意的是用户模板在configure terminal视图下配置,具体请参见 3.5.3 业务模板配置

3.4.3  VLAN 配置

(1)     创建VLAN,将业务端口加入VLAN。

# 创建vlan31、32、33、34,将聚合口lg1、OLT接口1/1和1/16以tag模式加入VLAN。

telnet@P3116(config-t)# vlan 31

telnet@P3116(config-t-vlan-31)# member lg1 tagged

telnet@P3116(config-t-vlan-31)# member ge1/1 tagged

telnet@P3116(config-t-vlan-31)# member ge1/16 tagged

telnet@P3116(config-t-vlan-31)# exit

telnet@P3116(config-t)# vlan 32

telnet@P3116(config-t-vlan-32)# member lg1 tagged

telnet@P3116(config-t-vlan-32)# member ge1/1 tagged

telnet@P3116(config-t-vlan-32)# member ge1/16 tagged

telnet@P3116(config-t-vlan-32)# exit

(2)     配置vlantranslate。

盒式设备在OLT接口下配置VLAN转换。

# olt1口ont 接口的vport 1、vport 2、vport3、vport 4分别透传vlan31、vlan32、vlan33、vlan34。

telnet@P3116(config-t-if-gpon-olt-1/1)# vlantranslate 1/1 31 to 31

telnet@P3116(config-t-if-gpon-olt-1/1)# vlantranslate 1/2 32 to 32

telnet@P3116(config-t-if-gpon-olt-1/1)# vlantranslate 1/3 33 to 33

telnet@P3116(config-t-if-gpon-olt-1/1)# vlantranslate 1/4 34 to 34

# olt16口ont 64接口的vport 1、vport 2、vport3、vport 4分别透传vlan31、vlan32、vlan33、vlan34。

telnet@P3116(config-t-if-gpon-olt-1/16)# vlantranslate 64/1 31 to 31

telnet@P3116(config-t-if-gpon-olt-1/16)# vlantranslate 64/2 32 to 32

telnet@P3116(config-t-if-gpon-olt-1/16)# vlantranslate 64/3 33 to 33

telnet@P3116(config-t-if-gpon-olt-1/16)# vlantranslate 64/4 34 to 34

3.4.4  UNI 端口VLAN模式配置

盒式设备VLAN 模式配置与P3500相同,请参见 3.5.4 UNI端口VLAN模式配置

3.5  使用P3500 作为GPON OLT的配置步骤

3.5.1  业务规划

1)控制交换板上XGE1口和XGE2 口分别与核心交换机连接,做链路聚合。

2)ONU设备注册:

¡ EGT358-P-1注册在1号槽olt8口的ont1接口。

¡ EGT358-P-2注册在5号槽olt16口的ont64接口。

3)所有配置涉及:

¡ 端口聚合配置。

¡ 业务模板配置。

¡ UNI端口VLAN模式配置。

¡ 全局VLAN配置。

3.5.2  端口聚合配置

端口聚合配置举例,请按照实际组网是否有链路聚合配置需求,没有可以不参考。且不建议主备设备的控制交换板之间配置聚合,因为配置聚合后备用设备的控制交换板的以太业务接口也是 UP 状态,会导致对端设备上的两个聚合成员接口都是 UP 状态,未知单播进行负载分担会产生丢包。

(1)     创建聚合口-TRUNK口。

创建trunk 1 名称为1 成员端口为xge1和xge2,负载分担模式为dstMAC,要加入链路聚合组的接口要保证配置一致,聚合口才能创建成功。

P3500#configure l2 port trunk 1 1 xge 1,2 dstMAC

前面的1表示聚合口的索引值,参数范围1-6,删除/查询等操作都基于索引值;后面的 1 表示聚合口名称,可以配置字符,作为聚合口的描述;dstMAC为负载分担模式,其他模式可以通过按tab键查询;l2表示二层。

3.5.3  业务模板配置

· 根据组网判断,如果实际业务中不存在带宽限速等要求,可以简化配置,业务流模板可以只配置flow模板映射vport端口,tcont-bind模板关联flow流模板;关于模板的详细描述请参见“ H3C P3500 系列 GPON OLT 交换机 配置指导”中的“ 配置 ONU业务”。

· 如果还涉及带宽限速等要求,关于带宽限速等功能的详细描述请参见“ H3C P3500 系列 GPON OLT 交换机 配置指导”中的“配置ONU业务”。

· 本小节配置基于 图3-1 ,如果业务更加复杂的,可以在下面配置模板的基础上酌情增加。

· 根据业务VLAN,在ont接口下创建4个vport虚端口,用来分流。

· 业务模板配置在<configure terminal>视图下发,P3500和P31XX配置命令一致。

(1)     ont接口下创建vport端口。

# 进入 ont 接口视图步骤如下:

A .进入线卡板视图, slot <id> id 表示板卡所在槽位号。

P3500#slot 1

GPFA-1-1> enable

GPFA-1-1# configure terminal

B .进入 OLT 端口视图, interface gpon-olt 1/<id> id 表示 OLT 端口号。

GPFA-1-1(config-t)# interface gpon-olt 1/1

C .进入 ont 接口视图。

GPFA-1-1(config-t-if-gpon-olt-1/1)# ont 1

GPFA-1-1(config-if-gpon-ont-1/1/1)#

D .退出每个视图,输入 exit

# EGT358-P 注册在 slot 1 olt1 口的 ont1 接口,创建 4 vport 口。

GPFA-1-1(config-if-gpon-ont-1/1/1)#  virtual-port 1 encrypt disabled

GPFA-1-1(config-if-gpon-ont-1/1/1)#  virtual-port 2 encrypt disabled

GPFA-1-1(config-if-gpon-ont-1/1/1)#  virtual-port 3 encrypt disabled

GPFA-1-1(config-if-gpon-ont-1/1/1)#  virtual-port 4 encrypt disabled

# EGT358-P 注册在 slot 5 olt16 口的 ont64 接口,创建 4 vport 口。

GPFA-1-5(config-if-gpon-ont-1/16/64)#  virtual-port 1 encrypt disabled

GPFA-1-5(config-if-gpon-ont-1/16/64)#  virtual-port 2 encrypt disabled

GPFA-1-5(config-if-gpon-ont-1/16/64)#  virtual-port 3 encrypt disabled

GPFA-1-5(config-if-gpon-ont-1/16/64)#  virtual-port 4 encrypt disabled

(2)     创建flow模板(以1号槽为例,5号槽的配置相同)。

# GPON板的configure terminal视图创建4条flow模板映射vlan和vport端口。

GPFA-1-1(config-t)#gpon profile flow id 2 1 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 31 31 pri-bitmap 0xff vport 1

GPFA-1-1(config-t)#gpon profile flow id 2 2 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 32 32 pri-bitmap 0xff vport 2

GPFA-1-1(config-t)#gpon profile flow id 2 3 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 33 33 pri-bitmap 0xff vport 3

GPFA-1-1(config-t)#gpon profile flow id 2 4 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 34 34 pri-bitmap 0xff vport 4

(3)     创建tcont-bind模板。

· GPON板的configure terminal视图。

· 创建tcont-bind模板的数量需要与flow模板相对应,否则ont接口应用模板时会报错“flow profile”与“tcontbind profile mismatch”。

EGT358-P flow创建4条模板,tcont-bind与之关联也需要配置4条,并分别绑定4个vport口。

GPFA-1-1(config-t)#gpon profile tcont-bind id 2 v-port 1 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

GPFA-1-1(config-t)#gpon profile tcont-bind id 2 v-port 2 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

GPFA-1-1(config-t)#gpon profile tcont-bind id 2 v-port 3 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

GPFA-1-1(config-t)#gpon profile tcont-bind id 2 v-port 4 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

# 查看flow模板和tcont-bind模板可以使用命令行。

GPFA-1-1(config-t)# show configuration running gpon-profile

flow 模板和 tcont-bind 模板不能直接覆盖,创建模板前可以先查看模板配置是否只有默认配置,如果设备存在相同 id 的模板,新建模板会下发失败,需要删除旧模板并重新创建新模板

(4)     应用业务模板。

ont 接口下应用模板

GPFA-1-1(config-if-gpon-ont-1/1/1)#  service flow-profile 2 tcont-bind-profile 2

GPFA-1-5(config-if-gpon-ont-1/16/64)#  service flow-profile 2 tcont-bind-profile 2

3.5.4  UNI端口VLAN模式配置

· 根据 业务规划 的配置,ONU下挂终端上报流量时,报文都为untag模式,需要在UNI端口配置VLAN tag模式,给上送报文打上tag;如果ONU下挂设备上报流量都已携带VLAN tag,只配置模板和VLAN配置即可。

· 配置VLAN模式有两个方法:ont-vlan和port-vlan,如果业务不复杂,只涉及上送untag报文,推荐使用ont-vlan。

· 避免业务转发异常,ont-vlan和port-vlan配置二者选其一,不要重复或混合配置。

· 配置VLAN模式需要进入ont接口视图。

ont-vlan配置,EGT358-P注册在slot 1的olt1口的ont1接口。

# 配置uni1-7口收到的不带标签的报文打上对应的业务vlan标签,uni8口收到的报文自身携带标签vlan34,因此不需要配置。

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 1 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 31

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 2 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 31

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 3 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 31

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 4 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 31

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 5 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 31

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 6 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 32

GPFA-1-1(config-if-gpon-ont-1/1/1)# ont-vlan eth-uni 7 up-mode add-vid down-mode delete-vid up-pri 0 up-vid 33

3.5.5  全局VLAN 配置

在设备上需要将通过业务流量的端口加入对应VLAN,配置前请注意下面说明。

· P3500设备上,4个OLT接口统称为一个IS接口,如果要将OLT接口加入VLAN,直接加入IS接口即可。

¡ 比如slot 1的olt 1-4接口为is 1/1,olt 5-8接口为is 1/2,olt 9-13接口为is 1/3;olt 13-16接口为is 1/4。

¡ 比如slot 5的olt 1-4接口为is 5/1,olt 5-8接口为is 5/2,olt 9-13接口为is 5/3;olt 13-16接口为is 5/4。

· P3500配置VLAN相关配置在全局视图下配置。

(1)     创建VLAN。

# 创建vlan31、32、33、34。

P3500#configure l2 vlan vid 31 name 31

P3500#configure l2 vlan vid 32 name 32

P3500#configure l2 vlan vid 33 name 33

P3500#configure l2 vlan vid 34 name 34

(2)     将业务端口加入VLAN。

# 聚合1口加入vlan31,配置为tag模式。

P3500#configure l2 vlan interface trunk 1 vid 31 tag

# IS1/2口加入vlan31,配置为tag模式。

P3500#configure l2 vlan interface is 1/2 vid 31 tag

# IS5/4口加入vlan31,配置为tag模式。

P3500#configure l2 vlan interface is 5/4 vid 31 tag

# 聚合1口加入vlan32,配置为tag模式。

P3500#configure l2 vlan interface trunk 1 vid 32 tag

# IS1/2口加入vlan32,配置为tag模式。

P3500#configure l2 vlan interface is 1/2 vid 32 tag

# IS5/4口加入vlan32,配置为tag模式。

P3500#configure l2 vlan interface is 5/4 vid 32 tag

vlan33 34 配置不再举例,请参考 vlan31 32 进行修改,如果有将 XGE 口加入 VLAN 的需求,参见“ H3C GPON OLT 故障处理手册”中的“上行口加入 VLAN ”。

(3)     配置vlan translate

GPON系统上的流以GEM Port标识,交换机上需要将GEM Port映射到相应的VLAN,P3500支持配置VLAN转换表,完成相应的映射。

针对OLT接口ont接口下创建的vport口需要下发的配置。

# 注册在slot1,olt8,ont1接口的EGT358-P。

P3500#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 1 cvid 31 new-svid 31

P3500#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 2 cvid 32 new-svid 32

P3500#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 3 cvid 33 new-svid 33

P3500#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 4 cvid 34 new-svid 34

# 注册在slot5,olt16,ont64接口的EGT358-P。

P3500#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 1 cvid 31 new-svid 31

P3500#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 2 cvid 32 new-svid 32

P3500#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 3 cvid 33 new-svid 33

P3500#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 4 cvid 34 new-svid 34

3.5.6  主备冗余组网

主备冗余备份实现主备OLT实现备份的作用,当主用控制交换板发生异常导致主备切换,这个组网可以保证telnet连接不中断,并可以保证业务在1000ms内恢复。主备冗余备份组网只适用于3500设备。

图3-2 主备冗余备份组网图

1. 主备冗余组网说明

· 做主备冗余备份,需要确认设备版本是否升级至R1002及以上版本,请以官网最新发布版本为准。

· 核心设备两个接口分别与主备板卡的XGE接口相连且配置一致,请根据具体情况配置。

· 主备控制交换板的管理口分别与管理设备相连且配置一致,请根据具体情况配置。

· GPON设备与核心设备需要保存配置。

3.6  使用P3600 作为GPON OLT的配置步骤

3.6.1  业务规划

1)控制交换板上XGE1口和XGE2口分别与核心交换机连接做链路聚合。

2)ONU设备注册:

¡ EGT358-P-1注册在1号槽olt8口的ont1接口。

¡ EGT358-P-2注册在5号槽olt16口的ont64接口。

3)所有配置涉及:

¡ 端口聚合配置。

¡ 业务模板配置。

¡ UNI端口VLAN模式配置。

¡ 全局VLAN配置。

3.6.2  端口聚合配置

端口聚合配置举例,请按照实际组网是否有链路聚合配置需求,没有可以不参考。且不建议主备设备的控制交换板之间配置聚合,因为配置聚合后备用设备的控制交换板的以太业务接口也是UP状态,会导致对端设备上的两个聚合成员接口都是UP状态,未知单播进行负载分担会产生丢包。

# 创建聚合口-TRUNK口。

创建trunk 1 名称为1 成员端口为xge1和xge2,负载分担模式为 srcdstMAC ,要加入链路聚合组的接口要保证配置一致,聚合口才能创建成功。

P3600#configure l2 port trunk 1 1 interface "xge1,2" srcdstMAC

前面的1表示聚合口的索引值,参数范围1-6,删除/查询等操作都基于索引值。后面的 1 表示聚合口名称,可以配置字符,作为聚合口的描述。 rcdstMAC 为负载分担模式,其他模式可以通过按tab键查询。l2表示二层。

3.6.3  业务模板配置

· 根据组网判断,如果实际业务中不存在带宽限速等要求,可以简化配置,业务流模板可以只配置flow模板映射vport端口,tcont-bind模板关联flow流模板;关于模板的详细描述请参见“ H3C P3600 系列 GPON OLT 交换机 配置指导”中的“配置ONU业务”。

· 如果还涉及带宽限速等要求,关于带宽限速等功能的详细描述请参见“ H3C P3600 系列 GPON OLT 交换机 配置指导”中的“配置ONU业务”。

· 本小节配置基于 图3-1 ,如果业务更加复杂的,可以在下面配置模板的基础上酌情增加。

· 根据业务VLAN,在ont接口下创建4个vport虚端口,用来分流。

(1)     ont接口下创建vport端口。

# 进入 ont 接口视图步骤如下。

A .进入线卡板视图, slot <id> id 表示板卡所在槽位号。

P3600#Slot 1

P3600(Slot-1)#

B .进入 OLT 端口视图, interface gpon-olt 1/<id> id 表示 OLT 端口号。

P3600(Slot-1)# interface gpon-olt 1/1

C .进入 ont 接口视图。

P3600(Slot-1/if-gpon-olt-1/1)#ont 1

P3600(Slot-1/if-gpon-olt-1/1/1)#

D .退出每个视图,输入 exit

# EGT358-P注册在slot 1的olt1口的ont1接口,创建4个vport口。

P3600(Slot-1/if-gpon-olt-1/1/1)#  virtual-port 1 port unlock

P3600(Slot-1/if-gpon-olt-1/1/1)#  virtual-port 2 port unlock

P3600(Slot-1/if-gpon-olt-1/1/1)#  virtual-port 3 port unlock

P3600(Slot-1/if-gpon-olt-1/1/1)#  virtual-port 4 port unlock

# EGT358-P注册在slot 5的olt16口的ont64接口,创建4个vport口。

P3600(Slot-5/if-gpon-olt-1/16/64)#  virtual-port 1 port unlock

P3600(Slot-5/if-gpon-olt-1/16/64)#  virtual-port 2 port unlock

P3600(Slot-5/if-gpon-olt-1/16/64)#  virtual-port 3 port unlock

P3600(Slot-5/if-gpon-olt-1/16/64)#  virtual-port 4 port unlock

# 创建flow模板(以1号槽为例,5号槽的配置相同)。

# 创建4条flow模板映射vlan和vport端口。

P3600(Slot-1)# gpon profile flow id 2 1 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 31 31 pri-bitmap 0xff vport 1

P3600(Slot-1)# gpon profile flow id 2 2 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 32 32 pri-bitmap 0xff vport 2

P3600(Slot-1)# gpon profile flow id 2 3 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 33 33 pri-bitmap 0xff vport 3

P3600(Slot-1)# gpon profile flow id 2 4 name flow_2 uni-type ethernet-uni uni-bitmap 0xff upmap-type vlanId 34 34 pri-bitmap 0xff vport 4

(2)     创建tcont-bind模板。

创建tcont-bind模板的数量需要与flow模板相对应,否则ont接口应用模板时会报错“flow profile”与“tcontbind profile mismatch”。

# EGT358-P flow创建4条模板,tcont-bind与之关联也需要配置4条,并分别绑定4个vport口。

P3600(Slot-1)# gpon profile tcont-bind id 2 v-port 1 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

P3600(Slot-1)# gpon profile tcont-bind id 2 v-port 2 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

P3600(Slot-1)# gpon profile tcont-bind id 2 v-port 3 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

P3600(Slot-1)# gpon profile tcont-bind id 2 v-port 4 name tcontbind_1 vportsvc-id 1 tcont-id 1 tcontsvc-id 1

# 查看flow模板和tcont-bind模板可以使用命令行:

P3600(Slot-1)# brief-show slot 1 gpon profile

flow 模板和 tcont-bind 模板不能直接覆盖,创建模板前可以先查看模板配置是否只有默认配置。如果设备存在相同 id 的模板,新建模板会下发失败,需要删除旧模板并重新创建新模板

(3)     应用业务模板。

# ont 接口下应用模板

P3600(Slot-1/if-gpon-olt-1/1/1)# service flow-profile 2 tcont-bind-profile 2 svc-type m_p

P3600(Slot-5/if-gpon-olt-1/16/64)# service flow-profile 2 tcont-bind-profile 2 svc-type m_p

3.6.4  UNI 端口VLAN模式配置

· 根据 业务规划 的配置,ONU下挂终端上报流量时,报文都为untag模式,需要在UNI端口配置VLAN tag模式,给上送报文打上tag;如果ONU下挂设备上报流量都已携带VLAN tag,只配置模板和VLAN配置即可。

· 配置VLAN模式有两个方法:ont-vlan和port-vlan,具体推荐使用port-vlan。

· 避免业务转发异常,ont-vlan和port-vlan配置二者选其一,不要重复或混合配置。

· 配置VLAN模式需要进入ont接口视图。

ont-vlan配置,EGT358-P注册在slot 1的olt1口的ont1接口。

# 配置uni1-7口收到的不带标签的报文打上对应的业务VLAN标签,uni8口收到的报文自身携带标签vlan34,因此不需要配置。

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 1 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 1 rule 1 untag add-vid inner-pri 0 inner-vid 31

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 2 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 2 rule 1 untag add-vid inner-pri 0 inner-vid 31

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 3 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 3 rule 1 untag add-vid inner-pri 0 inner-vid 31

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 4 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 4 rule 1 untag add-vid inner-pri 0 inner-vid 31

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 5 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 5 rule 1 untag add-vid inner-pri 0 inner-vid 31

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 6 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 6 rule 1 untag add-vid inner-pri 0 inner-vid 32

P3600(Slot-1/if-gpon-olt-1/1/1)#  port-vlan 7 downstream inverse-upstream intpid 0x8100 outtpid 0x8100

P3600(Slot-1/if-gpon-olt-1/1/1)# port-vlan 7 rule 1 untag add-vid inner-pri 0 inner-vid 33

3.6.5  全局VLAN 配置

在设备上需要将通过业务流量的端口加入对应VLAN,配置前请注意下面说明。

· P3600设备上,XGFCA/XGFSA板卡每两个OLT接口统称为一个IS接口,GPFB板卡每4个OLT接口统称为一个IS接口; IS接口缺省透传VLAN。

¡ 比如slot1插入的GPFB板卡,olt 1-4接口为is 1/2,olt 5-8接口为is 1/2,olt 9-13接口为is 1/3;olt 13-16接口为is 1/4。

¡ 比如slot 5插入的XGFCA或XGFSA板卡,olt 1-2接口为is 5/1,olt 3-4接口为is 5/2,以此类推到is 5/8。

· P3600配置VLAN相关配置在全局视图下配置。

(1)     创建VLAN

# 创建vlan31、32、33、34。

P3600#configure l2 vlan vid 31 name 31

P3600#configure l2 vlan vid 32 name 32

P3600#configure l2 vlan vid 33 name 33

P3600#configure l2 vlan vid 34 name 34

(2)     将业务端口加入VLAN。

# 聚合1口加入vlan31,配置为tag模式。

P3600#configure l2 vlan interface trunk 1 vid 31 tag

vlan33 34 配置不再举例,请参考 vlan31 32 进行修改,如果有将 XGE 口加入 VLAN 的需求,命令行为: configure l2 vlan interface xge 1 vid 31 tag

(3)     配置vlan-translate。

GPON系统上的流以GEM Port标识,交换机上需要将GEM Port映射到相应的VLAN,P3600支持配置VLAN转换表,完成相应的映射。

针对OLT接口ont接口下创建的vport口需要下发的配置。

# 注册在slot1,olt8,ont1接口的EGT358-P。

P3600#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 1 svid 31 new-svid 31

P3600#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 2 svid 32 new-svid 32

P3600#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 3 svid 33 new-svid 33

P3600#configure l2 vlan translate slot 1 port 8 ont 1 virtual-port 4 svid 34 new-svid 34

# 注册在slot5,olt16,ont64接口的EGT358-P。

P3600#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 1 svid 31 new-svid 31

P3600#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 2 svid 32 new-svid 32

P3600#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 3 svid 33 new-svid 33

P3600#configure l2 vlan translate slot 5 port 16 ont 64 virtual-port 4 svid 34 new-svid 34

· 《H3C P3500系列GPON OLT交换机 配置指导》中的“GPON配置”

· 《H3C P3500系列GPON OLT交换机 命令参考》中的“系统命令”

· 《H3C P3600系列GPON OLT交换机 配置指导》中的“GPON配置”

· 《H3C P3600系列GPON OLT交换机 命令参考》中的“系统命令”