aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cbc.vty
blob: 7a4031fc7257178de4df1ee1be96723a59ae2b1f (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
OsmoBSC> ### CBSP link config

OsmoBSC> list
...
  show cbc
...

OsmoBSC> enable
OsmoBSC# list
...
  show cbc
...

OsmoBSC# show running-config
... !cbc

OsmoBSC# show cbc
CBSP link is disabled

OsmoBSC# configure terminal
OsmoBSC(config)# cbc

OsmoBSC(config-cbc)# list
...
  mode (server|client|disabled)
  server
  client

OsmoBSC(config-cbc)# ?
...
  mode    Set OsmoBSC as CBSP server or client
  server  Configure OsmoBSC's CBSP server role
  client  Configure OsmoBSC's CBSP client role

OsmoBSC(config-cbc)# mode ?
  server    CBSP Server: listen for inbound TCP connections from a remote Cell Broadcast Centre
  client    CBSP Client: establish outbound TCP connection to a remote Cell Broadcast Centre
  disabled  Disable CBSP link

OsmoBSC(config-cbc)# server
OsmoBSC(config-cbc-server)# list
...
  local-ip (A.B.C.D|X:X::X:X)
  local-port <1-65535>

OsmoBSC(config-cbc-server)# ?
...
  local-ip    Set IP Address to listen on for inbound CBSP from a Cell Broadcast Centre
  local-port  Set TCP port to listen on for inbound CBSP from a Cell Broadcast Centre

OsmoBSC(config-cbc-server)# local-ip ?
  A.B.C.D   IPv4 address
  X:X::X:X  IPv6 address
OsmoBSC(config-cbc-server)# local-port ?
  <1-65535>  CBSP port number (Default: 48049)

OsmoBSC(config-cbc-server)# local-ip 1.2.3.4
OsmoBSC(config-cbc-server)# local-port 12345
OsmoBSC(config-cbc-server)# show running-config
...
cbc
 mode disabled
 server
  local-ip 1.2.3.4
  local-port 12345
...

OsmoBSC(config-cbc-server)# local-port 48049

OsmoBSC(config-cbc-server)# show running-config
...
cbc
 mode disabled
 server
  local-ip 1.2.3.4
... !local-port

OsmoBSC(config-cbc-server)# local-ip ::1
OsmoBSC(config-cbc-server)# show running-config
...
cbc
 mode disabled
 server
  local-ip ::1
...

OsmoBSC(config-cbc-server)# do show cbc
CBSP link is disabled

OsmoBSC(config-cbc-server)# exit

OsmoBSC(config-cbc)# client
OsmoBSC(config-cbc-client)# list
...
  remote-ip (A.B.C.D|X:X::X:X)
  remote-port <1-65535>
  local-ip (A.B.C.D|X:X::X:X)
  local-port <1-65535>
  no local-ip
  no local-port

OsmoBSC(config-cbc-client)# ?
...
  remote-ip    Set IP Address of the Cell Broadcast Centre, to establish CBSP link to
  remote-port  Set TCP port of the Cell Broadcast Centre, to establish CBSP link to
  local-ip     Set local bind address for the outbound CBSP link to the Cell Broadcast Centre
  local-port   Set local bind port for the outbound CBSP link to the Cell Broadcast Centre
  no           Negate a command or set its defaults

OsmoBSC(config-cbc-client)# remote-ip ?
  A.B.C.D   IPv4 address
  X:X::X:X  IPv6 address
OsmoBSC(config-cbc-client)# remote-port ?
  <1-65535>  CBSP port number (Default: 48049)

OsmoBSC(config-cbc-client)# no ?
  local-ip    Remove local IP address bind config for the CBSP client mode
  local-port  Remove local TCP port bind config for the CBSP client mode

OsmoBSC(config-cbc-client)# remote-ip 1.2.3.4
OsmoBSC(config-cbc-client)# remote-port 12345
OsmoBSC(config-cbc-client)# show running-config
...
cbc
...
 client
  remote-ip 1.2.3.4
  remote-port 12345
...

OsmoBSC(config-cbc-client)# remote-port 48049

OsmoBSC(config-cbc-client)# show running-config
...
cbc
...
 client
  remote-ip 1.2.3.4
... !remote-port

OsmoBSC(config-cbc-client)# remote-ip 1:2:3:4::5
OsmoBSC(config-cbc-client)# show running-config
...
cbc
...
 client
  remote-ip 1:2:3:4::5
...

OsmoBSC(config-cbc-client)# local-ip 1.2.3.4

OsmoBSC(config-cbc-client)# show running-config
...
cbc
...
 client
  remote-ip 1:2:3:4::5
  local-ip 1.2.3.4
... !local-port

OsmoBSC(config-cbc-client)# local-port 12345

OsmoBSC(config-cbc-client)# show running-config
...
cbc
...
 client
  remote-ip 1:2:3:4::5
  local-ip 1.2.3.4
  local-port 12345
...

OsmoBSC(config-cbc-client)# no local-ip

OsmoBSC(config-cbc-client)# show running-config
...
cbc
...
 client
  remote-ip 1:2:3:4::5
  local-port 12345
... !local

OsmoBSC(config-cbc-client)# no local-port

OsmoBSC(config-cbc-client)# show running-config
...
cbc
...
 client
  remote-ip 1:2:3:4::5
... !local

OsmoBSC(config-cbc-client)# do show cbc
CBSP link is disabled

OsmoBSC(config-cbc-client)# exit

OsmoBSC(config-cbc)# mode server
OsmoBSC(config-cbc)# do show cbc
OsmoBSC is configured as CBSP Server on [::1]:48049
CBSP Server Connection: Disconnected

OsmoBSC(config-cbc)# mode client
OsmoBSC(config-cbc)# do show cbc
OsmoBSC is configured as CBSP Client to remote CBC at [1:2:3:4::5]:48049
CBSP Client Connection: Disconnected

OsmoBSC(config-cbc)# mode disabled
OsmoBSC(config-cbc)# do show cbc
CBSP link is disabled