... | ... | @@ -56,58 +56,32 @@ SPGWU_CONF[@NETWORK_UE_IP@]='12.1.1.0/24' |
|
|
SPGWU_CONF[@NETWORK_UE_NAT_OPTION@]='yes'
|
|
|
|
|
|
SPGWU_CONF[@SPGWC0_IP_ADDRESS@]='192.168.66.4'
|
|
|
SPGWU_CONF[@NRF_IPV4_ADDRESS@]='192.168.66.9'
|
|
|
|
|
|
SPGWU_CONF[@NRF_IPV4_ADDRESS@]='192.168.66.9'
|
|
|
SPGWU_CONF[@NRF_IPV4_ADDRESS@]='192.168.66.9'
|
|
|
NRF_PORT
|
|
|
NRF_API_VERSION
|
|
|
REGISTER_NRF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SMF_CONF[@SMF_INTERFACE_PORT_FOR_SBI@]='80'
|
|
|
SMF_CONF[@SMF_INTERFACE_HTTP2_PORT_FOR_SBI@]='9090'
|
|
|
SMF_CONF[@SMF_API_VERSION@]='v1'
|
|
|
|
|
|
SMF_CONF[@UDM_IPV4_ADDRESS@]='172.16.1.103'
|
|
|
SMF_CONF[@UDM_PORT@]='80'
|
|
|
SMF_CONF[@UDM_API_VERSION@]='v2'
|
|
|
|
|
|
SMF_CONF[@AMF_IPV4_ADDRESS@]='192.168.122.183'
|
|
|
SMF_CONF[@AMF_PORT@]='80'
|
|
|
SMF_CONF[@AMF_API_VERSION@]='v1'
|
|
|
|
|
|
SMF_CONF[@UPF_IPV4_ADDRESS@]='192.168.122.151'
|
|
|
SPGWU_CONF[@NRF_IPV4_ADDRESS@]='192.168.66.9'
|
|
|
SPGWU_CONF[@NRF_PORT@]='80'
|
|
|
SPGWU_CONF[@NRF_API_VERSION@]='v1'
|
|
|
|
|
|
SMF_CONF[@NRF_IPV4_ADDRESS@]='192.168.1.23'
|
|
|
SMF_CONF[@NRF_PORT@]='8080'
|
|
|
SMF_CONF[@NRF_API_VERSION@]='v1'
|
|
|
|
|
|
SMF_CONF[@DEFAULT_DNS_IPV4_ADDRESS@]='8.8.8.8'
|
|
|
SMF_CONF[@DEFAULT_DNS_SEC_IPV4_ADDRESS@]='4.4.4.4'
|
|
|
SPGWU_CONF[@REGISTER_NRF@]='no'
|
|
|
|
|
|
for K in "${!SMF_CONF[@]}"; do
|
|
|
egrep -lRZ "$K" $PREFIX | xargs -0 -l sed -i -e "s|$K|${SMF_CONF[$K]}|g"
|
|
|
ret=$?;[[ ret -ne 0 ]] && echo "Tried to replace $K with ${SMF_CONF[$K]}"
|
|
|
for K in "${!SPGWU_CONF[@]}"; do
|
|
|
egrep -lRZ "$K" $PREFIX | xargs -0 -l sed -i -e "s|$K|${SPGWU_CONF[$K]}|g"
|
|
|
ret=$?;[[ ret -ne 0 ]] && echo "Tried to replace $K with ${SPGWU_CONF[$K]}"
|
|
|
done
|
|
|
|
|
|
```
|
|
|
|
|
|
Then execute the following command to generate the corresponding configuration file for SMF (`/usr/local/etc/oai/smf.conf`):
|
|
|
Then execute the following command to generate the corresponding configuration file for SPGWU (`/usr/local/etc/oai/spgwu.conf`):
|
|
|
```
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/build/scripts$ ./smf_conf.sh
|
|
|
ubuntu@test-spgwu:~/openair-spgwu-tiny/build/scripts$ ./smf_conf.sh
|
|
|
```
|
|
|
|
|
|
**An example for the configuration file**
|
|
|
To be updated
|
|
|
|
|
|
More detailed explanation for the SMF configuration is available in the section [SMF configuration](smf_configuration)
|
|
|
|
|
|
# Launch SMF
|
|
|
# Launch SPGW-U
|
|
|
|
|
|
After that, you can launch SMF by executing the following command
|
|
|
After that, you can launch SPGW-U by executing the following command
|
|
|
```
|
|
|
ubuntu@test-smf:~/oai-cn5g-smf/build/scripts$ sudo smf -c /usr/local/etc/oai/smf.conf -o
|
|
|
ubuntu@test-spgwu:~/openair-spgwu-tiny/build/scripts$ sudo spgwu -c /usr/local/etc/oai/spgwu.conf -o
|
|
|
```
|
|
|
|