1. 程式人生 > >MA5680T配置指導

MA5680T配置指導

MA5680T配置指導(適用於V800R006C02版本)
《1-常用命令》
//登陸使用者名稱root,密碼 admin
MA5680T>enable //開啟特權EXEC
MA5680T#config //進入終端配置模式
MA5680T(config)#sysname SJZ-HW-OLT-1 //裝置命名 (一般為開局配置)
MA5680T(config)#switch language-mode //切換語言,可以在中英文語言中轉換。

MA5680T (config) #terminal user name //新增操作使用者huawei
User Name(length<6,15>):huawei //設定使用者名稱
User Password(length<6,15>):huawei123
//要求輸入密碼.輸入部分實際為不可見的

Confirm Password(length<6,15>): huawei123 //要求再次確認一遍密碼
User profile name(<=15 chars)[root]:root //輸入使用者管理級別
User’s Level:
1. Common User 2. Operator 3. Administrator:3 //選擇使用者許可權
Permitted Reenter Number(0–4):1 //設定此使用者名稱可重複登入次數,一般要求為1次
User’s Appended Info(<=30 chars):HuaweiAdm //新增描述,可不設定。
Adding user succeeds
Repeat this operation? (y/n)[n]:
MA5680T(config)#display board 0 //檢查裝置單板狀態,此命令最常用。

SlotID BoardName Status SubType0 SubType1 Online/Offline

0
1 H802EPBC Normal
2 H802EPBC Normal
3 H802EPBC Normal
4 H802EPBC Auto_find
5
6
7 H801SCUL Active_normal
8 H801SCUL Standby_normal
9
10
11
12
13
14
15
16
17 H801GICF Normal
18 H801X2CA Normal
19
19
20

MA5680T(config)#board confirm 0 //對於自動發現的單板,需要確認後,單板才能使用。
//對於未確認的單板,單板硬體執行指示燈正常,但是業務埠無法工作。
《2-開局配置命令》
MA5680T (config)#vlan 99 smart //增加裝置管理VLAN (一般為開局配置)
MA5680T (config)#vlan 10 smart //增加語音業務VLAN (一般為開局配置)
MA5680T (config)#port vlan 99 0/18 0 //將管理VLAN透傳到上行埠. (一般為開局配置)
MA5680T (config)#port vlan 10 0/17 1 //將語音業務VLAN透傳到上行埠(一般為開局配置)
// 0/18 0 意思為第0框(預設框號) / 第18槽位(槽位編號,一般在機框上都有標出) 0埠(上行口編號)
MA5680T (config)#vlan desc 99 description NMS VLAN //新增vlan的描述, (一般為開局配置)
MA5680T (config)#vlan desc 10 description NGN-VPN
//配置裝置管理地址,(一般為開局配置)
MA5680T (config)#interface vlanif 99
MA5680T (config-if-vlanif99)#ip address 172.16.21.2 255.255.255.0
MA5680T (config-if-vlanif99)#quit
MA5680T (config)#ip route-static 0.0.0.0 0.0.0.0 172.16.21.1 //配置裝置預設路由 (一般為開局配置)
MA5680T (config)#ip route-static 10.0.0.0 255.0.0.0 10.50.42.1 //配置語音部分路由 (一般為開局配置)
//設定上行埠速率以及雙工模式 (一般為開局配置)
MA5680T (config)#interface giu 0/17
MA5680T (config-if-giu-0/17)#speed 0 1000 //配置埠速率,GE口只能配置成1000, 10GE口只能配置成10000
MA5680T (config-if-giu-0/17)#speed 1 1000
MA5680T (config-if-giu-0/17)#duplex 0 full //配置雙工模式,half為半雙工,full為全雙工
MA5680T (config-if-giu-0/17)#duplex 1 full
MA5680T (config-if-giu-0/17)#auto-neg 0 disable //配置自協商模式,disable為禁止自協商,enable為允許
MA5680T (config-if-giu-0/17)#auto-neg 1 disable
MA5680T (config-if-giu-0/17)#quit
//在終端配置模式下新增網管SNMP引數
snmp-agent community read public //設定讀引數
snmp-agent community write private //設定寫引數
snmp-agent sys-info contact HUAWEI TEL:4008302118 //設定SNMP聯絡資訊
snmp-agent sys-info location SHIJIAZHUANG UNIONCOM NETWORKSTATIONM //設定SNMP本地資訊
snmp-agent sys-info version v1 //設定SNMP版本資訊
snmp-agent target-host trap-hostname N2000SERVER address 172.16.255.2 udp-port 161 trap-paramsname private
//設定網管引數,N2000SERVER為網管計算機名稱,172.16.255.2為網管地址。通訊埠一般為161,讀串為private
//以下為新增的兩個綜合網管的管理引數。
snmp-agent target-host trap-hostname public.61.182.202.57 address 61.182.202.57 trap-paramsname public
snmp-agent target-host trap-hostname public.61.182.202.46 address 61.182.202.46 trap-paramsname public
snmp-agent target-host trap-paramsname private v1 securityname private
snmp-agent target-host trap-paramsname public v1 securityname public
snmp-agent trap enable standard //啟用SNMP 標準 trap報文功能

//檢視EMU電源監控資訊.如果沒有需要新建系統環境監控模組
MA5680T (config)# display emu 0
MA5680T (config)# emu del 0 //如果EMU電源模組新增不正確,需要刪除EMU重新新增。此為刪除命令
Are you sure to delete this EMU?(y/n)[n]:y

MA5680T (config)# emu add 0 FAN 0 1 H801FCBC //新建EMU環境監控電源模組.
MA5680T (config)#display emu 0 //EMU被正確裝入的情況下,檢視後顯示資訊如下:
EMU ID: 0

EMU name : H801FCBC
EMU type : FAN
Used or not : Used
EMU state : Normal
Frame ID : 0
Subnode : 1

