aboutsummaryrefslogtreecommitdiffstats
path: root/tests/neighbor_ident.vty
blob: 2ce2231f574508bcfed8f6ef8e2bcce3f11ff43c (plain)
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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
OsmoBSC> ### Neighbor-BSS Cell Identifier List config

OsmoBSC> list
...
  show bts <0-255> neighbor arfcn <0-1023> bsic (<0-63>|any)
...

OsmoBSC> enable
OsmoBSC# list
...
  show bts <0-255> neighbor arfcn <0-1023> bsic (<0-63>|any)
...

OsmoBSC# configure terminal
OsmoBSC(config)# network

OsmoBSC(config-net)# bts 0
OsmoBSC(config-net-bts)# type sysmobts
OsmoBSC(config-net-bts)# base_station_id_code 10
OsmoBSC(config-net-bts)# location_area_code 20
OsmoBSC(config-net-bts)# cell_identity 30
OsmoBSC(config-net-bts)# trx 0
OsmoBSC(config-net-bts-trx)# arfcn 40
OsmoBSC(config-net-bts-trx)# exit
OsmoBSC(config-net-bts)# exit

OsmoBSC(config-net)# bts 1
OsmoBSC(config-net-bts)# type sysmobts
OsmoBSC(config-net-bts)# base_station_id_code 11
OsmoBSC(config-net-bts)# location_area_code 21
OsmoBSC(config-net-bts)# cell_identity 31
OsmoBSC(config-net-bts)# trx 0
OsmoBSC(config-net-bts-trx)# arfcn 41
OsmoBSC(config-net-bts-trx)# exit
OsmoBSC(config-net-bts)# exit

OsmoBSC(config-net)# bts 2
OsmoBSC(config-net-bts)# type sysmobts
OsmoBSC(config-net-bts)# base_station_id_code 12
OsmoBSC(config-net-bts)# location_area_code 22
OsmoBSC(config-net-bts)# cell_identity 65535
OsmoBSC(config-net-bts)# trx 0
OsmoBSC(config-net-bts-trx)# arfcn 42
OsmoBSC(config-net-bts-trx)# exit
OsmoBSC(config-net-bts)# exit

OsmoBSC(config-net)# show running-config
...
 bts 0
...
  cell_identity 30
  location_area_code 20
  base_station_id_code 10
...
  trx 0
...
   arfcn 40
...
 bts 1
...
  cell_identity 31
  location_area_code 21
  base_station_id_code 11
...
  trx 0
...
   arfcn 41
...
 bts 2
...
  cell_identity 65535
  location_area_code 22
  base_station_id_code 12
...
  trx 0
...
   arfcn 42
...

OsmoBSC(config-net)# bts 0
OsmoBSC(config-net-bts)# list
...
  neighbor bts <0-255>
  neighbor lac <0-65535>
  neighbor lac-ci <0-65535> <0-65535>
  neighbor cgi <0-999> <0-999> <0-65535> <0-65535>
  neighbor lac <0-65535> arfcn <0-1023> bsic (<0-63>|any)
  neighbor lac-ci <0-65535> <0-65535> arfcn <0-1023> bsic (<0-63>|any)
  neighbor cgi <0-999> <0-999> <0-65535> <0-65535> arfcn <0-1023> bsic (<0-63>|any)
  no neighbor bts <0-255>
  no neighbor arfcn <0-1023> bsic (<0-63>|any)
...

OsmoBSC(config-net-bts)# neighbor?
  neighbor  Manage local and remote-BSS neighbor cells

OsmoBSC(config-net-bts)# neighbor ?
  bts     Add Neighbor cell by local BTS number
  lac     Add Neighbor cell by LAC
  lac-ci  Add Neighbor cell by LAC and CI
  cgi     Add Neighbor cell by cgi

OsmoBSC(config-net-bts)# neighbor bts ?
  <0-255>  BTS number
OsmoBSC(config-net-bts)# neighbor bts 0 ?
  <cr>  

OsmoBSC(config-net-bts)# neighbor lac ?
  <0-65535>  LAC
OsmoBSC(config-net-bts)# neighbor lac 0 ?
  arfcn  ARFCN of neighbor cell
  <cr>   
OsmoBSC(config-net-bts)# neighbor lac 0 arfcn ?
  <0-1023>  ARFCN value
OsmoBSC(config-net-bts)# neighbor lac 0 arfcn 0 ?
  bsic  BSIC of neighbor cell
OsmoBSC(config-net-bts)# neighbor lac 0 arfcn 0 bsic ?
  <0-63>  BSIC value
  any     for all BSICs / use any BSIC in this ARFCN
