华为OLT相关配置

华为OLT相关配置命令一.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165

display ont autofind all 发现的ONT
display ont info 0 1 all 板卡ONT查看
display ont info 0 1 0 6

display ont info by-sn 48575443B88D5138 根据SN查询ONT

board confirm 0 确认所有单板
board delete 0/10 删除10槽单板
display DBA-profile all 查询所有DBA模板
display ont-lineprofile gpon all 查询所有GPON线路模板
display ont-lineprofile epon all 查询所有EPON线路模板
display ont-srvprofile gpon all 查询所有GPON业务模板
display ont-srvprofile epon all 查询所有EPON业务模板

display board 0/0 查询单板信息
display vlan all 查询系统VLAN
display vlan number 查询所有类型VLAN数量

display ip routing-table 查询IP路由表信息
display temperature 0 查询系统背板温度
display power 0 查询设备用户功率
display version 查询系统信息运行时间
display current-configuration 查询系统配置信息
display io-packetfile information 查询系统板卡驱动
display progress load 查看加载进度
display progress upgrade 查询软件升级状态
display rogueont 0 all 查询流氓ONT
display statistics global 查询全局信息(ONT数量)
display data sync state 查询主备板同步
display ont optical-info 0 0 查询光猫光功率


display ont traffic 0 7 查看ONT实时流量(EPON)
display gemport traffic 0 3 gemindex 1 查看ONT实时流量(GPON)




interface gpon 0/1
ont activate 7 0 ONT激活
ont deactivate 7 0 ONT去激活
ont reset 7 0 ONT重启
ont factory-setting-restore 7 0 恢复出厂值


activate 激活ONT
add 添加ONT
alarm-policy 告警策略模板
alarm-profile ONT告警模板
cancel 删除自动发现的ONT
confirm 确认自动发现的ONT
cos-queue-map-profile 优先级队列映射模板
deactivate 去激活ONT
delete 删除ONT
factory-setting-restore ONT恢复出厂设置
gemport <组>ONT GEM Port配置命令组
ipconfig ONT IP配置信息
modify 修改ONT
optical-alarm-profile 光模块告警模板
port <组>port命令组
power-shedding-config ONT备电业务管理配置
re-discovery 重发现ONT
re-register 重注册ONT
remote-ping ONT远端ping操作
reset 重启ONT
snmp-profile ONT SNMP模板
snmp-route SNMP路由
tr069-server-config ONT配置TR069服务器管理信息

ont ipconfig 7 0 pppoe user-account username 03510005 password 328817 vlan 49




interface gpon 0/1
display port info 0 查看PON板的端口信息
display port state all 查看PON板的端口状态(光功率)
display ont register-info 0 1 查看ONU的注册信息
display ont version 0 1 查看ONU版本信息

system switch-over 主备板倒换
display history-command 显示配置用户的历史命令

删除ONU全部配置 erase flash data
删除流量模板 undo traffic table ip
系统激活 active configurationsystem
改名 sysname



上行板端口默认Vlan
interface giu 0/20 上行板20
native-vlan 0 vlan 1001 端口0默认Vlan 1001
native-vlan 1 vlan 50 端口1默认Vlan 50


华为ma5680t检查onu收光功率
1、检查ONU收光功率
MA5680T(config-if-gpon-0/1)#display ont optical-info 0 1 (0是端标语 1是ONU id 号)
2、检查ONU的情况
MA5680T(config-if-gpon-0/1)#display ont info 0 1 ( 0是端标语 1是ONU id 号)
3、检查PON板的端口信息
MA5680T(config-if-gpon-0/1)#display port info 0 (0是端标语
4、检查PON板的端口情况
MA5680T(config-if-gpon-0/1)#display port state 0 (0是端标语

查看设备所有告警
display alarm active all

display service-port port 0/2/5 ont 3 根据PON口位置查询业务 service-port port 配置.

删除业务
undo service-port 100

