Configuration
SBI Configuration
NF IP
There are registerIP and bindingIP design on every NF's sbi interface.
configuration:
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: 127.0.0.18 # IP used to register to NRF
bindingIPv4: 127.0.0.18 # IP used to bind the service
port: 8000 # port used to bind the service
This is due to some orchestration, such as Kubernetes or OpenStack, has the design of service IP mapping.
Use Kubernetes as an example. K8s has the service type that enable users to define the service IP outside the pod. But the service IP may be different from the IP assigned inside the pod. Therefore, if we register the binding IP inside the pod to NRF, NRF cannot know which service IP outside the pod has attached. As the result, we need to separate registerIP from bindingIP in this scenario.
If you are not sure what IP you should set, just configure it as the same IP address.
OAuth2
- Enable OAuth2 setting in NRF config (nrfcfg.yaml):
configuration: sbi: # Service-based interface information oauth: true
- Set NRF's certificate path in each NF:
configuration: nrfCertPem: cert/nrf.pem # NRF Certificate
- For more detailed information about OAuth2 in free5GC, please refer to the Design Document.
Sample configuration
We provide a sample config to connect to outer ran under /sample/ran_attach_config/
. The architecture is as following.
As the result, user's RAN IP must set to 192.168.0.0/24 subnet or let the routing route to this subnet.
Notice: If user wants to use the setting, aware to set 192.168.0.1 to your host as well.
SMF Configuration
A. Configure SMF with S-NSSAI
- Configure NF Registration SMF S-NSSAI in
smfcfg.yaml
B. Configure Uplink Classifier (ULCL) information in SMF
- Configure UE routing path in
uerouting.yaml
- DestinationIP and DestinationPort will be the packet destination.
- UPF field will be the packet datapath when it match the destination above.
For more detail of SMF config, please refer to here.