MA5680T (config)#interface emu 0 //進入電源模組0.
MA5680T (config-if-fan-0)# fan speed mode automatic //修改電源風扇速度.
MA5680T (config-if-fan-0)#quit
//配置業務單板資料,需要開啟ONU自動發現功能.否則下掛裝置之後無法在OLT上檢視到新發現的裝置。.
MA5680T (config)#interface epon 0/1 //進入EPON命令模式
MA5680T (config-if-epon-0/1)#port 0 ont-auto-find enable // 開啟1槽位各業務埠的ONT自動發現功能
MA5680T (config-if-epon-0/1)#port 1 ont-auto-find enable
MA5680T (config-if-epon-0/1)#port 2 ont-auto-find enable
MA5680T (config-if-epon-0/1)#port 3 ont-auto-find enable
MA5680T (config-if-epon-0/1)#quit
MA5680T (config)#interface gpon 0/2 //進入GPON命令模式
MA5680T (config-if-gpon-0/2)#port 0 ont-auto-find enable // 開啟OLT2槽位單板各埠的ONT自動發現功能
MA5680T (config-if-gpon-0/2)#port 1 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 2 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 3 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 4 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 5 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 6 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#port 7 ont-auto-find enable
MA5680T (config-if-gpon-0/2)#quit
……
//設定完成進行儲存
MA5680T (config)#save //儲存配置資訊。 切記操作完成之後儲存。
《3-業務配置命令》
第一步:建立業務vlan,並在上行口作透傳
MA5680T (config)#vlan 2223 smart //增加業務VLAN。所有業務vlan均採用SMART VLAN屬性
MA5680T (config)#vlan 200 smart //增加專線VLAN
MA5680T (config)#port vlan 2223 0/18 0 //將業務VLAN透傳到上行埠
MA5680T (config)#port vlan 200 0/18 0 //將專線VLAN透傳到上行口
//如果不確定上行口,可以通過以下命令查詢上行口配置進行參考。
MA5680T(config)# display current-configuration section vlan //檢視配置檔案中的VLAN配置,參考埠配置部分
……
Port vlan xxx 0/18 0
……
MA5680T (config)#vlan desc 2223 description 604-MianSiXiaoQu //新增業務描述
第二步:檢視DBA模板,如果沒有,需要建立
MA5680T (config)#display dba-profile all //檢視OLT的 DBA能力集模板.
//1-9 為系統自帶的DBA能力集模板。
//DBA是基於整個ONT排程的,需根據ONT的業務型別和使用者數選擇適合的頻寬型別和頻寬大小。
//注意fix頻寬和assure頻寬之和不能大於PON介面總頻寬。
關於開局DBA模板的選擇
當前裝置預設的dba模板是保證10M,最大15M,這對於一般的ONU裝置以及通用場景,是沒有問題的,但是對於某些特殊場景,需要注意DBA模板的設定。
1、 高密度裝置:如UA5000或者MA5600使用EPON上行的,裝置使用者數超過300以上。
2、 同時線上使用者較多的:如MA5616裝置,最大接入使用者128個,而同時線上使用者超過90個。
3、 高頻寬需求的:部分地方的使用者對上行頻寬需求較多(提供下載等)
上述場景對於15M的裝置上行總頻寬已經明顯不足。
針對上述問題,對DBA模板的配置做如下要求:
1) 一般場景下,配置dba模板為type3,保證頻寬20M,最大頻寬50M
2) 包括但不限於上述場景下,配置dba模板也為type3,保證頻寬30M,最大頻寬100M
//新增自定義的dba模板.這裡分別設定1M,2M,4M,6M,8M,10M,20M,30M,50M,100M的能力集模板,方便日後使用.
dba-profile add profile-id 11 profile-name 1M type3 assure 1024 max 2048
dba-profile add profile-id 12 profile-name 2M type3 assure 2048 max 4096
dba-profile add profile-id 14 profile-name 4M type3 assure 4096 max 8192
dba-profile add profile-id 16 profile-name 6M type3 assure 6144 max 12288
dba-profile add profile-id 18 profile-name 8M type3 assure 8192 max 16384
dba-profile add profile-id 10 profile-name 10M type3 assure 10240 max 20480
dba-profile add profile-id 20 profile-name 20M type3 assure 20480 max 40960
dba-profile add profile-id 30 profile-name 30M type3 assure 30720 max 61440
dba-profile add profile-id 50 profile-name 50M type3 assure 51200 max 102400
dba-profile add profile-id 100 profile-name 100M type3 assure 102400 max 204800
//型別(type)分為5種,分別是type1,type2,type3,type4,type5.其中:
//type1 為固定頻寬模式;
//type2 為保證頻寬模式;
//type3 為保證頻寬的同時設定最大頻寬值;
//type4 為僅設定最大頻寬模式;
//type5 為3種模式的綜合,即設定最大頻寬,在保證頻寬的同時採用固定頻寬模式。
MA5680T (config)#display dba-profile profile-id 20 //檢視DBA模板20

Profile-name : 20M
Profile-ID: 20
type: 3
Bandwidth compensation: No
Fix(kbps): 0
Assure(kbps): 20480
Max(kbps): 40960
bind-times: 1

MA5680T (config)# dba-profile delete profile-id 20 //刪除DBA模板,前提是此DBA模板沒有被任何線路模板繫結。
MA5680T (config)# dba-profile modify profile-id 20 //修改DBA模板,前提是此DBA模板沒有被任何線路模板繫結。

