1.OLT登录用户名密码
登录用户名为root,登录密码为admin;
2.查看OLT板卡信息
HW#display board 0
-------------------------------------------------------------------------
SlotID BoardName Status SubType0 SubType1 Online/Offline
-------------------------------------------------------------------------
0 H807GPBD Normal
1 H808EPSD Normal
2
3
4
5
6 H802SCUN Standby_failed Offline
7 H802SCUN Active_normal
8 H802X2CS Normal
9 H801GICF Normal
10
11
12
-------------------------------------------------------------------------
由以上信息可知GPON板卡的槽位号为0/0,上联板卡的槽位号为0/7
3.新增一个DBA模板
HW(config)#dba-profile add profile-name zh type4 max 1000000
查看新建的模板信息:
HW(config)#display dba-profile profile-name zh
-----------------------------------------------------------------
Profile-name : zh
Profile-ID: 17
type: 4
Bandwidth compensation: No
Fix-delay: No
Fix(kbps): 0
Assure(kbps): 0
Max(kbps): 1000000
Additional-bandwidth: -
Best-effort-priority: 0
Best-effort-weight: 128
bind-times: 1
-----------------------------------------------------------------
4.创建ONT线路模板
HW(config)#ont-lineprofile gpon profile-name zh
HW(config-gpon-lineprofile-21)#tcont 1 dba-profile-name zh
HW(config-gpon-lineprofile-21)#gem add 1 eth tcont 1
HW(config-gpon-lineprofile-21)#gem mapping 1 0 vlan 100
HW(config-gpon-lineprofile-21)#commit
查看新建的线路模板信息:
HW(config)#display ont-lineprofile gpon profile-name zh
------------------------------------------------------------------------------
Profile-ID :21
Profile-name :zh
Access-type :GPON
------------------------------------------------------------------------------
FEC upstream switch :Disable
OMCC encrypt switch :Off
Qos mode :PQ
Mapping mode :VLAN
TR069 management :Disable
TR069 IP index :0
------------------------------------------------------------------------------
<T-CONT 0> DBA Profile-ID:1
<T-CONT 1> DBA Profile-ID:17
<Gem Index 1>
--------------------------------------------------------------------
|Serv-Type:ETH |Encrypt:off |Cascade:off |GEM-CAR:- |
|Upstream-priority-queue:0 |Downstream-priority-queue:- |
--------------------------------------------------------------------
Mapping VLAN Priority Port Port Bundle Flow Transparent
index type ID ID CAR
--------------------------------------------------------------------
0 100 - - - - - -
--------------------------------------------------------------------
------------------------------------------------------------------------------
Notes: Run the display traffic table ip command to query
traffic table configuration
------------------------------------------------------------------------------
Binding times :1
------------------------------------------------------------------------------
5.创建ONT服务模板
HW(config)#ont-srvprofile gpon profile-name zh
HW(config-gpon-srvprofile-16)#ont-port pots 1 eth 2
HW(config-gpon-srvprofile-16)#port vlan eth 1 100
HW(config-gpon-srvprofile-16)#port vlan eth 1 100
HW(config-gpon-srvprofile-16)#commit
查看新增的ONT服务模板信息:
HW(config)#display ont-srvprofile gpon profile-name zh
6.PON口下接一个HGU进行注册
a.开启OLT PON2口自动发现ONT功能
HW#config
HW(config)#interface gpon 0/0
HW(config-if-gpon-0/0)#port 2 ont-auto-find enable
b.查看下接ONT自动发现信息
HW(config-if-gpon-0/0)#display ont autofind 2
c.ONT注册
HW(config-if-gpon-0/0)#ont add 2 sn-auth ABCD-35117228 omci ont-lineprofile-name zh ont-srvprofile-name zh
对ONT进行注册的同时也将线路模板和服务模板绑定到ONT上
d.基于SN查看ONT注册信息
HW(config)#display ont info by-sn ABCD-35117228
7.对ONT添加service port
HW(config)#service-port 6666 vlan 100 gpon 0/0/2 ont 4 gemport 1 multi-service user-vlan 100 tag-transform transparent
8.配置上联端口vlan
HW(config)#port vlan 100 0/7 3
查看上联端口vlan配置:
HW(config)#display port vlan 0/7/3
---------------------------------------
1 10 100 1113 4004
---------------------------------------
Total: 5
Native VLAN: 10
业务实测:在HGU本地配置WAN连接,对应的vlan为100,业务可通
如果测试ONT为SFU,可对SFU端口进行vlan配置:
HW(config-if-gpon-0/0)#ont port native-vlan 2 4 eth 1 vlan 123 priority 1
9.修改ONT绑定的模板信息
HW(config-if-gpon-0/0)#ont modify 2 4 ont-lineprofile-name zh ont-srvprofile-name zh
10.对ONT配置限速
a.新建一条限速模板
HW(config)#traffic table ip name zh index 66 cir 20000 cbs 1024 pir 30000 pbs 30000 color-mode color-blind fix 0 color-policy dei priority 0 Priority-policy Tag-In-Package
查看新增的限速模板信息:
HW(config)#display traffic table ip name zh
b.将限速模板绑定到ONT service port上
注意:如果ONT对应的业务service port配置已下发,须先删除service port配置后再进行限速模板绑定
HW(config)#undo service-port 6666
将限速模板绑定到service port上;
HW(config)#service-port 6666 vlan 100 gpon 0/0/2 ont 4 gemport 1 multi-service user-vlan 100 tag-transform transparent inbound traffic-table name zh outbound traffic-table name zh
实测限速生效。
11.给ONT下发TR069参数
a.创建一条TR069模板
HW(config)#ont tr069-server-profile add profile-id 6 profile-name zh url http://11.22.33.44:1234 user zh 123456 auth-realm 6
查看新增的TR069模板信息;
HW(config)#display ont tr069-server-profile profile-id 6
-----------------------------------------------------------------------
Profile-id : 6
Profile-name : zh
URL : http://11.22.33.44:1234
User Name : zh
Realm : 6
-----------------------------------------------------------------------
Binding times : 0
-----------------------------------------------------------------------
b.将TR069模板绑定到ONT上
HW(config-if-gpon-0/0)#ont tr069-server-config 3 5 profile-id 6
此时在ONT本地web界面中查看TR069参数获取成功。