| 47 | | |
| | 47 | 1. in spgw.conf |
| | 48 | * set s12 interface as needed, it will be the same as the s1 interface above. |
| | 49 | * set pgw interface for external/ client egress traffic |
| | 50 | * enable/disable masquerate and tpc clamping as needed |
| | 51 | * If s1 interface MTU is 1500, a maximum MTU of 1488 must be advertised to clients, and MSS clamping enabled to prevent fragmentation. This is due to 12 byte GTP overhead. |
| | 52 | * set DNS IP addresses, this will be advertised to clients. |
| | 53 | 1. in freediameter config files |
| | 54 | * set identity and realm as appropriate in both hss and mme files. |
| | 55 | 1. in hss.conf |
| | 56 | * set mysql username and password |
| | 57 | * set OP key used for sim cards. This example uses all 1s, as that is the configuration of the ORBIT sim cards. |
| | 58 | * this is used to generate keys for each sim. SIMs can also be configured with hardcoded keys, once the database is set up. |
| | 59 | * edit fqdns at bottom of hss.config to enable 001 01 plmn |
| | 60 | *. fqdn defined in spec, but you can just replace 208 93 with 001 001. #BOTH MUST BE 3 DIGITS |
| | 61 | 1. generate FD keys |
| | 62 | 1. in {{{openair-cn/SCRIPTS}}} |
| | 63 | 1. {{{./check_hss_s6a_certificate /usr/local/etc/oai/freeDiameter/ hss.orbit-lab.org}}} |
| | 64 | 1. {{{./check_mme_s6a_certificate /usr/local/etc/oai/freeDiameter/ nano.orbit-lab.org}}} |
| | 65 | 1. Compile and install hss, mme, and spgw |
| | 66 | {{{ |
| | 67 | cd YOUR_openair-cn_DIRECTORY |
| | 68 | cd SCRIPTS |
| | 69 | ./build_mme -i #Need to run only once to install missing packages |
| | 70 | ./build_hss -i #Need to run only once to install missing packages |
| | 71 | ./build_spgw -i #Need to run only once |
| | 72 | }}} |
| | 73 | 1. set up DB for hss |
| | 74 | 1. {{{./run_hss -i ~/openair-cn/SRC/OAI_HSS/db/oai_db.sql #Run only once to install database}}} |
| | 75 | 1. you can specify a different database dump, to replicate set ups. |
| | 76 | 1. append info to DB as appropriate |
| | 77 | 1. Add mme hostname as entry in table mmeidentity |
| | 78 | 1. add user/sim to users table, and pdn to pdn table |
| | 79 | 1. mmeidentity for user must match index of mme used |
| | 80 | 1. imsi specified for both user and pdn |
| | 81 | 1. specify user key with UNHEX function |