OsmoBSC(config-net-bts)# neighbor lac 0 arfcn 0 bsic 0 ?
  <cr>  

OsmoBSC(config-net-bts)# neighbor lac-ci ?
  <0-65535>  LAC
OsmoBSC(config-net-bts)# neighbor lac-ci 0 ?
  <0-65535>  CI
OsmoBSC(config-net-bts)# neighbor lac-ci 0 0 ?
  arfcn  ARFCN of neighbor cell
  <cr>   
OsmoBSC(config-net-bts)# neighbor lac-ci 0 0 arfcn ?
  <0-1023>  ARFCN value
OsmoBSC(config-net-bts)# neighbor lac-ci 0 0 arfcn 0 ?
  bsic  BSIC of neighbor cell
OsmoBSC(config-net-bts)# neighbor lac-ci 0 0 arfcn 0 bsic ?
  <0-63>  BSIC value
  any     for all BSICs / use any BSIC in this ARFCN
OsmoBSC(config-net-bts)# neighbor lac-ci 0 0 arfcn 0 bsic 0 ?
  <cr>  

OsmoBSC(config-net-bts)# neighbor cgi ?
  <0-999>  MCC
OsmoBSC(config-net-bts)# neighbor cgi 0 ?
  <0-999>  MNC
OsmoBSC(config-net-bts)# neighbor cgi 0 0 ?
  <0-65535>  LAC
OsmoBSC(config-net-bts)# neighbor cgi 0 0 0 ?
  <0-65535>  CI
OsmoBSC(config-net-bts)# neighbor cgi 0 0 0 0 ?
  arfcn  ARFCN of neighbor cell
  <cr>   
OsmoBSC(config-net-bts)# neighbor cgi 0 0 0 0 arfcn ?
  <0-1023>  ARFCN value
OsmoBSC(config-net-bts)# neighbor cgi 0 0 0 0 arfcn 0 ?
  bsic  BSIC of neighbor cell
OsmoBSC(config-net-bts)# neighbor cgi 0 0 0 0 arfcn 0 bsic ?
  <0-63>  BSIC value
  any     for all BSICs / use any BSIC in this ARFCN
OsmoBSC(config-net-bts)# neighbor cgi 0 0 0 0 arfcn 0 bsic 0 ?
  <cr>  

OsmoBSC(config-net-bts)# no neighbor?
  neighbor  Remove local or remote-BSS neighbor cell

OsmoBSC(config-net-bts)# no neighbor ?
  bts    Neighbor cell by local BTS number
  arfcn  ARFCN of neighbor cell

OsmoBSC(config-net-bts)# no neighbor bts ?
  <0-255>  BTS number
OsmoBSC(config-net-bts)# no neighbor bts 0 ?
  <cr>  

OsmoBSC(config-net-bts)# no neighbor arfcn ?
  <0-1023>  ARFCN value
OsmoBSC(config-net-bts)# no neighbor arfcn 0 ?
  bsic  BSIC of neighbor cell
OsmoBSC(config-net-bts)# no neighbor arfcn 0 bsic ?
  <0-63>  BSIC value
  any     for all BSICs / use any BSIC in this ARFCN
OsmoBSC(config-net-bts)# no neighbor arfcn 0 bsic 0 ?
  <cr>  

OsmoBSC(config-net-bts)# show running-config
... !neighbor 

OsmoBSC(config-net-bts)# ! BSIC out of range
OsmoBSC(config-net-bts)# neighbor cgi 23 42 423 5 arfcn 23 bsic 64
% Unknown command.

OsmoBSC(config-net-bts)# neighbor bts 0
% Error: cannot add local BTS 0 as neighbor to BTS 0: Invalid argument

OsmoBSC(config-net-bts)# show running-config
... !neighbor 

OsmoBSC(config-net-bts)# neighbor bts 1
% BTS 0 now has local neighbor BTS 1 with LAC 21 CI 31 and ARFCN 41 BSIC 11

OsmoBSC(config-net-bts)# neighbor lac 22
% BTS 0 now has local neighbor BTS 2 with LAC 22 CI 65535 and ARFCN 42 BSIC 12
OsmoBSC(config-net-bts)# no neighbor bts 2
OsmoBSC(config-net-bts)# neighbor cgi 901 70 22 65535
% BTS 0 now has local neighbor BTS 2 with LAC 22 CI 65535 and ARFCN 42 BSIC 12

OsmoBSC(config-net-bts)# neighbor cgi 23 42 423 5 arfcn 23 bsic 42
% BTS 0 to ARFCN 23 BSIC 42 now has 1 remote BSS Cell Identifier List entry

