华为OLT的命令(DOC) 下载本文

Huawei-OLT(config)#vlan 10 smart Huawei-OLT(config)#interface vlanif10

Huawei-OLT(config-if-vlanif10)#ip address 192.168.x.x 255.255.255.0

Huawei-OLT(config-if-vlanif10)#quit

Vlan Published & Description in uplink interface: Huawei-OLT(config)#port vlan 10 0/2 0

Huawei-OLT(config)#port desc 0/2/0 description “Uplink-with…….” Board/Card Add:

Huawei-OLT(config)#board add 0/0 H805GFBD Huawei-OLT(config)#board add 0/1 H801MSWC OLT port Auto find Enable:

Huawei-OLT(config)#interface gpon 0/0

Huawei-OLT(config-if-gpon-0/0)#port 0 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 1 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 2 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 3 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 4 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 5 ont-auto-find enable

Huawei-OLT(config-if-gpon-0/0)#port 6 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 7 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#quit Huawei-OLT(config)#

Huawei-OLT(config)#interface gpon 0/1

Huawei-OLT(config-if-gpon-0/0)#port 0 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 1 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 2 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 3 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 4 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 5 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 6 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#port 7 ont-auto-find enable Huawei-OLT(config-if-gpon-0/0)#quit Huawei-OLT(config)#

Add a Static Route (optional):

Huawei-OLT(config)#ip route-static 0.0.0.0 0.0.0.0 192.168.x.x

Others Configure Huawei OLT:

Huawei-OLT(config)#timezone GMT+ 06:00

Huawei-OLT(config)#time date-format DD/MM/YYYY Huawei-OLT(config)#snmp-agent sys-info contact shahed Huawei-OLT(config)#snmp-agent sys-info location Dhaka,Bangladesh

Telnet User Create:

Please follow bellow link also for Configure Huawei OLT.

如果为新开小区,首先要知道:(开的端口,QINQVLAN,上网业务VLAN,IAD管理IP)可联系数据支撑要。

(语音VLAN,语音IP,物理号码)可看工单信息。 (设备的MAC)工程对提供或现场查看。 1、CZ_HT_MA5606T(config)#vlan 1231 smart (创建VLAN)

2、CZ_HT_MA5606T(config)#vlan attrib 1231 q-in-q(设置VLAN为QINQVLAN) 3、CZ_HT_MA5606T(config)# port vlan 1231 0/1 0 (设置VLAN在上联口透传) 4、CZ_HT_MA5606T(config)# vlan 42 smart (生成语音VLAN)

5、CZ_HT_MA5606T(config)# port vlan 42 0/1 1 (语音VLAN在上联口透传) 6、CZ_HT_MA5606T(config)# interface epon 0/3 (进入相应的EPON板) 7、CZ_HT_MA5606T(config-if-epon-0/2)#ont add 2(端口) 27(ONT序号) mac-auth 0018-82C6-938C(设备MAC) profile-id 12(不变)desc \(描述)

8、CZ_HT_MA5606T(config-if-epon-0/2)# ont ipconfig 2(端口)27(ONT序号)ip-address 220.180.76.116(管理IP) mask 255.255.255.0 gateway 220.180.76.1(网关) manage-vlan 13(管理VLAN)

9、CZ_HT_MA5606T(config-if-epon-0/2)# quit

10、CZ_HT_MA5606T(config)# display board 0/2(查看PON板下各端口设备上线情况)

--------------------------------------- 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/ 2/0 0 0018-82C6-938C active up (已上线) normal match disable