undo service-port port 0/1/7 ont 0 gemport 1
y



删除ONT
interface gpon 0/1
ont delete 0 2

修改ONT 描述
interface gpon 0/1
ont modify 0 2 desc


gpon
ont add 7 0 sn-auth "48575443B88D5138" omci ont-lineprofile-id 1 ont-srvprofile-id 1 desc "test"
ont add 0 1 sn-auth "5A544547C9CFD335" omci ont-lineprofile-id 1 ont-srvprofile-id 1 desc "pxh"
service-port 9 vlan 1001 gpon 0/1/7 ont 0 gemport 1 multi-service user-vlan 49 tag-transform translate


epon
ont add 4 0 mac-auth 1844-E675-6B17 oam ont-lineprofile-id 2 ont-srvprofile-id 2 desc "宏基广场消控室"
service-port vlan 100 epon 0/1/4 ont 0 multi-service user-vlan 1 tag-transform translate


删除ONT

GPON
删除ONT步骤
1必需先定位OLT的位置 display ont info by-sn 48575443B88D5138

2删除业务虚端口 undo service-port port 0/1/7 ont 0 gemport 1

3删除ONT interface gpon 0/1
ont delete 0 2




EPON
删除ONT步骤
1必需先定位OLT的位置 display ont info by-mac 1844-E675-6B17

2删除业务虚端口 undo service-port port 0/1/7 ont 0 gemport 1

3删除ONT interface epon 0/1
ont delete 0 2



华为OLT 脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
snmp-agent community read snmpwlann

snmp-agent community write wlannsnmp

snmp-agent sys-info version v2c

snmp-agent trap enable standard

snmp-agent target-host trap-hostname U2000 address 10.0.0.100 udp-port 161 trap-paramsname private

snmp-agent target-host trap-paramsname private v2c securityname private


dba-profile add profile-id 10 profile-name "dba-profile_10" type4 max 1000000


ont-srvprofile epon profile-id 2 profile-name "epon"

ont-port eth adaptive

commit

quit

ont-lineprofile epon profile-id 2 profile-name "epon"

llid dba-profile-id 10

commit

quit

ont-srvprofile gpon profile-id 1 profile-name "GPON"

ont-port eth adaptive

commit

quit

ont-lineprofile gpon profile-id 1 profile-name "GPON"

tcont 1 dba-profile-id 10

gem add 1 eth tcont 1

gem mapping 1 0 vlan 1

commit

quit

华为OLT 开局脚本命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
确认板卡
board confirm 0

更改设备名称
sysname XX-OLT001-MA5680T

更改系统时间
time 2021-11-18 20:13:00 ---------根据北京时间填写

配置链路聚合:
link-aggregation 0/19 0 0/20/0 0 egress-ingress workmode lacp-static
display link-aggregation all

创建VLAN
MA5800-X17(config)#vlan 1000 smart //创建VLAN
MA5800-X17(config)#port vlan 1000 0/9 0 //放通VLAN

创建管理IP地址
interface vlanif 1000
ip address 10.112.1.246 255.255.255.0
quit
ip route-static 0.0.0.0 0.0.0.0 10.112.1.1


开启自动保存
autosave interval on
autosave interval configuration 1440



配置dba模板
MA5800-X17(config)#dba-profile add profile-id 10 profile-name 10M type3 assure 10240 max 20480

配置光猫GPON业务模板
MA5800-X17(config)#ont-srvprofile gpon profile-id 10 profile-name "ALL"
MA5800-X17(config-gpon-srvprofile-10)#ont-port eth adaptive pots adaptive //网口和语音口自适应
MA5800-X17(config-gpon-srvprofile-10)#commit //一定要commit才会保存