第三步:檢視線路模板,如果沒有,需要建立
MA5680T(config)#display ont-lineprofile epon all //檢視EPON業務線路模板
MA5680T(config)#display ont-lineprofile gpon all //檢視GPON業務線路模板
//系統預設沒有線路模板,需建立線路模板1並進入到線路模板模式,系統最多支援4096個線路模板
//每個模板均可被ONU終端重複繫結。
MA5680T(config)#ont-lineprofile epon profile-name MDU profile-id 1
MA5680T(config-epon-lineprofile-1)#quit
//新增線路模板(編號)1.不設定任何引數,系統會預設使用DBA模板9繫結此線路模板。ONU開局繫結此模板。
//新增使用者自定義的EPON線路模板,主要針對實現不同業務的終端使用
MA5680T(config)#ont-lineprofile epon profile-id 100 profile-name 100M //建立100M線路模板,繫結DBA模板100
MA5680T(config-epon-lineprofile-100)#llid dba-profile-id 100
//線路模板繫結DBA模板,支援下行加密,系統支援aes-128,triple-churining兩種加密方式,預設加密關閉。
MA5680T(config-epon-lineprofile-100)#commit //注意,新增的線路模板需要提交命令才被接受並儲存下來.
MA5680T(config-epon-lineprofile-100)#quit
//按照以上方式新增其他線路模板:分別新增1M,2M,4M,6M,8M,10M,20M,30M,50M線路模板
//設定10M模板,保證10M頻寬。
MA5680T(config)#ont-lineprofile epon profile-name 10M profile-id 10
MA5680T(config-epon-lineprofile-10)#llid dba-profile-id 10
MA5680T(config-epon-lineprofile-10)#commit
MA5680T(config-epon-lineprofile-10)#quit
……
MA5680T(config)#ont-lineprofile epon profile-name 50M profile-id 50
MA5680T(config-epon-lineprofile-50)#llid dba-profile-id 50
MA5680T(config-epon-lineprofile-50)#commit
MA5680T(config-epon-lineprofile-50)#quit
Interface gpon 0/1
Display ont info 0 5
//新增GPON線路模板,這裡針對普通業務的線路模板,採用優先順序配置的方式實現.

嚴格優先順序佇列排程
給每個佇列賦予不同的優先順序,每次排程時,最先對具有最高優先順序的非空佇列中的報文進行服務。嚴格優先順序佇列排程嚴格按照優先順序從高到低的次序優先發送較高優先順序佇列中的報文,當較高優先順序佇列為空時,再發送較低優先順序佇列中的報文。
Priority引數: VLAN優先順序
0: Best effort 1: Background 2: Spare 3: Excellent effort 4: Controlled load 5: Video 6: Voice 7: Network control
MA5680T(config)# ont-lineprofile gpon profile-name gpon-onu profile-id 20
MA5680T(config-gpon-lineprofile-20)# mapping-mode priority //Gem port埠對映為優先順序對映(預設為vlan對映)
MA5680T(config-gpon-lineprofile-20)#tcont 1 dba-profile-id 2 // Tcont 1用於管理通道,和dba模板2繫結
MA5680T(config-gpon-lineprofile-20)# tcont 2 dba-profile-id 1 // Tcont 2用於語音通道,和dba模板1繫結
MA5680T(config-gpon-lineprofile-20)# tcont 3 dba-profile-id 50 // Tcont 3用於資料業務,和dba模板50繫結
MA5680T(config-gpon-lineprofile-20)# gem add 0 eth tcont 1 priority-queue 5 //建立Gem port,繫結相應的Tcont通道。
MA5680T(config-gpon-lineprofile-20)# gem add 1 eth tcont 2 priority-queue 6
MA5680T(config-gpon-lineprofile-20)# gem add 2 eth tcont 3 priority-queue 0
MA5680T(config-gpon-lineprofile-20)# gem mapping 0 0 priority 5 //建立GEM Port埠對映,這裡使用優先順序對映。
MA5680T(config-gpon-lineprofile-20)# gem mapping 1 0 priority 6
MA5680T(config-gpon-lineprofile-20)# gem mapping 2 0 priority 0
MA5680T(config-gpon-lineprofile-20)#commit
MA5680T(config-gpon-lineprofile-20)#quit

