Harald Welte | b53e2bf | 2020-08-21 16:33:42 +0200 | [diff] [blame] | 1 | == Running OsmoSMLC |
| 2 | |
| 3 | The OsmoSMLC executable (`osmo-smlc`) offers the following command-line |
| 4 | arguments: |
| 5 | |
| 6 | === SYNOPSIS |
| 7 | |
| 8 | *osmo-smlc* [-h|-V] [-d 'DBGMASK'] [-D] [-c 'CONFIGFILE'] [-s] [-T] [-e 'LOGLEVEL'] [-l 'IP'] [-r 'RFCTL'] |
| 9 | |
| 10 | === OPTIONS |
| 11 | |
| 12 | *-h, --help*:: |
| 13 | Print a short help message about the supported options |
| 14 | *-V, --version*:: |
| 15 | Print the compile-time version number of the program |
| 16 | *-d, --debug 'DBGMASK','DBGLEVELS'*:: |
| 17 | Set the log subsystems and levels for logging to stderr. This |
| 18 | has mostly been superseded by VTY-based logging configuration, |
| 19 | see <<logging>> for further information. |
| 20 | *-D, --daemonize*:: |
| 21 | Fork the process as a daemon into background. |
| 22 | *-c, --config-file 'CONFIGFILE'*:: |
| 23 | Specify the file and path name of the configuration file to be |
| 24 | used. If none is specified, use `osmo-smlc.cfg` in the current |
| 25 | working directory. |
| 26 | *-e, --log-level 'LOGLEVEL'*:: |
| 27 | Set the global log level for logging to stderr. This has mostly |
| 28 | been deprecated by VTY based logging configuration, see |
| 29 | <<logging>> for more information. |
| 30 | |
| 31 | === Multiple instances |
| 32 | |
| 33 | Running multiple instances of `osmo-smlc` on the same host is possible if all |
| 34 | interfaces (VTY, CTRL) are separated using the appropriate configuration |
| 35 | options. The IP based interfaces are binding to local host by default. In order |
| 36 | to separate the processes, the user has to bind those services to specific but |
| 37 | different IP addresses and/or ports. |
| 38 | |
| 39 | The VTY and the Control interface can be bound to IP addresses from the loopback |
| 40 | address range, for example: |
| 41 | |
| 42 | ---- |
| 43 | line vty |
| 44 | bind 127.0.0.2 |
| 45 | ctrl |
| 46 | bind 127.0.0.2 |
| 47 | ---- |
| 48 | |
| 49 | For the following links, OsmoSMLC acts as a client and does not listen/bind to a |
| 50 | specific interface, and will hence not encounter conflicts for multiple instances |
| 51 | running on the same interface: |
| 52 | |
| 53 | - The SCCP/M3UA links are established by OsmoSMLC contacting an STP. |
| 54 | |
| 55 | To run multiple OsmoSMLC instances on the same network, each SMLC |
| 56 | has to configure a distinct point-code. See <<cs7_config>>. |
| 57 | |
| 58 | |
| 59 | === Configure primary links |
| 60 | |
| 61 | ==== Connect to an STP |
| 62 | |
| 63 | ===== Configure SCCP/M3UA (AoIP) |
| 64 | |
| 65 | OsmoSMLC acts as client to contact an STP instance and establish an SCCP/M3UA |
Neels Hofmeyr | 5dadf0a | 2020-10-28 03:19:44 +0100 | [diff] [blame] | 66 | link. OsmoSMLC always uses the SSN "SMLC (BSSMAP-LE)" (SSN code 252). The |
| 67 | configurable point-code defaults to 0.23.6 (190). |
Harald Welte | b53e2bf | 2020-08-21 16:33:42 +0200 | [diff] [blame] | 68 | |
| 69 | An example configuration of OsmoSMLC's Lb SCCP link, assuming the SMLC at |
Neels Hofmeyr | 5dadf0a | 2020-10-28 03:19:44 +0100 | [diff] [blame] | 70 | point-code 1.23.6, listening for M3UA at 127.0.0.1:2905: |
Harald Welte | b53e2bf | 2020-08-21 16:33:42 +0200 | [diff] [blame] | 71 | |
| 72 | ---- |
| 73 | cs7 instance 0 |
| 74 | point-code 1.23.6 |
| 75 | asp asp-clnt-msc-0 2905 0 m3ua |
| 76 | remote-ip 127.0.0.1 |
| 77 | sctp-role client |
| 78 | ---- |
| 79 | |
| 80 | This configuration is explained in detail in <<cs7_config>>. |