项目
现网中在使用的设备分别为ZTE C300、ZTE C600、HUAWEI MA5680、HUAWEI MA5800,每次PON口割接有大量割接集客数据需要制作,通过python来批量生成。
vlan规划
| 业务 |
vlan范围 |
| ONU管理 |
256-319 |
| HGU外层 |
321-384 |
| 互联网专线外层 |
512-575 |
| WLAN外层 |
576-639 |
| IMSDHCP外层 |
640-703 |
| 监控 |
703 |
| 语言 |
704 |
| VPN外层 |
896-959 |
| 拨号 |
1024-2047 |
| 组播 |
2176-2303 |
| 畅享型云专线 |
2304-2367 |
show vlan summary
1
2
3
4
5
6
|
XS_MaoYang_C600(config)# show vlan summary
All created vlan num: 15
Details are following:
1,10,39,300,320,340,531,659,703,784,915,1153
2040,2196,2387
Hardware operate fail following:
|
C300
互联网
show running-config interface gpon-onu_1/4/7:18
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
|
NH_ZongHeLou_C300(config)#show running-config interface gpon-onu_1/4/7:18
interface gpon-onu_1/4/7:18
name 宁波市宁海县宁海馨珑美容院-瑞斯康达ONU0001BIZ
sn-bind disable
tcont 1 name Tl1DefaultCreate allocid 270 profile JPKD_100M
gemport 1 name Tl1OpVlan4034 portid 161 tcont 1
gemport 1 traffic-limit downstream JPKD_100M
gemport 2 name Tl1OpVlan4039 portid 162 tcont 1
gemport 2 traffic-limit downstream JPKD_100M
service-port 1 vport 1 user-vlan 4034 vlan 362
service-port 1 description Tl1OpVlan4034
service-port 2 vport 2 user-vlan 4039 vlan 2050 svlan 516
service-port 2 description Tl1OpVlan4039
!
end
pon-onu-mng gpon-onu_1/4/7:18
service Tl1OpVlan4034 gemport 1 vlan 4034
service Tl1OpVlan4039 gemport 2 vlan 4039
!
pon-onu-mng gpon-onu_1/4/7:18
service Tl1OpVlan4034 gemport 1 vlan 4034
service Tl1OpVlan4039 gemport 2 vlan 4039
!
NH_ZongHeLou_C300(config)#show onu running config gpon-onu_1/4/7:18
pon-onu-mng gpon-onu_1/4/7:18
service Tl1OpVlan4034 gemport 1 vlan 4034
service Tl1OpVlan4039 gemport 2 vlan 4039
!
|
show service-port interface gpon-onu_1/2/8:2
1
2
3
4
5
6
7
8
|
NH_ZongHeLou_C300(config)#show service-port interface gpon-onu_1/2/8:2
Interface gpon-onu_1/2/8:2
Sport Vport BeginVid EndVid OuterVid InnerVid UserPrio Etype Vlan Cos SVlan SCos Tls TlsSVid Mode PacketFilter Ingress Egress Queue Status Enable
-----------------------------------------------------------------------------------------------------------------------------------------------------
1 1 4034 4034 -- -- -- -- 325 -- -- -- -- -- 1:1 -- -- -- -- OK YES
2 2 4031 4031 -- -- -- -- 134 -- 1480 -- -- -- 1:1 -- -- -- -- OK YES
Sport total number:
2
|
源设备 源端口 新设备 新端口
设备1 端口1 设备4 端口4
设备1 端口1 设备4 端口5
设备1 端口2 设备4 端口6
设备2 端口3 设备4 端口7
这是个excel表,需要通过python程序打印成
{‘设备1’: [{‘端口1’:[‘设备4’,‘端口4’],[‘设备4’,‘端口5’]},{‘端口2’:[‘设备4’,‘端口6’]}],‘设备2’: [{‘端口3’:[‘设备4’,‘端口7’]}]}
{‘宁波市鄞州区中兴陈婆渡接入机房-OLT01’: [‘1/4/7-18’], ‘宁波市鄞州区中兴陈婆渡接入机房-OLT02’: [‘1/6/1-29’]}
zte to zte
C300 to C300
C300 to C600
C600 to C300
C600 to C600
zte to huawei
C300 to huawei
C600 to huawei
huawei to zte
huawei to C300
huawei to C600
huawei to huawei
参考
正则表达式
当然,以下是一些常见的正则表达式示例,以及它们的用途:
匹配一个或多个字母、数字或下划线:\w+
示例:匹配单词
匹配一个或多个非空白字符:\S+
示例:匹配非空白单词或短语
匹配一个或多个数字:\d+
示例:匹配数字序列
匹配一个或多个空白字符:\s+
示例:匹配空格、制表符或换行符
匹配一个或多个字母:[a-zA-Z]+
示例:匹配英文单词
匹配一个或多个小写字母:[a-z]+
示例:匹配小写英文单词
匹配一个或多个大写字母:[A-Z]+
示例:匹配大写英文单词
匹配一个或多个数字和小数点:\d+(.\d+)?
示例:匹配浮点数
匹配一个或多个空格:[ ]+
示例:匹配一个或多个空格字符
匹配一个或多个特定字符(例如逗号、句号等):[,.]+
示例:匹配逗号或句号序列
匹配一个或多个非特定字符(例如不是逗号、句号等):[^,.]+
示例:匹配不包含逗号或句号的文本
这些是一些基本的正则表达式示例,你可以根据具体的需求来调整和扩展这些表达式。在实际使用中,根据需要选择适合的正则表达式来匹配文本模式。
读取excel
1
2
3
4
5
6
7
8
|
#这是使用语法,模糊匹配
df[ df['通信名称'].str.contains('联通|移动|小灵通|电信')]
#这一种方法不是匹配,而是等于后面列表中的值,要注意区别
df[ df['通信名称'].isin(['联通','移动','小灵通','电信'])]
#条件是多个
df[ df['通信名称'].str.contains('联通|移动|小灵通|电信') | df['通信备注'].str.contains('公告|活动|提示|优惠') ]
或者这样写
df[df["col1"].str.contains('this|that')==False and df["col2"].str.contains('foo|bar')==True]
|
替换数据
要替换文本中的 VLAN ID 和 GPON 口,你可以使用正则表达式进行匹配和替换。以下是一个示例代码:
python
Copy code
import re
text = “““service-port 1671 vlan 526 gpon 0/4/5 ont 4 gemport 1 multi-service user-vlan 4 tag-transform translate-and-add inner-vlan 2 inbound traffic-table index 18
outbound traffic-table index 10"””
定义要替换的 VLAN ID 和 GPON 口
new_vlan_id = “NEW_VLAN_ID”
new_gpon_port = “NEW_GPON_PORT”
使用正则表达式进行替换
new_text = re.sub(r’vlan\s+\d+’, f’vlan {new_vlan_id}’, text)
new_text = re.sub(r’gpon\s+\S+’, f’gpon {new_gpon_port}’, new_text)
print(new_text)
读取olt vlan
获取olt vlan
dispaly vlan all
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
|
NB-YY-HuBeiXiJieDian-MA5800-OLT199(config)#display vlan all
{ <cr>|vlanattr<K>|vlantype<E><mux,standard,smart,super>||<K> }:
命令:
display vlan all
-----------------------------------------------------------------------
VLAN 类型 属性 标准端口数量 业务端口数量 VLAN连接数量
-----------------------------------------------------------------------
1 smart common 8 0 -
12 smart common 2 0 -
39 smart common 2 0 -
285 smart common 2 0 -
320 smart common 2 0 -
355 smart common 2 1 -
546 smart stacking 2 0 -
674 smart stacking 2 0 -
703 smart stacking 2 0 -
704 smart stacking 2 0 -
778 smart stacking 2 0 -
930 smart stacking 2 0 -
2031 smart stacking 2 1 -
2040 smart stacking 2 0 -
2211 smart stacking 2 0 -
2402 smart stacking 2 0 -
-----------------------------------------------------------------------
总数: 16
|
巡检vlan
读取老数据
匹配新vlan
根据源vlan匹配新vlan
LOG
HUAWEI1
old
display current-configuration ont 0/2/0 0
display ont profile 0 2 0 0
new
display ont-lineprofile gpon profile-name MA561Xnew
display ont-lineprofile gpon profile-name MA562Xnew
log
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NH_ZongHeLou_MA5680T>enable
NH_ZongHeLou_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NH_ZongHeLou_MA5680T#config
NH_ZongHeLou_MA5680T(config)#scroll
NH_ZongHeLou_MA5680T(config)#display current-configuration ont 0/2/0 0
[MA5600V800R018: 8510]
#
[gpon]
<gpon-0/2>
interface gpon 0/2
ont add 0 0 sn-auth "4857544367B5D430" snmp ont-lineprofile-id 50 desc "宁波市 宁海区综合楼公安局WLAN-ONU0001"
ont optical-alarm-profile 0 0 profile-id 4
ont ipconfig 0 0 static ip-address 10.208.97.82 mask 255.255.240.0 vlan 8
priority 0 gateway 10.208.96.1
#
[bbs-config]
<bbs-config>
service-port 974 vlan 8 gpon 0/2/0 ont 0 gemport 0 multi-service user-vlan 8
tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
service-port 975 vlan 3402 gpon 0/2/0 ont 0 gemport 1 multi-service user-vlan 3402 tag-transform translate inbound traffic-table index 6 outbound
traffic-table index 6
service-port 976 vlan 3303 gpon 0/2/0 ont 0 gemport 5 multi-service user-vlan 3303 tag-transform translate inbound traffic-table index 6 outbound
traffic-table index 6
service-port 1017 vlan 3300 gpon 0/2/0 ont 0 gemport 5 multi-service user-vlan 3300 tag-transform translate inbound traffic-table index 6 outbound
traffic-table index 6
service-port 6462 vlan 3490 gpon 0/2/0 ont 0 gemport 6 multi-service user-vlan 3490 tag-transform translate inbound traffic-table index 6 outbound
traffic-table index 6
#
return
NH_ZongHeLou_MA5680T(config)#display ont profile 0 2 0 0
-----------------------------------------------------------------------------
端口 0/ 2/ 0
-----------------------------------------------------------------------------
ONT编号 线路模板名称 业务模板名称
-----------------------------------------------------------------------------
0 MA561Xnew -
-----------------------------------------------------------------------------
NH_ZongHeLou_MA5680T(config)#
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NB_NH_ZongHeLou2_MA5680T>enable
NB_NH_ZongHeLou2_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NB_NH_ZongHeLou2_MA5680T#config
NB_NH_ZongHeLou2_MA5680T(config)#scroll
{ <cr>|number<U><10,512> }:
命令:
scroll
NB_NH_ZongHeLou2_MA5680T(config)#display ont-lineprofile gpon profile-name MA561Xnew
失败: 线路模板不存在
NB_NH_ZongHeLou2_MA5680T(config)#display ont-lineprofile gpon profile-name MA562Xnew
------------------------------------------------------------------------------
模板编号 :60
模板名称 :MA562Xnew
接入类型 :GPON
------------------------------------------------------------------------------
上行FEC开关 :去使能
OMCC加密开关 :关闭
QoS模式 :PQ
映射模式 :VLAN
TR069管理模式:去使能
TR069 IP索引 :0
------------------------------------------------------------------------------
<T-CONT 0> DBA模板ID:1
<T-CONT 1> DBA模板ID:10
<GEM Index 0>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 8 - - - - - -
1 12 - - - - - -
2 13 - - - - - -
--------------------------------------------------------------------
<T-CONT 2> DBA模板ID:13
<GEM Index 1>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 4001 - - - - - -
1 3402 - - - - - -
2 3303 - - - - - -
3 3300 - - - - - -
4 3490 - - - - - -
5 3332 - - - - - -
6 3489 - - - - - -
7 3301 - - - - - -
--------------------------------------------------------------------
<GEM Index 3>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3331 - - - - - -
1 3495 - - - - - -
2 3494 - - - - - -
3 3302 - - - - - -
4 1017 - - - - - -
5 2079 - - - - - -
6 102 - - - - - -
7 103 - - - - - -
--------------------------------------------------------------------
<GEM Index 4>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 101 - - - - - -
1 3499 - - - - - -
2 3482 - - - - - -
3 1029 - - - - - -
4 3330 - - - - - -
5 3096 - - - - - -
6 2139 - - - - - -
7 2161 - - - - - -
--------------------------------------------------------------------
<GEM Index 5>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3079 - - - - - -
1 1002 - - - - - -
2 1020 - - - - - -
3 1024 - - - - - -
4 190 - - - - - -
5 2051 - - - - - -
6 3483 - - - - - -
7 1007 - - - - - -
--------------------------------------------------------------------
<GEM Index 6>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3052 - - - - - -
1 3062 - - - - - -
2 3493 - - - - - -
3 1006 - - - - - -
4 3375 - - - - - -
5 2059 - - - - - -
6 3401 - - - - - -
7 3491 - - - - - -
--------------------------------------------------------------------
<GEM Index 7>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3053 - - - - - -
1 3063 - - - - - -
2 2138 - - - - - -
3 2163 - - - - - -
4 2170 - - - - - -
5 2172 - - - - - -
6 2145 - - - - - -
7 2073 - - - - - -
--------------------------------------------------------------------
<GEM Index 8>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 104 - - - - - -
1 105 - - - - - -
2 106 - - - - - -
3 107 - - - - - -
4 108 - - - - - -
5 109 - - - - - -
6 110 - - - - - -
7 111 - - - - - -
--------------------------------------------------------------------
<GEM Index 9>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 112 - - - - - -
1 113 - - - - - -
2 114 - - - - - -
3 115 - - - - - -
4 116 - - - - - -
5 117 - - - - - -
6 118 - - - - - -
7 119 - - - - - -
--------------------------------------------------------------------
<GEM Index 10>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 120 - - - - - -
1 121 - - - - - -
2 122 - - - - - -
3 123 - - - - - -
4 124 - - - - - -
--------------------------------------------------------------------
<T-CONT 3> DBA模板ID:11
<GEM Index 2>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 64 - - - - - -
1 32 - - - - - -
2 70 - - - - - -
--------------------------------------------------------------------
------------------------------------------------------------------------------
说明: 通过display traffic table ip命令查看traffic table配置
------------------------------------------------------------------------------
绑定次数 :58
------------------------------------------------------------------------------
NB_NH_ZongHeLou2_MA5680T(config)#
****************************************************
* 任 务 完 成 *
****************************************************
|
HUAWEI2
old
display current-configuration ont 0/2/0 6
display ont profile 0 2 0 6
new
display ont-lineprofile gpon profile-name MA562X-80
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
|
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NH_ZongHeLou_MA5680T>enable
NH_ZongHeLou_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NH_ZongHeLou_MA5680T#config
NH_ZongHeLou_MA5680T(config)#scroll
{ <cr>|number<U><10,512> }:
命令:
scroll
NH_ZongHeLou_MA5680T(config)#display current-configuration ont 0/2/0 6
[MA5600V800R018: 8510]
#
[gpon]
<gpon-0/2>
interface gpon 0/2
ont add 0 6 sn-auth "48575443EAFD6960" snmp ont-lineprofile-id 80 desc "宁波市 宁海区综合楼宁波得力电子商务有限公司-ONU0002"
ont ipconfig 0 6 static ip-address 10.208.96.224 mask 255.255.240.0 vlan 8
priority 5 gateway 10.208.96.1
#
[bbs-config]
<bbs-config>
service-port 5748 vlan 8 gpon 0/2/0 ont 6 gemport 0 multi-service user-vlan 8 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
service-port 5749 vlan 640 gpon 0/2/0 ont 6 gemport 2 multi-service user-vlan 64 tag-transform translate-and-add inner-vlan 10 inbound traffic-table index 6 outbound traffic-table index 6
#
return
NH_ZongHeLou_MA5680T(config)#display ont profile 0 2 0 6
-----------------------------------------------------------------------------
端口 0/ 2/ 0
-----------------------------------------------------------------------------
ONT编号 线路模板名称 业务模板名称
-----------------------------------------------------------------------------
6 MA562X-80 -
-----------------------------------------------------------------------------
NH_ZongHeLou_MA5680T(config)#
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NB_NH_ZongHeLou2_MA5680T>enable
NB_NH_ZongHeLou2_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NB_NH_ZongHeLou2_MA5680T#config
NB_NH_ZongHeLou2_MA5680T(config)#scroll
{ <cr>|number<U><10,512> }:
命令:
scroll
NB_NH_ZongHeLou2_MA5680T(config)#display ont-lineprofile gpon profile-name MA562X-80
失败: 线路模板不存在
NB_NH_ZongHeLou2_MA5680T(config)#display ont-lineprofile gpon profile-name MA562Xnew
------------------------------------------------------------------------------
模板编号 :60
模板名称 :MA562Xnew
接入类型 :GPON
------------------------------------------------------------------------------
上行FEC开关 :去使能
OMCC加密开关 :关闭
QoS模式 :PQ
映射模式 :VLAN
TR069管理模式:去使能
TR069 IP索引 :0
------------------------------------------------------------------------------
<T-CONT 0> DBA模板ID:1
<T-CONT 1> DBA模板ID:10
<GEM Index 0>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 8 - - - - - -
1 12 - - - - - -
2 13 - - - - - -
--------------------------------------------------------------------
<T-CONT 2> DBA模板ID:13
<GEM Index 1>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 4001 - - - - - -
1 3402 - - - - - -
2 3303 - - - - - -
3 3300 - - - - - -
4 3490 - - - - - -
5 3332 - - - - - -
6 3489 - - - - - -
7 3301 - - - - - -
--------------------------------------------------------------------
<GEM Index 3>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3331 - - - - - -
1 3495 - - - - - -
2 3494 - - - - - -
3 3302 - - - - - -
4 1017 - - - - - -
5 2079 - - - - - -
6 102 - - - - - -
7 103 - - - - - -
--------------------------------------------------------------------
<GEM Index 4>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 101 - - - - - -
1 3499 - - - - - -
2 3482 - - - - - -
3 1029 - - - - - -
4 3330 - - - - - -
5 3096 - - - - - -
6 2139 - - - - - -
7 2161 - - - - - -
--------------------------------------------------------------------
<GEM Index 5>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3079 - - - - - -
1 1002 - - - - - -
2 1020 - - - - - -
3 1024 - - - - - -
4 190 - - - - - -
5 2051 - - - - - -
6 3483 - - - - - -
7 1007 - - - - - -
--------------------------------------------------------------------
<GEM Index 6>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3052 - - - - - -
1 3062 - - - - - -
2 3493 - - - - - -
3 1006 - - - - - -
4 3375 - - - - - -
5 2059 - - - - - -
6 3401 - - - - - -
7 3491 - - - - - -
--------------------------------------------------------------------
<GEM Index 7>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3053 - - - - - -
1 3063 - - - - - -
2 2138 - - - - - -
3 2163 - - - - - -
4 2170 - - - - - -
5 2172 - - - - - -
6 2145 - - - - - -
7 2073 - - - - - -
--------------------------------------------------------------------
<GEM Index 8>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 104 - - - - - -
1 105 - - - - - -
2 106 - - - - - -
3 107 - - - - - -
4 108 - - - - - -
5 109 - - - - - -
6 110 - - - - - -
7 111 - - - - - -
--------------------------------------------------------------------
<GEM Index 9>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 112 - - - - - -
1 113 - - - - - -
2 114 - - - - - -
3 115 - - - - - -
4 116 - - - - - -
5 117 - - - - - -
6 118 - - - - - -
7 119 - - - - - -
--------------------------------------------------------------------
<GEM Index 10>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 120 - - - - - -
1 121 - - - - - -
2 122 - - - - - -
3 123 - - - - - -
4 124 - - - - - -
--------------------------------------------------------------------
<T-CONT 3> DBA模板ID:11
<GEM Index 2>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 64 - - - - - -
1 32 - - - - - -
2 70 - - - - - -
--------------------------------------------------------------------
------------------------------------------------------------------------------
说明: 通过display traffic table ip命令查看traffic table配置
------------------------------------------------------------------------------
绑定次数 :58
------------------------------------------------------------------------------
NB_NH_ZongHeLou2_MA5680T(config)#
****************************************************
* 任 务 完 成 *
****************************************************
|
huawei3
old
display current-configuration ont 0/2/1 15
display ont profile 0 2 1 15
display traffic table ip index 8
display traffic table ip index 22
service-port 4031 vlan 896 gpon 0/2/1 ont 15 gemport 4 multi-service user-vlan 102 tag-transform translate-and-add inner-vlan 1072 inner-priority 0 inbound
traffic-table index 8 outbound traffic-table index 8
service-port 4036 vlan 896 gpon 0/2/1 ont 15 gemport 5 multi-service user-vlan 103 tag-transform translate-and-add inner-vlan 1073 inner-priority 0 inbound
traffic-table index 22 outbound traffic-table index 22
new
display ont-lineprofile gpon profile-name ZQKH_MDU
display ont-lineprofile gpon profile-name MA562Xnew
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
|
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NH_ZongHeLou_MA5680T>enable
NH_ZongHeLou_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NH_ZongHeLou_MA5680T#config
NH_ZongHeLou_MA5680T(config)#scroll
{ <cr>|number<U><10,512> }:
命令:
scroll
NH_ZongHeLou_MA5680T(config)#display current-configuration ont 0/2/1 15
[MA5600V800R018: 8510]
#
[gpon]
<gpon-0/2>
interface gpon 0/2
ont add 1 15 sn-auth "485754438B07999C" snmp ont-lineprofile-id 13 desc "宁波市宁海区综合楼中移铁通有限公司宁波分公司-ONU0001"
ont ipconfig 1 15 static ip-address 10.208.106.24 mask 255.255.240.0 vlan 8
priority 5 gateway 10.208.96.1
#
[bbs-config]
<bbs-config>
service-port 433 vlan 8 gpon 0/2/1 ont 15 gemport 1 multi-service user-vlan 8 tag-transform translate
service-port 439 vlan 512 gpon 0/2/1 ont 15 gemport 3 multi-service user-vlan 2079 tag-transform translate-and-add inner-vlan 3154 inner-priority 0
service-port 483 vlan 640 gpon 0/2/1 ont 15 gemport 2 multi-service user-vlan 32 tag-transform translate-and-add inner-vlan 72 inner-priority 0
service-port 4031 vlan 896 gpon 0/2/1 ont 15 gemport 4 multi-service user-vlan 102 tag-transform translate-and-add inner-vlan 1072 inner-priority 0 inbound
traffic-table index 8 outbound traffic-table index 8
service-port 4036 vlan 896 gpon 0/2/1 ont 15 gemport 5 multi-service user-vlan 103 tag-transform translate-and-add inner-vlan 1073 inner-priority 0 inbound
traffic-table index 22 outbound traffic-table index 22
#
return
NH_ZongHeLou_MA5680T(config)#display ont profile 0 2 1 15
-----------------------------------------------------------------------------
端口 0/ 2/ 1
-----------------------------------------------------------------------------
ONT编号 线路模板名称 业务模板名称
-----------------------------------------------------------------------------
15 ZQKH_MDU -
-----------------------------------------------------------------------------
NH_ZongHeLou_MA5680T(config)#display traffic table ip index 8
----------------------------------------
流量模板索引 : 8
流量模板名称 : Cir_HSI_10M_Pri0
优先级 : 0
优先级拷贝策略 : -
优先级映射模板索引 : -
CTAG优先级映射策略 : -
CTAG优先级映射模板索引: -
CTAG默认优先级 : 0
优先级调度策略 : tag-pri
CIR : 10240 kbps
CBS : 329680 bytes
PIR : 20480 kbps
PBS : 657360 bytes
Fix : 0 kbps
优先级CAR门限模板 : -
颜色感知模式 : color-blind
颜色策略 : dei
引用状态 : used
E2E优先级映射策略 : -
E2E优先级映射模板索引 : -
E2E默认优先级 : -
黄色WRR权重 : auto
绿色WRR权重 : auto
----------------------------------------
NH_ZongHeLou_MA5680T(config)#display traffic table ip index 8
----------------------------------------
流量模板索引 : 8
流量模板名称 : Cir_HSI_10M_Pri0
优先级 : 0
优先级拷贝策略 : -
优先级映射模板索引 : -
CTAG优先级映射策略 : -
CTAG优先级映射模板索引: -
CTAG默认优先级 : 0
优先级调度策略 : tag-pri
CIR : 10240 kbps
CBS : 329680 bytes
PIR : 20480 kbps
PBS : 657360 bytes
Fix : 0 kbps
优先级CAR门限模板 : -
颜色感知模式 : color-blind
颜色策略 : dei
引用状态 : used
E2E优先级映射策略 : -
E2E优先级映射模板索引 : -
E2E默认优先级 : -
黄色WRR权重 : auto
绿色WRR权重 : auto
----------------------------------------
NH_ZongHeLou_MA5680T(config)#display traffic table ip index 22
----------------------------------------
流量模板索引 : 22
流量模板名称 : HIS_10M
优先级 : 0
优先级拷贝策略 : -
优先级映射模板索引 : -
CTAG优先级映射策略 : -
CTAG优先级映射模板索引: -
CTAG默认优先级 : 0
优先级调度策略 : local-pri
CIR : 10240 kbps
CBS : 329680 bytes
PIR : 10240 kbps
PBS : 329680 bytes
Fix : 0 kbps
优先级CAR门限模板 : -
颜色感知模式 : color-blind
颜色策略 : dei
引用状态 : used
E2E优先级映射策略 : -
E2E优先级映射模板索引 : -
E2E默认优先级 : -
黄色WRR权重 : auto
绿色WRR权重 : auto
----------------------------------------
NH_ZongHeLou_MA5680T(config)#display traffic table ip index 22
----------------------------------------
流量模板索引 : 22
流量模板名称 : HIS_10M
优先级 : 0
优先级拷贝策略 : -
优先级映射模板索引 : -
CTAG优先级映射策略 : -
CTAG优先级映射模板索引: -
CTAG默认优先级 : 0
优先级调度策略 : local-pri
CIR : 10240 kbps
CBS : 329680 bytes
PIR : 10240 kbps
PBS : 329680 bytes
Fix : 0 kbps
优先级CAR门限模板 : -
颜色感知模式 : color-blind
颜色策略 : dei
引用状态 : used
E2E优先级映射策略 : -
E2E优先级映射模板索引 : -
E2E默认优先级 : -
黄色WRR权重 : auto
绿色WRR权重 : auto
----------------------------------------
NH_ZongHeLou_MA5680T(config)#
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NB_NH_ZongHeLou2_MA5680T>enable
NB_NH_ZongHeLou2_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NB_NH_ZongHeLou2_MA5680T#config
NB_NH_ZongHeLou2_MA5680T(config)#scroll
{ <cr>|number<U><10,512> }:
命令:
scroll
NB_NH_ZongHeLou2_MA5680T(config)#display ont-lineprofile gpon profile-name ZQKH_MDU
失败: 线路模板不存在
NB_NH_ZongHeLou2_MA5680T(config)#display ont-lineprofile gpon profile-name MA562Xnew
------------------------------------------------------------------------------
模板编号 :60
模板名称 :MA562Xnew
接入类型 :GPON
------------------------------------------------------------------------------
上行FEC开关 :去使能
OMCC加密开关 :关闭
QoS模式 :PQ
映射模式 :VLAN
TR069管理模式:去使能
TR069 IP索引 :0
------------------------------------------------------------------------------
<T-CONT 0> DBA模板ID:1
<T-CONT 1> DBA模板ID:10
<GEM Index 0>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 8 - - - - - -
1 12 - - - - - -
2 13 - - - - - -
--------------------------------------------------------------------
<T-CONT 2> DBA模板ID:13
<GEM Index 1>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 4001 - - - - - -
1 3402 - - - - - -
2 3303 - - - - - -
3 3300 - - - - - -
4 3490 - - - - - -
5 3332 - - - - - -
6 3489 - - - - - -
7 3301 - - - - - -
--------------------------------------------------------------------
<GEM Index 3>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3331 - - - - - -
1 3495 - - - - - -
2 3494 - - - - - -
3 3302 - - - - - -
4 1017 - - - - - -
5 2079 - - - - - -
6 102 - - - - - -
7 103 - - - - - -
--------------------------------------------------------------------
<GEM Index 4>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 101 - - - - - -
1 3499 - - - - - -
2 3482 - - - - - -
3 1029 - - - - - -
4 3330 - - - - - -
5 3096 - - - - - -
6 2139 - - - - - -
7 2161 - - - - - -
--------------------------------------------------------------------
<GEM Index 5>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3079 - - - - - -
1 1002 - - - - - -
2 1020 - - - - - -
3 1024 - - - - - -
4 190 - - - - - -
5 2051 - - - - - -
6 3483 - - - - - -
7 1007 - - - - - -
--------------------------------------------------------------------
<GEM Index 6>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3052 - - - - - -
1 3062 - - - - - -
2 3493 - - - - - -
3 1006 - - - - - -
4 3375 - - - - - -
5 2059 - - - - - -
6 3401 - - - - - -
7 3491 - - - - - -
--------------------------------------------------------------------
<GEM Index 7>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3053 - - - - - -
1 3063 - - - - - -
2 2138 - - - - - -
3 2163 - - - - - -
4 2170 - - - - - -
5 2172 - - - - - -
6 2145 - - - - - -
7 2073 - - - - - -
--------------------------------------------------------------------
<GEM Index 8>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 104 - - - - - -
1 105 - - - - - -
2 106 - - - - - -
3 107 - - - - - -
4 108 - - - - - -
5 109 - - - - - -
6 110 - - - - - -
7 111 - - - - - -
--------------------------------------------------------------------
<GEM Index 9>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 112 - - - - - -
1 113 - - - - - -
2 114 - - - - - -
3 115 - - - - - -
4 116 - - - - - -
5 117 - - - - - -
6 118 - - - - - -
7 119 - - - - - -
--------------------------------------------------------------------
<GEM Index 10>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 120 - - - - - -
1 121 - - - - - -
2 122 - - - - - -
3 123 - - - - - -
4 124 - - - - - -
--------------------------------------------------------------------
<T-CONT 3> DBA模板ID:11
<GEM Index 2>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 64 - - - - - -
1 32 - - - - - -
2 70 - - - - - -
--------------------------------------------------------------------
------------------------------------------------------------------------------
说明: 通过display traffic table ip命令查看traffic table配置
------------------------------------------------------------------------------
绑定次数 :66
------------------------------------------------------------------------------
NB_NH_ZongHeLou2_MA5680T(config)#
****************************************************
* 任 务 完 成 *
****************************************************
|
HUAWEI4
old
display current-configuration ont 0/5/4 2
display ont profile 0 5 4 2
new
display ont-lineprofile gpon profile-name MA562Xnew
ont-lineprofile gpon profile-name MA562Xnew
gem mapping 10 5 vlan 3054
gem mapping 10 6 vlan 3064
commit
quit
interface gpon 0/3
ont add 1 2 sn-auth “48575443AACCC342” snmp ont-lineprofile-name MA562Xnew desc “VIP-”
ont ipconfig 1 2 static ip-address 10.208.97.167 mask 255.255.240.0 vlan 8 priority 0 gateway 10.208.96.1
quit
service-port vlan 3054 gpon 0/3/1 ont 2 gemport 10 multi-service user-vlan 3054 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan 3064 gpon 0/3/1 ont 2 gemport 10 multi-service user-vlan 3064 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan 8 gpon 0/3/1 ont 2 gemport 0 multi-service user-vlan 8 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
|
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NH_ZongHeLou_MA5680T>enable
NH_ZongHeLou_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NH_ZongHeLou_MA5680T#config
NH_ZongHeLou_MA5680T(config)#scroll
{ <cr>|number<U><10,512> }:
命令:
scroll
NH_ZongHeLou_MA5680T(config)#display current-configuration ont 0/5/4 2
[MA5600V800R018: 8510]
#
[gpon]
<gpon-0/5>
interface gpon 0/5
ont add 4 2 sn-auth "48575443AACCC342" snmp ont-lineprofile-id 60 desc "VIP-"
ont ipconfig 4 2 static ip-address 10.208.97.167 mask 255.255.240.0 vlan 8
priority 0 gateway 10.208.96.1
#
[bbs-config]
<bbs-config>
service-port 3199 vlan 3054 gpon 0/5/4 ont 2 gemport 7 multi-service user-vlan 3054 tag-transform translate inbound traffic-table index 6 outbound
traffic-table index 6
service-port 3200 vlan 3064 gpon 0/5/4 ont 2 gemport 7 multi-service user-vlan 3064 tag-transform translate inbound traffic-table index 6 outbound
traffic-table index 6
service-port 3201 vlan 8 gpon 0/5/4 ont 2 gemport 0 multi-service user-vlan 8 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
#
return
NH_ZongHeLou_MA5680T(config)#display ont profile 0 5 4 2
-----------------------------------------------------------------------------
端口 0/ 5/ 4
-----------------------------------------------------------------------------
ONT编号 线路模板名称 业务模板名称
-----------------------------------------------------------------------------
2 MA562Xnew -
-----------------------------------------------------------------------------
NH_ZongHeLou_MA5680T(config)#
Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.
>>User name:root
>>User password:
NB_NH_ZongHeLou2_MA5680T>enable
NB_NH_ZongHeLou2_MA5680T#switch language-mode
当前语言模式已切换到本地语种
NB_NH_ZongHeLou2_MA5680T#config
NB_NH_ZongHeLou2_MA5680T(config)#scroll
{ <cr>|number<U><10,512> }:
命令:
scroll
NB_NH_ZongHeLou2_MA5680T(config)#display ont-lineprofile gpon profile-name MA562Xnew
------------------------------------------------------------------------------
模板编号 :60
模板名称 :MA562Xnew
接入类型 :GPON
------------------------------------------------------------------------------
上行FEC开关 :去使能
OMCC加密开关 :关闭
QoS模式 :PQ
映射模式 :VLAN
TR069管理模式:去使能
TR069 IP索引 :0
------------------------------------------------------------------------------
<T-CONT 0> DBA模板ID:1
<T-CONT 1> DBA模板ID:10
<GEM Index 0>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 8 - - - - - -
1 12 - - - - - -
2 13 - - - - - -
--------------------------------------------------------------------
<T-CONT 2> DBA模板ID:13
<GEM Index 1>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 4001 - - - - - -
1 3402 - - - - - -
2 3303 - - - - - -
3 3300 - - - - - -
4 3490 - - - - - -
5 3332 - - - - - -
6 3489 - - - - - -
7 3301 - - - - - -
--------------------------------------------------------------------
<GEM Index 3>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3331 - - - - - -
1 3495 - - - - - -
2 3494 - - - - - -
3 3302 - - - - - -
4 1017 - - - - - -
5 2079 - - - - - -
6 102 - - - - - -
7 103 - - - - - -
--------------------------------------------------------------------
<GEM Index 4>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 101 - - - - - -
1 3499 - - - - - -
2 3482 - - - - - -
3 1029 - - - - - -
4 3330 - - - - - -
5 3096 - - - - - -
6 2139 - - - - - -
7 2161 - - - - - -
--------------------------------------------------------------------
<GEM Index 5>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3079 - - - - - -
1 1002 - - - - - -
2 1020 - - - - - -
3 1024 - - - - - -
4 190 - - - - - -
5 2051 - - - - - -
6 3483 - - - - - -
7 1007 - - - - - -
--------------------------------------------------------------------
<GEM Index 6>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3052 - - - - - -
1 3062 - - - - - -
2 3493 - - - - - -
3 1006 - - - - - -
4 3375 - - - - - -
5 2059 - - - - - -
6 3401 - - - - - -
7 3491 - - - - - -
--------------------------------------------------------------------
<GEM Index 7>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 3053 - - - - - -
1 3063 - - - - - -
2 2138 - - - - - -
3 2163 - - - - - -
4 2170 - - - - - -
5 2172 - - - - - -
6 2145 - - - - - -
7 2073 - - - - - -
--------------------------------------------------------------------
<GEM Index 8>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 104 - - - - - -
1 105 - - - - - -
2 106 - - - - - -
3 107 - - - - - -
4 108 - - - - - -
5 109 - - - - - -
6 110 - - - - - -
7 111 - - - - - -
--------------------------------------------------------------------
<GEM Index 9>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 112 - - - - - -
1 113 - - - - - -
2 114 - - - - - -
3 115 - - - - - -
4 116 - - - - - -
5 117 - - - - - -
6 118 - - - - - -
7 119 - - - - - -
--------------------------------------------------------------------
<GEM Index 10>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 120 - - - - - -
1 121 - - - - - -
2 122 - - - - - -
3 123 - - - - - -
4 124 - - - - - -
--------------------------------------------------------------------
<T-CONT 3> DBA模板ID:11
<GEM Index 2>
--------------------------------------------------------------------
|业务类型:ETH |下行加密:关 |级联属性:关 |GEM-CAR:- |
|上行优先级:0 |下行优先级:- |
--------------------------------------------------------------------
映射索引 VLAN 优先级 端口类型 端口索引 绑定组ID Flow-CAR 透传
--------------------------------------------------------------------
0 64 - - - - - -
1 32 - - - - - -
2 70 - - - - - -
--------------------------------------------------------------------
------------------------------------------------------------------------------
说明: 通过display traffic table ip命令查看traffic table配置
------------------------------------------------------------------------------
绑定次数 :73
------------------------------------------------------------------------------
NB_NH_ZongHeLou2_MA5680T(config)#
****************************************************
* 任 务 完 成 *
****************************************************
ont-lineprofile gpon profile-name MA562Xnew
gem mapping 10 5 vlan 3054
gem mapping 10 6 vlan 3064
commit
quit
interface gpon 0/3
ont add 1 2 sn-auth "48575443AACCC342" snmp ont-lineprofile-name MA562Xnew desc "VIP-"
ont ipconfig 1 2 static ip-address 10.208.97.167 mask 255.255.240.0 vlan 8 priority 0 gateway 10.208.96.1
quit
service-port vlan 3054 gpon 0/3/1 ont 2 gemport 10 multi-service user-vlan 3054 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan 3064 gpon 0/3/1 ont 2 gemport 10 multi-service user-vlan 3064 tag-transform translate inbound traffic-table index 6 outbound traffic-table index 6
service-port vlan 8 gpon 0/3/1 ont 2 gemport 0 multi-service user-vlan 8 tag-transform transparent inbound traffic-table index 6 outbound traffic-table index 6
|