# SOP for Running open5GS (22.04) ## Start/Check Mongodb - ensure that Mongodb is running ``` sudo systemctl start mongod ``` - Check Mongodb ``` sudo systemctl status mongod ``` ## TUN device setting must set again every Reboot ``` sudo ip tuntap add name ogstun mode tun sudo ip addr add 10.45.0.1/16 dev ogstun sudo ip addr add 2001:db8:cafe::1/48 dev ogstun sudo ip link set ogstun up ``` ## test run (if needed) ``` ./build/tests/attach/attach ## EPC Only ./build/tests/registration/registration ## 5G Core Only ``` or you can : ``` cd open5gs/build meson test -v ``` if test not pass : - Reboot and try again ## start for webui ``` cd webui npm run dev ``` ## Run open5gs NFs ``` cd ~/open5gs/ sudo ./install/bin/open5gs-nrfd sudo ./install/bin/open5gs-scpd sudo ./install/bin/open5gs-amfd sudo ./install/bin/open5gs-smfd sudo ./install/bin/open5gs-ausfd sudo ./install/bin/open5gs-udmd sudo ./install/bin/open5gs-udrd sudo ./install/bin/open5gs-pcfd sudo ./install/bin/open5gs-nssfd sudo ./install/bin/open5gs-bsfd sudo ./install/bin/open5gs-upfd ``` - ## UERANSIM ``` cd ~/UERANSIM ``` - gNB ``` sudo ./build/nr-gnb -c config/open5gs-gnb.yaml ``` - UE ``` sudo ./build/nr-ue -c config/open5gs-ue.yaml ```