OsmoBSC(config-net-bts)# ### adding the same entry again results in no change
OsmoBSC(config-net-bts)# neighbor bts 1
% BTS 0 already had local neighbor BTS 1 with LAC 21 CI 31 and ARFCN 41 BSIC 11
OsmoBSC(config-net-bts)# neighbor lac-ci 21 31
% BTS 0 already had local neighbor BTS 1 with LAC 21 CI 31 and ARFCN 41 BSIC 11
OsmoBSC(config-net-bts)# neighbor cgi 23 42 423 5 arfcn 23 bsic 42
% Error: only one Cell Identifier entry is allowed per remote neighbor. Already have: BTS 0 to ARFCN 23 BSIC 42 -> CGI[1]:{023-42-423-5}
OsmoBSC(config-net-bts)# neighbor cgi 23 42 423 5 arfcn 23 bsic 42
% Error: only one Cell Identifier entry is allowed per remote neighbor. Already have: BTS 0 to ARFCN 23 BSIC 42 -> CGI[1]:{023-42-423-5}
OsmoBSC(config-net-bts)# neighbor cgi 23 42 423 5 arfcn 23 bsic 42
% Error: only one Cell Identifier entry is allowed per remote neighbor. Already have: BTS 0 to ARFCN 23 BSIC 42 -> CGI[1]:{023-42-423-5}

OsmoBSC(config-net-bts)# neighbor cgi 23 042 423 6 arfcn 23 bsic 42
% Error: only one Cell Identifier entry is allowed per remote neighbor. Already have: BTS 0 to ARFCN 23 BSIC 42 -> CGI[1]:{023-42-423-5}

OsmoBSC(config-net-bts)# neighbor lac 456 arfcn 123 bsic 45
% BTS 0 to ARFCN 123 BSIC 45 now has 1 remote BSS Cell Identifier List entry

OsmoBSC(config-net-bts)# neighbor cgi 23 042 234 56 arfcn 23 bsic 42
% Error: only one Cell Identifier entry is allowed per remote neighbor. Already have: BTS 0 to ARFCN 23 BSIC 42 -> CGI[1]:{023-42-423-5}

OsmoBSC(config-net-bts)# neighbor lac-ci 789 10 arfcn 423 bsic any
% BTS 0 to ARFCN 423 (any BSIC) now has 1 remote BSS Cell Identifier List entry

OsmoBSC(config-net-bts)# neighbor lac-ci 789 10 arfcn 423 bsic 63
% Error: only one Cell Identifier entry is allowed per remote neighbor. Already have: BTS 0 to ARFCN 423 BSIC 63 -> LAC-CI[1]:{789-10}

OsmoBSC(config-net-bts)# neighbor lac-ci 789 10 arfcn 423 bsic 1
% Error: only one Cell Identifier entry is allowed per remote neighbor. Already have: BTS 0 to ARFCN 423 BSIC 1 -> LAC-CI[1]:{789-10}

OsmoBSC(config-net-bts)# show running-config
...
network
... !neighbor 
 bts 0
... !neighbor 
  neighbor bts 1
  neighbor bts 2
  neighbor cgi 023 42 423 5 arfcn 23 bsic 42
  neighbor lac 456 arfcn 123 bsic 45
  neighbor lac-ci 789 10 arfcn 423 bsic any
... !neighbor 

OsmoBSC(config-net-bts)# do show bts 0 neighbor arfcn 99 bsic any
% No entry for BTS 0 to ARFCN 99 (any BSIC)

OsmoBSC(config-net-bts)# do show bts 0 neighbor arfcn 41 bsic any
% BTS 0 to ARFCN 41 (any BSIC) resolves to local BTS 1 lac-ci 21 31

OsmoBSC(config-net-bts)# do show bts 0 neighbor arfcn 423 bsic 1
% neighbor lac-ci 789 10 arfcn 423 bsic 1

OsmoBSC(config-net-bts)# do show bts 0 neighbor arfcn 423 bsic 23
% neighbor lac-ci 789 10 arfcn 423 bsic 23

OsmoBSC(config-net-bts)# no neighbor arfcn 99 bsic 7
% Cannot remove, no such neighbor: BTS 0 to ARFCN 99 BSIC 7

OsmoBSC(config-net-bts)# no neighbor arfcn 23 bsic 42
% Removed remote BSS neighbor BTS 0 to ARFCN 23 BSIC 42

OsmoBSC(config-net-bts)# show running-config

