50 Steps
NF Status
--
--
--
5G Core Network FabricOpen5GS · Service-Based Architecture
Live
PLMN 999/70 UE Pool 10.45.0.0/16 updated
Terminal — root@5gcore-lab
connecting…
Click to copy, then paste in the terminal (right-click or Ctrl+Shift+V). All read-only — no sudo needed; the web buttons run the root actions.

Add 5G Subscriber

Copied to clipboard

PCAP Capture Manager

Capture Preset
SCTP / NGAP
N2 interface signaling
GTP-U
N3 user plane data
SBI (HTTP/2)
NF service-based interface
UPF Tunnel
ogstun interface traffic
All Traffic
Capture everything
Recording SCTP/NGAP
Duration 00:00
Size 0 B
File --
Saved Captures

No captures yet. Start one above.

Command Reference

System & Server

hostname
Show server hostname
uptime
Show system uptime and load
free -h
Display memory usage
df -h
Show disk space usage
ip addr show
Display all network interfaces

Open5GS Services

systemctl status open5gs-amfd
AMF - Access and Mobility Management
systemctl status open5gs-smfd
SMF - Session Management Function
systemctl status open5gs-upfd
UPF - User Plane Function
systemctl status open5gs-nrfd
NRF - Network Repository Function
systemctl status open5gs-ausfd
AUSF - Authentication Server Function
systemctl status open5gs-udmd
UDM - Unified Data Management
systemctl status open5gs-udrd
UDR - Unified Data Repository
systemctl status open5gs-pcfd
PCF - Policy Control Function
systemctl status open5gs-nssfd
NSSF - Network Slice Selection Function
systemctl status open5gs-bsfd
BSF - Binding Support Function
for svc in amfd smfd upfd nrfd ausfd udmd udrd pcfd nssfd bsfd; do sudo systemctl restart open5gs-$svc; done
Restart ALL Open5GS services

Configuration Files

cat /etc/open5gs/amf.yaml
View AMF config (PLMN, TAC, NGAP)
cat /etc/open5gs/smf.yaml
View SMF config (UE IP pool, DNS)
cat /etc/open5gs/upf.yaml
View UPF config (GTP-U, subnet)
ls -la /etc/open5gs/
List all config files
nano /etc/open5gs/amf.yaml
Edit AMF config - now writable, no sudo (apply: sudo systemctl restart open5gs-amfd)

UERANSIM (gNB & UE)

/opt/UERANSIM/build/nr-cli UERANSIM-gnb-999-70-1 -e amf-list
Check home gNB to AMF (N2). gNB runs as a managed service.
sudo systemctl restart ran-gnb; sleep 3; echo === gNB side ===; grep -iE "SCTP|NG Setup" /tmp/gnb.log | tail -4; echo === AMF side ===; journalctl -u open5gs-amfd -n 40 --no-pager | grep -E "gNB-N2 accepted|Number of gNBs" | tail -3
Start / restart the home gNB (RAN) and watch it re-run NG Setup with the AMF. Managed service - no duplicate gNBs.
ue-watch
Start UE from anywhere - full call flow + data tunnel (ue-watch = cd /opt/UERANSIM && ./build/nr-ue -c config/watch-ue.yaml)
cat /opt/UERANSIM/config/open5gs-gnb.yaml
View gNB configuration
cat /opt/UERANSIM/config/open5gs-ue.yaml
View UE config (IMSI, Key, OPc)
ps aux | grep nr-
Check running UERANSIM processes
sudo pkill -f nr-ue.real
Stop the UE (gNB keeps running - managed service)

Network Testing

ip addr show uesimtun0
Check UE tunnel interface
ue-ping -c 4 8.8.8.8
Ping the internet through the 5G data plane
ue-curl ifconfig.me
Public IP seen through the 5G data plane
ue-trace 8.8.8.8
Traceroute through the 5G data plane

Logs & Monitoring

journalctl -u open5gs-amfd -f
Follow AMF logs
journalctl -u open5gs-smfd -f
Follow SMF logs
journalctl -u open5gs-upfd -f
Follow UPF logs
tail -f /var/log/open5gs/*.log
Follow all log files
grep -i error /var/log/open5gs/*.log
Find errors in logs

Packet Capture & Debug

sudo tcpdump -i any sctp -w /tmp/sctp.pcap
Capture SCTP (N2/NGAP)
sudo tcpdump -i any port 2152 -w /tmp/gtpu.pcap
Capture GTP-U (N3 user plane)
tshark -i any -f sctp -Y ngap
Live decode NGAP
ss -tlnp | grep open5gs
Show Open5GS ports

MongoDB / Subscribers

mongosh open5gs
Connect to Open5GS database
db.subscribers.find().pretty()
List all subscribers

NAT & Routing

sudo sysctl net.ipv4.ip_forward
Check IP forwarding
sudo iptables -t nat -L -n -v
Show NAT rules
ip route
Show routing table

Troubleshooting

sudo pkill -9 nr-gnb; sudo pkill -9 nr-ue
Force kill UERANSIM
sudo ip link delete uesimtun0
Remove stale UE tunnel
dmesg | tail -50
Check kernel messages
sudo systemctl daemon-reload
Reload systemd

Keyboard Shortcuts

Command SearchCtrl + K
PCAP ManagerCtrl + P
Close PanelsEsc
Refresh TerminalCtrl + R
Fullscreen TerminalCtrl + F
Shortcuts Help?