//新增GPON線路模板,這裡針對FTTH業務的線路模板
MA5680T(config)# ont-lineprofile gpon profile-name hg8240 profile-id 24
MA5680T(config-gpon-lineprofile-24)# mapping-mode vlan //設定對映模式為vlan對映
MA5680T(config-gpon-lineprofile-24)# qos-mode gem-car //設定qos模式為gem-car方式
//繫結tcont和dba模板,預設情況下,tcont 0和dba模板1繫結,不需配置。
MA5680T(config-gpon-lineprofile-24)# tcont 1 dba-profile-id 2 // Tcont 1用於管理通道,和dba模板2繫結
MA5680T(config-gpon-lineprofile-24)# tcont 2 dba-profile-id 2 // Tcont 2用於語音通道,和dba模板2繫結
MA5680T(config-gpon-lineprofile-24)# tcont 3 dba-profile-id 10 // Tcont 3用於資料業務,和dba模板10繫結
//TCONT0僅用於OMCI管理使用。如果管理業務和其他業務使用Tcont0,會導致業務不通。
//HG8240可以實現寬窄帶業務,配置3條TCONT通道,分別承載不同的業務。1用於管理,2用於語音,3用於資料。
MA5680T(config-gpon-lineprofile-24)# gem add 0 eth tcont 1 gem-car 6 //新增GEM PORT,使用流量模板6
MA5680T(config-gpon-lineprofile-24)# gem add 1 eth tcont 2 gem-car 6
MA5680T(config-gpon-lineprofile-24)# gem add 2 eth tcont 3 gem-car 6
//設定對映關係,建立業務通道和GEM PORT的對映。GEMPORT 1 對應語音業務,GEMPORT 2 對應寬頻業務。
MA5680T(config-gpon-lineprofile-24)# gem mapping 0 0 vlan 100 //設定對映關係,這裡的GEMPORT 0 用於管理。
MA5680T(config-gpon-lineprofile-24)# gem mapping 1 0 vlan 10
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 0 vlan 11
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 1 vlan 12
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 2 vlan 13
MA5680T(config-gpon-lineprofile-24)# gem mapping 2 3 vlan 14
MA5680T(config-gpon-lineprofile-24)# commit
MA5680T(config-gpon-lineprofile-24)#quit
//檢視線路模板和業務模板配置:
MA5680T(config)#display ont-lineprofile epon profile-id 50
MA5680T(config)#display ont-lineprofile gpon profile-id 24
//刪除線路模板或業務模板
MA5680T(config)#undo ont-lineprofile epon profile-id 50 //刪除線路模板50
MA5680T(config)#undo ont-lineprofile gpon profile-name hg8240 //刪除線路模板hg8240
第四步:檢視業務模板,如果沒有,需要建立
業務模板是針對ONT的上的業務,涉及到裝置介面相關的配置。對於MA561X和MA562X這類SNMP管理模式的終端涉及介面相關配置一般在裝置上去完成,因此不需配置業務模板。而對於81X,82X系列等家庭終端裝置則需要配置相關的業務模板。
MA5680T(config)#display ont-srvprofile epon all //查詢ONU業務模板。
Failure: The service profile does not exist
//依據業務需求的不同,需要建立唯一的EPON業務模板與之繫結。
MA5680T(config)#ont-srvprofile epon profile-id 1 profile-name SJZ_CheGuanSuo_H810e
MA5680T(config-epon-srvprofile-1)#ont-port eth 1
//H810E為1個網口,設定引數為1。若是H813E為4個網口,此處引數設定為4。
{ |pots|tdm-type|tdm }:
Command:
ont-port eth 1
MA5680T(config-epon-srvprofile-1)#port vlan eth 1 200 //將專線VLAN繫結到終端埠
MA5680T(config-epon-srvprofile-1)#commit //交之後生效
MA5680T(config-epon-srvprofile-1)#quit
//新增GPON業務模板,這裡針對HG850A/HG8240為例配置相應的業務模板
MA5680T(config)# ont-srvprofile gpon profile-name hg8240 profile-id 24
MA5680T(config-gpon-srvprofile-24)# ont-port pots 2 eth 4 //設定中斷埠數量。850A/8240固定提供4FE+2POTS
MA5680T(config-gpon-srvprofile-24)# multicast-forward untag
//劃分埠vlan,HG850/HG8240的管理報文和語音報文通過IPHOST虛擬埠承載
MA5680T(config-gpon-srvprofile-24)# port vlan iphost 100
MA5680T(config-gpon-srvprofile-24)# port vlan iphost 10
//劃分埠vlan,ONT的eth用於承載寬頻業務,如果採用雙層vlan,各埠和vlan對應。
MA5680T(config-gpon-srvprofile-24)# port vlan eth 1 11
MA5680T(config-gpon-srvprofile-24)# port vlan eth 2 12
MA5680T(config-gpon-srvprofile-24)# port vlan eth 3 13
MA5680T(config-gpon-srvprofile-24)# port vlan eth 4 14
MA5680T(config-gpon-srvprofile-24)# commit
MA5680T(config-gpon-srvprofile-24)# quit
MA5680T(config)# undo ont-srvprofile epon profile-id 1 //刪除業務模板
第五步:檢查SNMP模板引數,檢查ONU註冊情況。
MA5680T(config)#display snmp-profile all //檢視olt的SNMP能力集模板.沒有需要新增
注 :對於HG系列以及MA5606T,UA5000等通過OAM管理模式配置的,不需要考慮此引數。
對於MA561X和MA562X,因為是通過SNMP管理模式配置的,需要設定此引數,可以遠端下達SNMP網管引數。
//新增olt的SNMP能力集模板
MA5680T(config)#snmp-profile add profile-id 1 profile-name n2000 v1 public private 172.16.255.2 161 n2000
//檢視自動返現的ONU資訊:
MA5680T(config)#display ont autofind all //檢視OLT自動發現的ONU資訊.

Number : 1
F/S/P : 0/2/1
Ont Mac : 001D-6A3C-6614
Password :
VenderID : HWTC
Ontmodel : 810e
OntSoftwareVersion : V100R001C01B020
OntHardwareVersion : HG810e
Ont autofind time : 2010-06-06 15:01:52

Number : 2
F/S/P : 0/1/0
Ont Mac : 0000-0000-0000
Password : 00000000000000000000000000000000
VenderID : HWTC
Ontmodel : 5620
OntSoftwareVersion : V8R307 C00
OntHardwareVersion : MA5620
Ont autofind time : 2010-06-09 00:17:17

Number : 3
F/S/P : 0/4/0
Ont Mac : 0018-82EB-51B3
Password : 00000000000000000000000000000000
VenderID : HWTC
Ontmodel : MDU
OntSoftwareVersion : V8R306C01B053
OntHardwareVersion : MA5616
Ont autofind time : 2010-6-31 16:40:54

The number of EPON autofind ONT is 3
注 : 對於某些新開局的OLT,要特別注意是否開局啟用了ONU自動發現功能.否則始終無法檢視到上報的ONU資訊.見開局配置

第六步:新增業務資料

情景一:EPON組網,下掛ONU終端。
MA5680T(config)#interface epon 0/1 //進入到EPON單板模式。
//註冊或者確認ONU終端,可以實現離線新增資料,但要清楚裝置上聯埠和地址碼資訊。
MA5680T (config-if-epon-0/1)# ont add 0 0 mac-auth 0000-0000-0000 snmp ont-lineprofile-id 1 des To_604MianSiXQ
或:
MA5680T (config-if-epon-0/1)# ont confirm 0 ontid 0 mac-auth 0000-0000-0000 snmp ont-lineprofile-id 1
//依據裝置型別不同,新增ONU的具體引數不同。