配置光猫GPON线路模板
MA5800-X17(config)#ont-lineprofile gpon profile-id 10 profile-name ALL
MA5800-X17(config-gpon-lineprofile-10)#tcont 1 dba-profile-id 10 //绑定dba模板
MA5800-X17(config-gpon-lineprofile-10)#gem add 1 eth tcont 1 //添加gem
MA5800-X17(config-gpon-lineprofile-10)#gem mapping 1 0 vlan 1000 //添加用户VLAN 41 上网业务
MA5800-X17(config-gpon-lineprofile-10)#gem mapping 1 1 vlan 1001 //添加用户VLAN 41 上网业务
MA5800-X17(config-gpon-lineprofile-10)#gem mapping 1 2 vlan 1002 //IPTV
MA5800-X17(config-gpon-lineprofile-10)#gem mapping 1 3 vlan 1003 //监控业务
MA5800-X17(config-gpon-lineprofile-10)#gem mapping 1 4 vlan 1004
MA5800-X17(config-gpon-lineprofile-10)#commit //一定要commit才会保存

配置光猫EPON业务模板
MA5800-X17(config)# ont-srvprofile epon profile-id 10 profile-name ALL
MA5800-X17(config-epon-srvprofile-10)#ont-port eth adaptive pots adaptive
MA5800-X17(config-gpon-srvprofile-10)#commit //一定要commit才会保存

配置光猫EPON线路模板
ont-lineprofile epon profile-id 10 profile-name "ALL"
llid dba-profile-id 10
commit

组播配置
vlan 4021 smart
port vlan 4021 0/10 0 上行口
port vlan 4021 0/9 0 上行口

btv
multicast-vlan 4021
igmp uplink-port 0/9/0 上行口
igmp uplink-port 0/10/0 上行口
igmp version v2
y
igmp mode proxy



光猫注册:
ont add 1 0 sn-auth "485754432D8BCA9C" omci ont-lineprofile-id 20 ont-srvprofile-id 10 desc "ONT_NO_DESCRIPTION"
service-port vlan 1000 gpon 0/16/0 ont 0 gemport 1 multi-service user-vlan 1001 tag-transform translate //配置上网业务流
service-port vlan 4021 gpon 0/16/0 ont 0 gemport 1 multi-service user-vlan 1002 tag-transform translate //配置IPTV业务流

大ONU注册:
ont add 0 1 sn-auth "48575443135F5108" snmp ont-lineprofile-id 10 desc "ONT_NO_DESCRIPTION"
ont ipconfig 0 1 static ip-address 192.168.20.251 mask 255.255.255.0 vlan 1000 priority 5 gateway 192.168.20.10
service-port vlan 1000 gpon 0/16/0 ont 1 gemport 1 multi-service user-vlan 1000 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan 2000 gpon 0/16/0 ont 1 gemport 1 multi-service user-vlan 1001 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6

大ONU配置:
service-port vlan 2000 eth 0/1/1 multi-service user-vlan untagged rx-cttr 6 tx-cttr 6


添加账号
terminal user name

配置业务模板
ont-srvprofile gpon profile-id 12 profile-name Hn8546Q
ont-port eth adaptive pots adaptive
port vlan eth 1 translation 1 user-vlan 1
port vlan eth 2 translation 1 user-vlan 1
port vlan eth 3 translation 1 user-vlan 1
port vlan eth 4 translation 1 user-vlan 1
commit
quit


配置线路模板
ont-lineprofile gpon profile-id 12 profile-name Hn8546Q
tcont 1 dba-profile-id 10
gem add 1 eth tcont 1
gem mapping 1 0 vlan 1
commit
quit

配置光猫自己注册
ont auto-add-policy gpon equipment "HG8040" OMCI ont-lineprofie-id 12 ont-srvprofile-id 12 auto-confrm enable

display ont info 0 all

auo-service-port port 0 vlan 20 single-vlan onu-vlan-num 1 inbound traffic-table index 6 outbound traffic-table index 6


display curr ont 0/1/1 0 查看光猫配置




删除业务流
undo service-port port 0/1/0 ont 0

删除光猫
interface gpon 0/1
ont del 0 0