Current configuration:
!
!
log stderr
 logging filter all 1
 logging color 1
 logging print category 0
 logging timestamp 0
 logging print file 1
 logging level rll notice
 logging level mm notice
 logging level rr notice
 logging level rsl notice
 logging level nm info
 logging level pag notice
 logging level meas notice
 logging level msc notice
 logging level ho notice
 logging level hodec notice
 logging level ref notice
 logging level nat notice
 logging level ctrl notice
 logging level filter debug
 logging level pcu debug
 logging level lcls notice
 logging level chan notice
 logging level ts notice
 logging level as notice
 logging level lglobal notice
 logging level llapd notice
 logging level linp notice
 logging level lmux notice
 logging level lmi notice
 logging level lmib notice
 logging level lsms notice
 logging level lctrl notice
 logging level lgtp notice
 logging level lstats notice
 logging level lgsup notice
 logging level loap notice
 logging level lss7 notice
 logging level lsccp notice
 logging level lsua notice
 logging level lm3ua notice
 logging level lmgcp notice
 logging level ljibuf notice
!
stats interval 5
!
line vty
 no login
!
e1_input
 e1_line 0 driver ipa
 e1_line 0 port 0
 no e1_line 0 keepalive
cs7 instance 0
 point-code 0.23.3
 asp asp-clnt-msc-0 2905 0 m3ua
 as as-clnt-msc-0 m3ua
  asp asp-clnt-msc-0
  routing-key 0 0.23.3
network
 network country code 901
 mobile network code 70
 encryption a5 1 3
 neci 0
 paging any use tch 0
 bts 0
  type sysmobts
  band DCS1800
  cell_identity 30
  location_area_code 20
  base_station_id_code 10
  ms max power 15
  cell reselection hysteresis 4
  rxlev access min 0
  radio-link-timeout 32
  channel allocator ascending
  rach tx integer 9
  rach max transmission 7
  channel-descrption attach 1
  channel-descrption bs-pa-mfrms 5
  channel-descrption bs-ag-blks-res 1
  no access-control-class-ramping
  access-control-class-ramping-step-interval dynamic
  access-control-class-ramping-step-size 1
  early-classmark-sending forbidden
  early-classmark-sending-3g allowed
  ip.access unit_id 1800 0
  oml ip.access stream_id 255 line 0
  neighbor-list mode automatic
  neighbor bts 1
  neighbor bts 2
  neighbor lac 456 arfcn 123 bsic 45
  neighbor lac-ci 789 10 arfcn 423 bsic any
... !neighbor 

OsmoBSC(config-net-bts)# no neighbor arfcn 123 bsic 45
% Removed remote BSS neighbor BTS 0 to ARFCN 123 BSIC 45

OsmoBSC(config-net-bts)# show running-config
... !neighbor 
  neighbor bts 1
  neighbor bts 2
  neighbor lac-ci 789 10 arfcn 423 bsic any
... !neighbor 

OsmoBSC(config-net-bts)# no neighbor arfcn 423 bsic any
% Removed remote BSS neighbor BTS 0 to ARFCN 423 (any BSIC)

OsmoBSC(config-net-bts)# show running-config
... !neighbor 
  neighbor bts 1
  neighbor bts 2
... !neighbor 

OsmoBSC(config-net-bts)# no neighbor arfcn 423 bsic 63
% Cannot remove, no such neighbor: BTS 0 to ARFCN 423 BSIC 63

OsmoBSC(config-net-bts)# show running-config
... !neighbor 
  neighbor bts 1
  neighbor bts 2
... !neighbor 

OsmoBSC(config-net-bts)# no neighbor arfcn 423 bsic 1
% Cannot remove, no such neighbor: BTS 0 to ARFCN 423 BSIC 1

OsmoBSC(config-net-bts)# show running-config
... !neighbor 
  neighbor bts 1
  neighbor bts 2
... !neighbor 

OsmoBSC(config-net-bts)# no neighbor arfcn 41 bsic any
% Removed local neighbor bts 0 to bts 1

OsmoBSC(config-net-bts)# show running-config
... !neighbor 
  neighbor bts 2
... !neighbor 

OsmoBSC(config-net-bts)# no neighbor arfcn 41 bsic any
% Cannot remove, no such neighbor: BTS 0 to ARFCN 41 (any BSIC)

OsmoBSC(config-net-bts)# show running-config
... !neighbor 
  neighbor bts 2
... !neighbor 

OsmoBSC(config-net-bts)# no neighbor arfcn 42 bsic 12
% Removed local neighbor bts 0 to bts 2

OsmoBSC(config-net-bts)# show running-config
... !neighbor