EPON MA562x/MA561x系列裝置:
ont add 0 0 mac-auth 0000-0000-0000 snmp ont-lineprofile-id 1 des To_
EPON MA5606T系列裝置/H81x系列裝置
ont add 0 0 mac-auth 0000-0000-0000 oam ont-lineprofile-id 1 des To_
UA5000系列走epon上行
ont add 0 0 mac-auth 0000-0000-0000 oam ont-lineprofile-id 1 des To_
//新增SNMP引數,(凡通過SNMP管理方式註冊的ONU終端,需要遠端下發SNMP)
ont snmp-profile 0 1 profile-id 1
//配置ONU的管理資訊,(凡通過SNMP管理方式註冊的ONU終端,需要配置遠端管理)
ont ipconfig 0 1 ip-address 172.16.21.3 mask 255.255.255.0 gateway 172.16.21.1 manage-vlan 99 priority 0
//退出PON板模式
quit
//配置業務流PVC,建立vlan交換
service-port vlan 10 epon 0/1/0 ont 0 multi-service user-vlan 10 inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan 99 epon 0/1/0 ont 0 multi-service user-vlan 99 inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan * epon 0/1/0 ont 0 multi-service user-vlan * inbound traffic-table index 6 outbound traffic-table index 6
//儲存資料
save
情景二:普通業務,GPON組網,下掛ONU終端。
MA5680T(config)#interface gpon 0/1 //進入到GPON單板模式。

//註冊或者確認ONU終端,可以實現離線新增資料,但要清楚裝置上聯埠和地址碼資訊。

GPON MA562x/MA561x系列裝置:
ont add 0 0 sn-auth 0000000000000000 snmp ont-lineprofile-id 1 des To_
//新增SNMP引數,(凡通過SNMP管理方式註冊的ONU終端,需要遠端下發SNMP)
ont snmp-profile 0 0 profile-id 1
//配置ONU的管理資訊,(凡通過SNMP管理方式註冊的ONU終端,需要配置遠端管理)
ont ipconfig 0 0 static ip-address 172.16.21.3 mask 255.255.255.0 gateway 172.16.21.1 vlan 99 priority 0
//退出PON板模式
quit
//配置業務流PVC,建立vlan交換
service-port vlan 10 gpon 0/1/0 ont 0 gemport 1 multi-service user-vlan 10 rx-cttr 6 tx-cttr 6
service-port vlan 99 gpon 0/1/0 ont 0 gemport 1 multi-service user-vlan 99 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 222 rx-cttr 6 tx-cttr 6
//儲存資料
save
情景三:FTTH業務,GPON組網,下掛ONT終端。
MA5680T(config)#interface gpon 0/1 //進入到GPON單板模式。
//註冊或者確認ONT終端,可以實現離線新增資料,但要清楚裝置上聯埠和地址碼資訊。
ont add 0 0 sn-auth 0000000000000000 omci ont-lineprofile-id 24 ont-srvprofile-id 24 des To_
//新增ONT的native-vlan
ont port native-vlan 0 0 iphost vlan 10 //iphost是個虛擬埠,是ONT的管理通道和語音通道
ont port native-vlan 0 0 eth 1 vlan 11
ont port native-vlan 0 0 eth 2 vlan 12
ont port native-vlan 0 0 eth 3 vlan 13
ont port native-vlan 0 0 eth 4 vlan 14
quit
//新增業務虛介面,這裡資料業務採用了地址轉換。
service-port vlan 10 gpon 0/1/0 ont 0 gemport 1 multi-service user-vlan 10 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 11 tag-transform translate-and-add inner-vlan 501 inner-priority 0 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 12 tag-transform translate-and-add inner-vlan 502 inner-priority 0 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 13 tag-transform translate-and-add inner-vlan 503 inner-priority 0 rx-cttr 6 tx-cttr 6
service-port vlan 222 gpon 0/1/0 ont 0 gemport 2 multi-service user-vlan 14 tag-transform translate-and-add inner-vlan 504 inner-priority 0 rx-cttr 6 tx-cttr 6
save


SlotID BoardName Status SubType0 SubType1 Online/Offline

0
1 H802EPBC Normal //EPBC單板,預設為4個埠,從0-3
2 H801EPBA Normal //EPBA單板,預設為4個埠,從0-3
3 H802GPBD Normal //GPBD單板,預設為8個埠,從0-7
4 H801GPBC Normal //GPBC單板,預設為8個埠,從0-7
5
6
7 H801SCUL Active_normal //SCUL主控板,管理控制系統的執行。配置資訊都儲存在此板中
8 H801SCUL Standby_normal //SCUL為主備用,一般裝置都帶2塊SCUL板
9
10
11
12
13
14
15
16
17 H801GICF Normal //OLT的千兆口上行板GICF,帶2個GE 光口,埠0-1
18 H801X2CA Normal //OLT的萬兆口上行板X2CA,帶2個10GE光口,埠0-1
19
20

//檢視裝置埠狀態
display board 0/1

Board Name : H802EPBC
Board Status : Normal


Port                       Port type    

 0                         EPON         
 1                         EPON         
 2                         EPON         
 3                         EPON         


F/S/P ONT-ID MAC Control Run Config Match
flag state state state

0/13/0 1 0025-9E09-84F1 active up normal match //正常的裝置狀態.
0/13/0 2 0025-9E09-8C03 active up normal match
0/13/0 3 0025-9E09-8B6B active up normal match
0/13/0 4 0025-9E09-8C07 active up normal match
0/13/0 5 0025-9E09-8A47 active up normal match
0/13/0 6 0025-9E09-8B43 active up normal match

In port 0, the total of ONTs are: 6

F/S/P ONT-ID MAC Control Run Config Match
flag state state state

0/13/1 1 0025-9E89-E637 active up normal match
0/13/1 2 0025-9E50-56D7 active up normal match
0/13/1 3 0025-9E78-37F8 active down initial initial //故障的裝置狀態.
0/13/1 4 0025-9E50-56CF active down initial initial
0/13/1 5 0025-9E89-E63D active down initial initial
0/13/1 6 0025-9E09-6859 active up normal match
0/13/1 7 0025-9E50-56AB active up normal match

