huawei 华为olt常用命令

MA5680T>//输入正确用户名和密码后,进入到配置界面
MA5680T>enable//此命令用于从普通用户模式进入特权模式。当需要在特权模式下执行系统基本操作时,如设置系统时间,使用此命令
MA5680T#config//此命令用于从特权模式进入全局配置模式
MA5680T(config)#switch language-mode切换系统语言
MA5680T(config)#sysname Huawei修改Host-Name
MA5680T(config)#terminal user name
User Name(length<6,15>):admin123
//添加操作用户
User Password(length<6,15>): //设置密码
Confirm Password(length<6,15>): //确认密码
User profile name(<=15 chars)[root]:root //输入用户管理级别
User's Level:
1. Common User 2. Operator 3. Administrator:3 //选择用户权限
Permitted Reenter Number(0--4):4 //设置该用户名可重复登录次数
User‘s Appended Info(<=30 chars): //添加描述
Adding user successfully
Repeat this operation? (y/n)[n]:N
添加管理账号
MA5680T(config)#time 16:18:00 2022-01-04修改系统时间
MA5680T(config)# ntp-service unicast-server 91.189.89.199MA5680T(config)# ntp-service unicast-server 80.96.196.58系统NTP配置
MA5680T(config)# autosave interval on
MA5680T(config)# autosave type all
MA5680T(config)# autosave interval 1440 (min)
自动保存配置
MA5680T(config)#interface meth0
MA5680T(config-if-meth0)#ip address 192.168.201.4
配置物理管理接口meth0
MA5680T(config)#interface vlanif 100
MA5680T(config-if-vlanif100)#ip address 192.168.19.109
配置虚拟VLAN接口IP地址
MA5680T(config)#board add 0/10 H808EPSD
MA5680T(config)#board add 0/12 H806GPBD
MA5680T(config)#board add 0/17 H801GICF
MA5680T(config)#board add 0/18 H801GICF
MA5680T(config)#board add standby
MA5680T(config)#board confirm 0 //需要加上confirm
添加板卡信息
MA5680T(config)#display board 0 //查看各板卡状态
MA5680T(config)#vlan 3,32-36,204,666,800,888 smart
vlan 1919 smart
vlan attrib 1919 stacking
//创建业务VLAN
MA5680T(config)#interface gpon 0/12
MA5680T(config-if-gpon-0/12)#port 0 ont-auto-find enable
MA5680T(config-if-gpon-0/12)#port 1 ont-auto-find enable
MA5680T(config-if-gpon-0/12)#port 2 ont-auto-find enable
MA5680T(config-if-gpon-0/12)#port 3 ont-auto-find enable
MA5680T(config-if-gpon-0/12)#port 4 ont-auto-find enable
MA5680T(config-if-gpon-0/12)#port 5 ont-auto-find enable
MA5680T(config-if-gpon-0/12)#port 6 ont-auto-find enable
MA5680T(config-if-gpon-0/12)#port 7 ont-auto-find enable
//开启pon端口自动发现
//EPON和GPON板卡都需要开启自动发现
MA5680T(config)#port vlan 32 to 36 0/17 0
MA5680T(config)#port vlan 3 0/17 0
MA5680T(config)#port vlan 800 0/17 0
MA5680T(config)#interface giu 0/17
MA5680T(config-if-giu-0/17)##native-vlan 1 vlan 666
//配置上联口VLAN
//将VLAN 3,800,32 to 36加入上联口 0/17 0 (tag)
//设置将上联口 0/17 1 设置PVID 666 (untag)
MA5680T(config)#dba-profile add profile-id 24 type4 max 1000000//配置DBA模板
Type-1 Fixed bandwidth Type-2 Assured bandwidth
Type-3 Assured bandwidth, Maximum bandwidth
Type-4 Maximum bandwidth
Type-5 Fixed bandwidth, Assured bandwidth, Maximum bandwidth
5种DBA模板配置
MA5680T(config)#ont-lineprofile gpon profile-id 66 profile-name "untag-mixed"
MA5680T(config-gpon-lineprofile-66)#tcont 1 dba-profile-id 24
MA5680T(config-gpon-lineprofile-66)#gem add 1 eth tcont 1
MA5680T(config-gpon-lineprofile-66)#gem add 2 eth tcont 1
MA5680T(config-gpon-lineprofile-66)#gem mapping 1 1 vlan untag
MA5680T(config-gpon-lineprofile-66)#gem mapping 2 1 vlan 3
MA5680T(config-gpon-lineprofile-66)#gem mapping 2 2 vlan 32
MA5680T(config-gpon-lineprofile-66)#gem mapping 2 3 vlan 33
MA5680T(config-gpon-lineprofile-66)#gem mapping 2 4 vlan 35
MA5680T(config-gpon-lineprofile-66)#gem mapping 2 5 vlan 800
MA5680T(config-gpon-lineprofile-66)#gem mapping 2 6 vlan 888
MA5680T(config-gpon-lineprofile-66)#gem mapping 2 7 vlan 204
MA5680T(config-gpon-lineprofile-66)#commit
MA5680T(config-gpon-lineprofile-66)#quit
//创建GPON 线路模板
MA5680T(config)#ont-lineprofile gpon profile-id 88
MA5680T(config-gpon-lineprofile-88)#fec-upstream enable
MA5680T(config-gpon-lineprofile-88)#tr069-management enable
MA5680T(config-gpon-lineprofile-88)#mapping-mode priority
MA5680T(config-gpon-lineprofile-88)#tcont 1 dba-profile-id 24
MA5680T(config-gpon-lineprofile-88)#tcont 2 dba-profile-id 24
MA5680T(config-gpon-lineprofile-88)#tcont 3 dba-profile-id 24
MA5680T(config-gpon-lineprofile-88)#gem add 1 eth tcont 1
MA5680T(config-gpon-lineprofile-88)#gem add 2 eth tcont 2
MA5680T(config-gpon-lineprofile-88)#gem add 3 eth tcont 3
MA5680T(config-gpon-lineprofile-88)#gem mapping 1 1 priority 0
MA5680T(config-gpon-lineprofile-88)#gem mapping 2 1 priority 2
MA5680T(config-gpon-lineprofile-88)#gem mapping 3 1 priority 5
MA5680T(config-gpon-lineprofile-88)#commit
MA5680T(config-gpon-lineprofile-88)#quit
//创建GPON 线路模板
MA5680T(config)#ont-lineprofile epon profile-id 1
MA5680T(config-epon-lineprofile-1)# llid dba-profile-id 24
MA5680T(config-epon-lineprofile-1)# commit
MA5680T(config-epon-lineprofile-1)# quit
//创建EPON 线路模板
MA5680T(config)#ont-srvprofile gpon profile-id 11
MA5680T(config-gpon-srvprofile-11)#ont-port pots adaptive eth adaptive
MA5680T(config-gpon-srvprofile-11)#commit
//创建GPON 业务自适应模板
MA5680T(config)#ont-srvprofile gpon profile-id 20 profile-name SK-D748
MA5680T(config-gpon-srvprofile-20)#ont-port eth 4
MA5680T(config-gpon-srvprofile-20)#ont-port pots1
MA5680T(config-gpon-srvprofile-20)#commit
//创建GPON 业务模板
MA5680T(config)#ont-srvprofile epon profile-id 1
MA5680T(config-epon-srvprofile-1)#ont-port pots adaptive eth adaptive
MA5680T(config-epon-srvprofile-1)#commit
//创建EPON 自适应业务模板
认证:
(1)查找未认证的ONU (以mac地址和GPON_SN为唯一标识,找到需要认证的ONU)
MA5680T(config)#display ont autofind all //查询OLT上所有未认证的ONU
也可进入对应的板卡,进行查询未认证的ONU
MA5680T(config)#interface gpon 0/12
MA5680T(config-if-gpon-0/12)#display ont autofind 0 //查询12板卡PON0端口下未认证的ONU
(2)以特定的认证方式进行认证,绑定线路模板和业务模板
GPON:GPON_SN、LOID、Password、Loid+Checkcode
MA5680T(config-if-gpon-0/12)#ont add 1 sn-auth SKYWB80144D4 omci ont-lineprofile-id 66 ont-srvprofile-id 22 //这里以GPON_SN认证为例,需根据实际场景进行认证
#NAME?
MA5680T(config-if-gpon-0/12)#display ont info 1 58 //查看ONU的注册状态
Run state:online、offline
Config state:normal、initial
Match state:match、mismatch(不影响使用)
ONT distance (m):141 RTT测距
ONT Info也可以显示认证模式,绑定的线路模板和业务模板
#NAME?
配置虚端口 service-port
MA5680T(config)#service-port vlan 36 gpon 0/12/1 ont 58 gemport 1 multi-service user-vlan untagged
MA5680T(config)#service-port vlan 3 gpon 0/12/1 ont 58 gemport 2 multi-service user-vlan 3
MA5680T(config)#service-port vlan 32 gpon 0/12/1 ont 58 gemport 2 multi-service user-vlan 32
MA5680T(config)#service-port vlan 33 gpon 0/12/1 ont 58 gemport 2 multi-service user-vlan 33
MA5680T(config)#service-port vlan 35 gpon 0/12/1 ont 58 gemport 2 multi-service user-vlan 35
MA5680T(config)#service-port vlan 800 gpon 0/12/1 ont 58 gemport 2 multi-service user-vlan 800
MA5680T(config)#service-port vlan 888 gpon 0/12/1 ont 58 gemport 2 multi-service user-vlan 888
TR069(Voice):800 Internet:3/32/33/35 untag--36 IPTV:888
Service Port配置需对应线路模板(gemport映射关系)以及上联网络VLAN规划(VLAN)
Service Port配置可指定Index,若不指定,则由OLT自行分配
MA5680T(config)#display service-port port 0/12/1 ont 58 //查看ONT配置的Service-Port
SFU VLAN业务配置:
Transparent:ont port vlan 1 42 eth 1 transparent
TAG:ont port native-vlan 1 42 eth 1 vlan 800
Trunk:
ont port native-vlan 1 42 eth 1 vlan 800
ont port vlan 1 42 eth 1 translation 32 user-vlan 32
Translation:
ont port native-vlan 1 42 eth 1 vlan 100
ont port vlan 1 42 eth 1 translation 33 user-vlan 36
//进入到板卡,设置onu端口的VLAN模式
EPON 注册参考
(1)查找未认证的EPON ONU
MA5680T(config)#display ont autofind all
(2)以特定的认证方式进行认证,绑定线路模板和业务模板
EPON:MAC、LOID、Password
interface epon 0/10 //进入对应EPON板卡
ont add 0 4 loid-auth "cuizhzh" checkcode-auth "12345678" always-on oam ont-lineprofile-id 1 ont-srvprofile-id 1
EPON 虚端口配置参考
MA5680T(config)#service-port vlan 3 epon 0/10/0 ont 4 multi-service user-vlan 3
MA5680T(config)#service-port vlan 32 epon 0/10/0 ont 4 multi-service user-vlan 32
MA5680T(config)#service-port vlan 33 epon 0/10/0 ont 4 multi-service user-vlan 33
MA5680T(config)#service-port vlan 35 epon 0/10/0 ont 4 multi-service user-vlan 35
MA5680T(config)#service-port vlan 36 epon 0/10/0 ont 4 multi-service user-vlan 36
MA5680T(config)#service-port vlan 800 epon 0/10/0 ont 4 multi-service user-vlan 800
MA5680T(config)#service-port vlan 888 epon 0/10/0 ont 4 multi-service user-vlan 888
组播基础配置全局
MA5680T(config)#multicast-vlan 888 //设置组播VLAN 2001
MA5680T(config-mvlan888)#igmp version v2
//设置IGMP version
MA5680T(config-mvlan888)#igmp mode Snooping
//设置IGMP模式 or Proxy
MA5680T(config-mvlan888)#igmp program add ip 224.1.1.1 index 2
MA5680T(config-mvlan888)#igmp program add ip 239.1.2.3 index 3
MA5680T(config-mvlan888)#igmp program add ip 224.1.2.3 index 17
//设置v4 IGMP节目源
MA5680T(config-mvlan888)#igmp ipv6 mode snooping
MA5680T(config-mvlan888)#igmp program add ipv6 FF1E::1 index 0
MA5680T(config-mvlan888)#igmp program add ipv6 FF1E::2 index 1
MA5680T(config-mvlan2001)#igmp uplink-port 0/17/0
//Multicast VLAN关联上联口
MA5680T(config)#btv
MA5680T(config-btv)#igmp uplink-port-mode default
//BTV关联上联口
ONU组播配置
HGU:
IGMP/MLD Snooping/Proxy
BTV模式下,建立组播用户,其中Service-Port为IPTV WAN单播VLAN
MA5680T(config-btv)#igmp user add service-port 12345 no-auth log enable
组播vlan模式下,为组播用户添加组播vlan成员
MA5680T(config-mvlan888)#igmp multicast-vlan member service-port 12345
SFU:
在上述两步的基础上,需在ont-srvprofile上增加端口的组播配置
MA5680T(config-if-gpon-0/12)#ont port multicast-forward 1 0 eth 1 888 untag
display board 0//查看所有单板的状态
display version //查看设备基本信息(软件版本)
display patch all//查看单板运行的版本文件,生成时间等
display language//查看OLT语言版本
display mac-address all//查看OLT下的所有MAC地址
display service-port all//查看OLT下的所有虚端口配置
display interface//查看OLT接口的配置
display ip interface brief//查看OLT端口IP配置
display ip routing-table//查看OLT的路由表
display vlan all//查看OLT VLAN 配置
display alarm history all//查看OLT的告警信息
display current-configuration//查看OLT的当前运行配置
interface mcu 0/2//进入上联板卡0/2
display port state all //查看上联端口的配置
save//保存当前配置
quit//退出到上一级目录
display dba-profile all//查看动态带宽配置
display ont-lineprofile gpon all//查看GPON线路模板配置
display ont-srvprofile gpon all//查看GPON业务模板配置
display traffic service-port 2 //查看具体虚端口的流量配置
display traffic table ip index 8//查看的流量模板配置
display ont info by sn xxxxxxxxxx //通过SN查看ONU信息
display mac-address port 0/12/1 ont 0 all//查看ONU下的所有MAC地址
display service-port port 0/12/1 ont 0//查看ONU的虚端口配置
display ont version 0 12 1 all//查看PON 1端口下所有ONU的软件信息
display ont info summary 0/12/1//查看PON 1端口下所有ONU的信息
display ont capability 0/12 1 all//查看PON 1端口下所有ONU的能力集
display ont load state all//查看所有ONU升级的状态
display statistics ont-line-quality 0/12 1//查看PON 1端口所有ONU的线路质量
display current-configuration ont 0/12/1 0 //查看ONU 0当前配置
display ont autofind all //查看OLT所有未认证的ONU
interface gpon 0/12 //进入GPON板卡0/12
display ont autofind 1 //查看PON 1下的未认证ONU
display ont info 1 0 //查看ONU 0的基本信息
display ont optical-info 1 0//查看ONU 0的光功率信息
display ont version 1 0//查看ONU 0的软件版本信息
display ont ipconfig 1 0//查看ONU 0的IP config信息
display ont voip state 1 0//查看ONU 0的语音状态
display ont capability 1 0//查看ONU 0的能力集信息
display ont register-info 1 0//查看ONU 0的注册信息
display ont port state 1 0 eth-port all//查看ONU 0 以太网端口状态
display ont port attribute 1 0 catv//查看ONU 0 CATV状态
display port state all//查看板卡1下所有PON端口状态
MA5680T(config)# display statis service-port 6//查看业务流6的流量统计
查看OLT上ONU igmp的统计
MA5680T(config)#display igmp statistic service-port 657
MA5680T(config)#display igmp user service-port 657
//查看ONU IGMP统计
MA5680T(config)#xpon anti-rogueont autodetect on//流氓ONU检测
MA5680T(config)#display alarm history alarmid 0x2e314022//查看流氓ONU告警
MA5680T(diagnose)%%display ont failed-configuration 0/12/1 58//查看ONU 58 配置失败的命令
MA5680T(config)#interface gpon 0/12
MA5680T(config-if-gpon-0/12)#ont port attribute 1 42 catv 1 operational-state off
MA5680T(config-if-gpon-0/12)#ont port attribute 1 42 catv 1 operational-state on
//ONU CATV配置
OMCI 下发ONU VOIP
1.配置SIP代理模板
MA5680T(config)#ont-sipagent-profile add profile-id 2 outbound-server 192.168.22.201 proxy-server 192.168.22.201 home-domain 192.168.22.201
2. 增加SIP接口,应用SIP代理模板
MA5680T(config)#interface gpon 0/12
MA5680T(config-if-gpon-0/12)#if-sip add 1 0 1 sipagent-profile profile-id 2 //语音1
MA5680T(config-if-gpon-0/12)#if-sip add 1 0 2 sipagent-profile profile-id 2 语音2
3.增加POTS用户
MA5680T(config)#interface gpon 0/12
MA5680T(config-if-gpon-0/1)#sippstnuser add 1 0 1 mgid 1 username 101 password 101 telno 101
MA5680T(config-if-gpon-0/1)#sippstnuser add 1 0 1 mgid 1 username 102 password 102 telno 102
OMCI 下发ONU TR069
1.创建TR069 profile
MA5680T(config)#ont tr069-server-profile add profile-id 10 url http://192.168.201.65:80/acs user acs acs
2.ONU 绑定TR069 模板
MA5680T(config-if-gpon-0/12)#ont tr069-server-config 1 58 profile-id 10
//线路模板中,有开启TR069配置的命令
MA5680T(config-gpon-lineprofile-888)#tr069-management enable
OMCI 下发ONU WAN 配置
1.TR069 WAN (ipdex 0)
MA5680T(config-if-gpon-0/12)#ont ipconfig 1 58 dhcp vlan 800 priority 5
2.Internet WAN
MA5680T(config-if-gpon-0/12)#ont ipconfig 1 58 ip-index 1 pppoe vlan 58 priority 0 user-account username test password 123456
MA5680T(config-if-gpon-0/12)#undo ont ipconfig 1 58 ip-index 1
//删除ont ipconfig 配置
MA5680T(config-if-gpon-0/12)#display ont ipconfig 1 58
//查询ONU ipconfig状态
//通常index0 为TR069 WAN通道
//注意VLAN 优先级 index 0 默认会下pri5 ,index 1回下pri 0
OMCI ONU升级
(1)enter diagnose (menu)
(2)use FTP or TFTP to load the onu upgrade file (attention,PC network can access OLT )
ont-load info program XXXX(file name) ftp server-ip username password
or:ont-load info program XXXX(file name) tftp server-ip
(3)ont-load select X/X X X (detail ONT ID or all ont in one pon port)
(4)ont-load start activemode immediate
(5)display ont-load select X/X X X //show ont upgrade current status
//可指定单个ONU或者整个PON口的ONU
OLT升级
1.use the cable to connect OLT and PC
(configure the network and make sure OLT could access PC )
for example: use the cable connect olt meth0 interface
configure meth0 IP 172.19.0.100/24 configure PC statics IP 172.19.0.200/24
2.open TFTP tool and put the OLT firmware in the corresponding directory (please close the windows firewall)
3.load the firmware into main board
load packetfile tftp 172.19.0.200 5680TR015.bin
4.check the load status
display progress load
5.when finish the progress,save the configuration and reboot the OLT system
active configuration system // better for this command
reboot system
6.After reboot,check the firmware version
//FTP、TFTP升级OLT的版本
OLT Debug
(1)enter diagnose (menu)
MA5680T#diagnose
MA5680T(diagnose)%%
(2)su (menu)
MA5680T(diagnose)%%su
Challenge:YTQ19S1H
Please input verification code:
MA5680T(su)%%
(3) transparent on 0/1 (board)
MA5680T(su)%%transparent on 0/1
Serial redirect function is enabled now!
(4) omci set print on 1
MA5680T(su)%%omci set print on 1
OMCI print switch on level 1
MA5680T(su)%%omci set print off 1
OMCI print switch off level 1
MA5680T(su)%%transparent off
Serial redirect function is disabled now!
#NAME?
ONU光功率告警
1.创建光功率告警模板
MA5680T(config)#optical-alarm-profile add profile-id 10
.......
2.ONU绑定光功率告警模板
MA5680T(config-if-gpon-0/12)#ont optical-alarm-profile 1 58 profile-id 10
//根据提示,依次填入对应参数的阈值
删除ONT

MA5680T(config)#interface gpon 0/12

MA5680T(config-if-gpon-0/12)#ont delete 1 52
Failure: This configured object has some service virtual ports
MA5680T(config)#undo service-port port 0/12/1 ont 58
//删除ONT所有的虚端口
MA5680T(config)#undo service-port 10000
Failure: The service virtual port can not be deleted, because it is used by BTV user //如果一个一个去删service-port,则对应绑定igmp的service port 需手动先解绑,才能正常删掉该service port
MA5680T(config)#btv
MA5680T(config-btv)#igmp user delete service-port 10000
//提示存在虚端口,需先删除虚端口
流量模板---Service port
Upstream(上行):
MA5608T(config)#traffic table ip index 8 name "SMARTOLT-1G-UP" cir 1048064 cbs 10240000 pir 1048064 pbs 10240000 color-mode color-blind priority 0 priority-policy local-setting
Downstream(下行):
MA5608T(config)# traffic table ip index 9 name "SMARTOLT-1G-DOWN" cir 1048064 cbs 10240000 pir 1048064 pbs 10240000 color-mode color-blind priority 0 priority-policy local-setting
Service-Port 业务虚端口绑定流量模板
service-port 10 vlan 33 gpon 0/0/3 ont 0 gemport 1 multi-service user-vlan 33 tag-transform translate inbound traffic-table index 8 outbound traffic-table
index 9
Huawei(config)#xpon ont-interoperability-mode gpon cuc activemode immediate //华为OLT开去扩展OMCI
验证方式,OLT开启扩展OMCI后,要能正常注册,且capability中 Extended OMCI message format: support
  • 15
    点赞
  • 110
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值