In port 1, the total of ONTs are: 7
In port 2, the total of ONTs are: 0
In port 3, the total of ONTs are: 0
//有故障的裝置,引起故障的原因可能是因為光路不通,或者裝置掉電與裝置故障.需要根據實際情況排查.
//ONU通過單芯聯到分光器,再通過分光器聯結至OLT的PON口,通過MAC地址註冊到OLT.通過各PON口下的ONU ID識別區分.
//檢視全域性配置命令,也可以通過匹配符或者section細節檢視具體配置資訊
display current-configuration
//匹配符| 後面通過 include 匹配字母,列出配置資訊:
display current-configuration | include vlan
//section細節比較具體.OLT配置資訊分以下幾個細節:
全球配置資訊,包括裝置的命名,新增的使用者帳戶資訊.各種能力集配置資訊,以及線路引數全域性配置等.
裝置單板資訊,槽位號,單板名稱.
裝置的SNMP引數設定
,, 裝置的vlan配置,以及透傳的上行口,各vlan子介面所設定的地址引數.
,<epon-0/1>,<epon-0/2>… 裝置各單板配置的ONU資料資訊.
包括註冊的MAC地址,分配的ONU ID,採用的線路模板,裝置管理地址,管理vlan等.
主要是配置的儲存引數
配置的電源引數
配置的風扇引數
配置的自動備份引數
新增的pvc資訊
裝置維護網口的配置資訊
裝置設定的安全引數
裝置配置中的路由引數,以及允許訪問的使用者帳戶

//舉例,檢視配置中所有的vlan配置細節.
display current-configuration section vlan

//進入EPON單板,檢視設備註冊的情況
interface epon 0/1
display ont info 0 1

F/S/P : 0/1/0 //裝置機框/槽位/埠
ONT-ID : 1 //ONU註冊到OLT,分配的ONU ID. 為開局手動新增的.
Control flag : active //配置狀態,啟用可用.
Run state : down // 裝置狀態 離線. 原因可能為光路不通,或者裝置down機
Config state : initial //配置狀態為 初始狀態(initial),待裝置上線之後方能正常.
Match state : initial //配置狀態為 初始狀態(initial)
ONT LLID : -
Authentic type : MAC-auth //認證方式(即註冊到OLT的方式),通過MAC地址註冊.
MAC : 0025-9E8E-90AA //上報的MAC地址資訊.
Management mode : SNMP //對於MA561X和 MA562X,都是通過SNMP管理方式實現OLT對ONU的管理.
Multicast mode : CTC
SNMP profile ID : 1
SNMP profile name : MDU //ONU採用的SNMP模板名稱.
Description : 603-2_TZJY-3#1DY-F7-MA5620 //裝置描述,手動新增的部分.
Last down cause : dying-gasp //最後一次離線原因.
Last up time : 2010-03-24 17:11:14 //最後一次上線時間
Last down time : 2010-03-28 08:52:14 //最後一次下線時間
Last dying gasp time : 2010-03-28 08:52:14 //最後一次dying gasp時間

Line profile ID : 1 //所採用的線路模板編號
Line profile name : MDU //所採用的線路模板名稱

FEC switch :Disable //FEC開關關閉狀態.
Encrypt type :off //加密型別
DBA Profile-ID :9 //採用的DBA模板編號.9為系統自帶的模板.
Traffic-table-index :6 //採用的流量控制模板索引.6一般為不限速流量控制
Dba-threshold : //DBA序列,暫無實際意義.

Queue-set-index  Q1    Q2    Q3    Q4    Q5    Q6    Q7    Q8

1                -     -     -     -     -     -     -     -    
2                -     -     -     -     -     -     -     -    
3                -     -     -     -     -     -     -     -    

//檢視使用者mac地址上報情況.
display mac-address all
//檢視vlan XXX下學習到的地址資訊,對於斷定ONU使用者故障,一般不要採用此方法.會查不出來.
display mac-address vlan XXX.
//而應該採用查詢埠下MAC地址學習情況,需要知道使用者所在ONU具體註冊的PON口資訊.
display mac-address port 0/1/0
//對於配置錯誤的onu,如何新增刪除或者更改配置資料,可以參考以下命令.
1.因為ONU故障,用其他相同裝置型別的ONU替換.通過自動發現命令,檢視新上報的ONU 地址資訊.按:
display ont autofind all //目的:記錄新的ONU 的MAC地址 1111-1111-1111
進入待替換的故障ONU所註冊的單板
interface epon 0/1 //此處可以通過檢視PON口下裝置狀態來獲取需要替換的ONU ID.假設故障裝置位於2埠,ID為6
ont modify 2 6 mac 1111-1111-1111 //替換裝置.
結束後需要通過舊的管理地址(管理地址不變)登陸到裝置中,補全裝置資訊.新增業務資料.結果注意儲存(OLT上以及ONU上的)
2.因為裝置遷移,裝置所註冊的PON口有變,則舊資料需要刪除,重新新增到新上報的埠中.
MAC地址在OLT內不可衝突,否則新增不成功;因此需要刪除與裝置埠ID有關的相關配置,再進行新增操作.
需要查詢到此裝置MAC地址原有的註冊埠和ONU ID,刪除與此有關的所有資訊(包括pvc和原有PON口下的ONU ID資訊)
假設已知裝置原來註冊埠為 0/2/2, ONU ID 為6 首先查詢pvc資訊.
display service-port port 0/2/2 //檢視0/2/2 ID為6的所有pvc id

INDEX VLAN VLAN PORT F/ S/ P VPI VCI FLOW FLOW RX TX STATE
ID ATTR TYPE TYPE PARA

  8   99 common   epon 0/2 /1  3    -    vlan  99          -    -    down
  9   99 common   epon 0/2 /1  4    -    vlan  99          -    -    up
 10   99 common   epon 0/2 /2  5    -    vlan  99          -    -    up
 11   99 common   epon 0/2 /2  6    -    vlan  99          -    -    down
 12   99 common   epon 0/2 /2  7    -    vlan  99          -    -    up

undo service-port 11 //需要將所有與0/2/2 onu id為6的pvc資訊都刪除,否則無法執行後面的操作.
interface epon 0/2 // 進入原來註冊的PON口下
ont delete 2 6 // 刪除ONU註冊資訊.
interface epon 0/1 //進入新的pon口下,新增ONU資訊(略)
service-port vlan 99 epon 0/1/0 ont 1 multi-service user-vlan 99 //新增新的pvc資訊.
儲存資料,至此裝置新增完畢.登陸到裝置上去,新增新的業務資料.
一、 裝置資料配置及查詢
檢視10槽位EPON板配置
MA5680T(config)#display current-configuration section epon-0/10
{ || }:
Command:
display current-configuration section epon-0/10
[MA5600V800R105: 5033]

[epon]
<epon-0/10>
interface epon 0/10
port 0 ont-auto-find enable
ont add 0 0 mac-auth 0025-9E64-5C46 profile-id 12 desc “ONT_NO_DESCRIPTION” dba-profile 11
ont add 0 1 mac-auth 0025-9E64-5B43 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont snmp 0 1 v1 “public” “private” 10.50.58.2 161 “huawei”
ont add 0 2 mac-auth 0025-9E62-7E0B profile-id 12 desc “ONT_NO_DESCRIPTION” dba-profile 11
ont snmp 0 2 v1 “public” “private” 10.50.58.2 161 “huawei”
ont add 0 3 mac-auth 0025-9E8D-F5ED profile-id 12 desc “ONT_NO_DESCRIPTION”
ont add 0 4 mac-auth 0025-9E8D-F5A8 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont add 0 5 mac-auth 0025-9E8D-F5C9 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont ipconfig 0 0 ip-address 10.50.234.66 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 1 ip-address 10.50.234.67 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 2 ip-address 10.50.234.68 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 3 ip-address 10.50.234.74 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 4 ip-address 10.50.234.75 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 0 5 ip-address 10.50.234.76 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
port 1 ont-auto-find enable
ont add 1 0 mac-auth 0025-9E8E-7969 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont ipconfig 1 0 ip-address 10.50.234.70 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
port 2 ont-auto-find enable
ont add 2 1 mac-auth 0018-82EB-3814 profile-id 12 desc “ONT_NO_DESCRIPTION”
ont add 2 2 mac-auth 0018-82E7-002B profile-id 12 desc “ONT_NO_DESCRIPTION”
ont ipconfig 2 1 ip-address 10.50.234.72 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
ont ipconfig 2 2 ip-address 10.50.234.73 mask 255.255.255.0 gateway 10.50.234.1 manage-vlan 3334
port 3 ont-auto-find enable

return
MA5680T(config)#
檢視10槽位下ONU
MA5680T(config)#display board 0/10

Board Name : H801EPBA
Board Status : Normal


Port                       Port type    

 0                         EPON         
 1                         EPON         
 2                         EPON         
 3                         EPON         


F/S/P ONT-ID MAC Control Run Config Match Loopback
Flag State State State State

0/10/0 0 0025-9E64-5C46 active up normal match disable
0/10/0 1 0025-9E64-5B43 active up normal match disable
0/10/0 2 0025-9E62-7E0B active up normal match disable
0/10/0 3 0025-9E8D-F5ED active up normal match disable
0/10/0 4 0025-9E8D-F5A8 active up normal match disable
0/10/0 5 0025-9E8D-F5C9 active up normal match disable

In port 0, the total of ONTs are: 6

F/S/P ONT-ID MAC Control Run Config Match Loopback
Flag State State State State

0/10/1 0 0025-9E8E-7969 active up normal match disable

In port 1, the total of ONTs are: 1

F/S/P ONT-ID MAC Control Run Config Match Loopback
Flag State State State State

0/10/2 1 0018-82EB-3814 active down initial initial disable
0/10/2 2 0018-82E7-002B active down initial initial disable

In port 2, the total of ONTs are: 2
In port 3, the total of ONTs are: 0
MA5680T(config)#
檢視10槽位、0號PON口、2號ONU資訊
MA5680T(config)#interface epon 0/10
MA5680T(config-if-epon-0/10)#display ont info 0 2

F/S/P : 0/10/0
ONT-ID : 2
Control flag : active
Run state : up
Config state : normal
Match state : match
Ont Profile ID : 12
Authentic type : MAC-Auth
MAC : 0025-9E62-7E0B
Description : ONT_NO_DESCRIPTION
DBA Profile ID : 11
CIR Value (Kbps) : off
Encrypt : off
FEC : disable
Manage mode : SNMP
Multicast Fast Leave : –
Multicast mode : Default

MA5680T上其他常用的檢視命令
配置檢視:
1、檢視snmp配置
MA5680T(config)# display current-configuration section public
1、 檢視vlan配置
MA5680T(config)# display current-configuration section vlan
2、 檢視所有epon單板下配置
MA5680T(config)# display current-configuration section epon
3、 檢視模組epon單板下的配置
MA5680T(config)# display current-configuration section epon-0/1
4、 檢視service-port配置
MA5680T(config)# display current-configuration section bbs
5、 檢視service-port狀態
MA5680T(config)# display service-port all
6、 檢視ONU資訊
MA5680T(config-if-epon-0/1)# display ont info 0 0
7、 檢視系統模板配置資訊
MA5680T(config)# display current-configuration section global

華為GPON配置說明
幾個名詞說明3
資料規劃3
資料配置3
1.OLT資料配置3
建立DBA模板3
建立線路模板3
註冊ONU4
OLT上透傳ONU上來的vlan4
2.ONU上語音資料配置4
幾個名詞說明
DBA模板:建立的dba模板時給tcont引用的,dba模板的作用是對整臺ONU上行進行限速。一個PON口上行頻寬為1G,實際能用的只有900M,所以要對ONU的上行進行合理分配。
Tcont:tcont是連線dba和gemport的通道,也就是說gemport是通過和tcont聯絡,才把dba的作用引用過來。
Gemport:gemport是OLT執行緒工作的最小單元,前面的dba,tcont都是最終給gemport用。
線路模板ont-lineprofile:ONU註冊時要選相應線路模板,裡面包含tcont,gem等資訊
DBA模板,線路模板,可以建立多個;一個線路模板中:tcont 有八個0-7,gem可以建立128個0-127;一個gem中可有對映8個:gem mapping 1 0;gem mapping 1 1,一直到gem mapping 1 7;但是一個線路模板中最多隻能建立128條gem mapping;超出會報錯。
資料規劃
以花都獅嶺資料規劃為例:
OLT:網管vlan 22;
IP: 172.17.21.132;閘道器:172.17.21.129;語音vlan 100;語音IP:172.16.0.11
ONU:所屬OLT的PON口 0/18/3
ONUID:1
ONU 網管IP 172.17.21.134; 閘道器:172.17.21.129;
語音vlan 100;語音IP:172.16.0.21
資料配置
1.OLT資料配置
建立DBA模板
dba-profile add profile-id 102 profile-name DBA_2M type3 assure 2048 max 10240
//保證2M;最大大10M
dba-profile add profile-id 105 profile-name DBA_5M type3 assure 5120 max 20480
dba-profile add profile-id 120 profile-name DBA_20M type3 assure 20480 max 102400
dba-profile add profile-id 150 profile-name DBA_50M type3 assure 51200 max 512000
建立線路模板
建立線路模板101:供ONU ID 1到5用;由於一個線路模板中gem mapping最多隻能建立128條;故一個線路模板不要被過多的ONU呼叫。
ont-lineprofile gpon profile-id 101 profile-name MA5610_1_5
線路模板的編號為101,模板名稱MA5610_1_5
tcont 1 dba-profile-id 120
//tcont1繫結120的DBA模板
tcont 2 dba-profile-id 105
//tcont2繫結105的DBA模板
tcont 3 dba-profile-id 102
//tcont3繫結102的DBA模板
gem add 1 eth tcont 1
//gem 1繫結tcont1
gem add 2 eth tcont 1
//gem 2繫結tcont1
gem add 126 eth tcont 2
//gem 126繫結tcont2
gem add 127 eth tcont 3
//gem 127繫結tcont3
gem mapping 126 0 vlan 100
//gem的126 0 與vlan100對映
gem mapping 127 0 vlan 22
//gem的127 0 與vlan22對映
commit
//繫結,相當於保持線路模板
quit
建立線路模板102:供ONU ID 6到10用
ont-lineprofile gpon profile-id 102 profile-name MA5610_6_10
tcont 1 dba-profile-id 120
tcont 2 dba-profile-id 105
tcont 3 dba-profile-id 102
gem add 1 eth tcont 1
gem add 2 eth tcont 1
gem add 126 eth tcont 2
gem add 127 eth tcont 3
gem mapping 126 0 vlan 100
gem mapping 127 0 vlan 22
commit
quit
建立線路模板103:供ONU ID 11到15用
ont-lineprofile gpon profile-id 103 profile-name MA5610_11_15
tcont 1 dba-profile-id 120
tcont 2 dba-profile-id 105
tcont 3 dba-profile-id 102
gem add 1 eth tcont 1
gem add 2 eth tcont 1
gem add 126 eth tcont 2
gem add 127 eth tcont 3
gem mapping 126 0 vlan 100
gem mapping 127 0 vlan 22
commit
quit
建立線路模板104:供ONU ID 16到20用
ont-lineprofile gpon profile-id 104 profile-name MA5610_16_20
tcont 1 dba-profile-id 120
tcont 2 dba-profile-id 105
tcont 3 dba-profile-id 102
gem add 1 eth tcont 1
gem add 2 eth tcont 1
gem add 126 eth tcont 2
gem add 127 eth tcont 3
gem mapping 126 0 vlan 100
gem mapping 127 0 vlan 22
commit
quit
註冊ONU
進入0/18槽的PON板
interface gpon 0/18
ont add 3 1 sn-auth 48575443AAA69E42 snmp ont-lineprofile-id 101
給ONU註冊,第3PON口,ONU 編號1,SN 48575443AAA69E42,線路模板101
ont ipconfig 3 1 static ip-address 172.17.21.134 mask 255.255.255.128 gateway 172.17.21.129 vlan 22
給剛剛註冊的ONU,下發管理IP地址,閘道器掩碼,ONU上會自動生成一條預設路由。
quit
OLT上透傳ONU上來的vlan
service-port vlan 22 gpon 0/18/3 ont 1 gemport 127 multi-service user-vlan 22
//給ONU透傳網管vlan22
service-port vlan 100 gpon 0/18/3 ont 1 gemport 126 multi-service user-vlan 100
//給ONU透傳語音vlan100
2.ONU上語音資料配置
telnet 172.17.21.134 登入到ONU上配置資料
board confirm 0
//單板確認
fax-modem parameters rfc2198-start-mode disableRfc2198SmartStartup
//關閉2198自啟動功能
vlan 100 smart
//建立語音vlan100
port vlan 100 0/0 1
//透傳vlan100
interface vlanif 100
ip address 172.16.0.23 255.255.254.0
//配置語音地址
quit

voip
ip address media 172.16.0.23 172.16.0.2
ip address signaling 172.16.0.23
//配置媒體IP和信令IP
qui
interface h248 0
y
if-h248 attribute mgip 172.16.0.23 mgport 2944 transfer udp
//配置mgip地址,mg埠號以及傳輸協議udp
if-h248 attribute primary-mgc-ip1 172.16.0.2 primary-mgc-port 2944 mgc-domain-name1 HDSLPJC9500
//配置mgc的地址,mgc的埠號;mgc的域名
if-h248 attribute mg-media-ip1 172.16.0.23
//配置mg媒體IP
if-h248 attribute start-negotiate-version 1
//配置H248協議開始協商的版本
if-h248 attribute domainName HDSLONU000003
//配置mg即ONU的域名
reset cold
y
//復位h248介面,發起註冊
esl user
mgpstnuser batadd 0/3/0 0/3/31 0 terminalid 0
//配置語音使用者
qui
save