This describes a very simple configuration that uses Open5GS and UERANSIM for Framed Routing.
This feature has been merged into Open5GS via the following pull requests by @mitmitmitm.
The related documents can be found below.
- Overview of Open5GS 5GC Simulation Mobile Network
- Changes in configuration files of Open5GS 5GC and UERANSIM UE / RAN
- Network settings of Open5GS 5GC and UERANSIM UE / RAN
- Add Framed Routes to Subscriber information
- Build Open5GS and UERANSIM
- Run Open5GS 5GC and UERANSIM UE / RAN
- Ping Framed Routes
- Changelog (summary)
I created a 5GC simulation mobile network for the purpose of using the IP routes (Framed Routes) behind the UE.
The following minimum configuration was set as a condition.
- Two UEs have the same DNN and connect to the same DN.
- Two UEs have different Framed Routes. On the UPF VM, make sure to be able to ping the Framed Routes via the IP address (Tunnel GW/uesimtun0) assigned to each UE.
The built simulation environment is as follows.
The 5GC / UE / RAN used are as follows.
- 5GC - Open5GS v2.7.6 (2026.01.17) - https://github.com/open5gs/open5gs
- UE / RAN - UERANSIM v3.2.7 (2025.10.25) - https://github.com/aligungr/UERANSIM
Each VMs are as follows.
| VM # | SW & Role | IP address | OS | CPU (Min) |
Mem (Min) |
HDD (Min) |
|---|---|---|---|---|---|---|
| VM1 | Open5GS 5GC C-Plane | 192.168.0.111/24 192.168.14.111/24 |
Ubuntu 24.04 | 1 | 2GB | 20GB |
| VM2 | Open5GS 5GC U-Plane | 192.168.0.151/24 192.168.13.151/24 192.168.14.151/24 192.168.16.151/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
| EXT | External Node | 192.168.0.152/24 192.168.16.152/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
| VM3 | UERANSIM RAN (gNodeB) | 192.168.0.131/24 192.168.13.131/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
| VM4 | UERANSIM UE0 | 192.168.0.132/24 192.168.20.1/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
| VM5 | UERANSIM UE1 | 192.168.0.133/24 192.168.21.1/24 192.168.22.1/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
| PC1 | Internal Node | 192.168.0.161/24 192.168.20.100/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
| PC2 | Internal Node | 192.168.0.162/24 192.168.21.100/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
| PC3 | Internal Node | 192.168.0.163/24 192.168.22.100/24 |
Ubuntu 24.04 | 1 | 1GB | 10GB |
Subscriber Information (other information is the same) is as follows.
Note. Please select OP or OPc according to the setting of UERANSIM UE configuration files. As of 2023.01.29, Framed Routes cannot be set with the WebUI. Also, if you change the open5gs-dbctl script, it seems that you can register these with this script, but I could not register.
| UE # | IMSI | DNN | OP/OPc | Framed Routes | Internal IP address |
|---|---|---|---|---|---|
| UE0 | 001010000000000 | internet | OPc | 192.168.20.0/24 | 192.168.20.1 |
| UE1 | 001010000000001 | internet | OPc | 192.168.21.0/24 192.168.22.0/24 |
192.168.21.1 192.168.22.1 |
I registered these information with the Open5GS WebUI. In addition, 3GPP TS 35.208 "4.3 Test Sets" is published by 3GPP as test data for the 3GPP authentication and key generation functions (MILENAGE).
The DN is as follows.
| DN | TUNnel interface of DN | DNN | TUNnel interface of UE |
|---|---|---|---|
| 10.45.0.0/16 | ogstun | internet | uesimtun0 |
Please refer to the following for building Open5GS and UERANSIM respectively.
- Open5GS v2.7.6 (2026.01.17) - https://open5gs.org/open5gs/docs/guide/02-building-open5gs-from-sources/
- UERANSIM v3.2.7 (2025.10.25) - https://github.com/aligungr/UERANSIM/wiki/Installation
open5gs/install/etc/open5gs/amf.yaml
--- amf.yaml.orig 2025-04-27 11:38:05.000000000 +0900
+++ amf.yaml 2025-11-20 07:31:25.166453278 +0900
@@ -20,27 +20,27 @@
- uri: http://127.0.0.200:7777
ngap:
server:
- - address: 127.0.0.5
+ - address: 192.168.0.111
metrics:
server:
- address: 127.0.0.5
port: 9090
guami:
- plmn_id:
- mcc: 999
- mnc: 70
+ mcc: 001
+ mnc: 01
amf_id:
region: 2
set: 1
tai:
- plmn_id:
- mcc: 999
- mnc: 70
+ mcc: 001
+ mnc: 01
tac: 1
plmn_support:
- plmn_id:
- mcc: 999
- mnc: 70
+ mcc: 001
+ mnc: 01
s_nssai:
- sst: 1
security:open5gs/install/etc/open5gs/nrf.yaml
--- nrf.yaml.orig 2025-04-27 11:38:05.000000000 +0900
+++ nrf.yaml 2025-05-04 08:13:05.973154453 +0900
@@ -11,8 +11,8 @@
nrf:
serving: # 5G roaming requires PLMN in NRF
- plmn_id:
- mcc: 999
- mnc: 70
+ mcc: 001
+ mnc: 01
sbi:
server:
- address: 127.0.0.10open5gs/install/etc/open5gs/smf.yaml
--- smf.yaml.orig 2025-01-15 04:12:06.000000000 +0900
+++ smf.yaml 2025-01-15 04:26:36.000000000 +0900
@@ -20,16 +20,14 @@
- uri: http://127.0.0.200:7777
pfcp:
server:
- - address: 127.0.0.4
+ - address: 192.168.14.111
client:
upf:
- - address: 127.0.0.7
- gtpc:
- server:
- - address: 127.0.0.4
+ - address: 192.168.14.151
+ dnn: internet
gtpu:
server:
- - address: 127.0.0.4
+ - address: 192.168.14.111
metrics:
server:
- address: 127.0.0.4
@@ -37,20 +35,17 @@
session:
- subnet: 10.45.0.0/16
gateway: 10.45.0.1
- - subnet: 2001:db8:cafe::/48
- gateway: 2001:db8:cafe::1
+ dnn: internet
dns:
- 8.8.8.8
- 8.8.4.4
- - 2001:4860:4860::8888
- - 2001:4860:4860::8844
mtu: 1400
# p-cscf:
# - 127.0.0.1
# - ::1
# ctf:
# enabled: auto # auto(default)|yes|no
- freeDiameter: /root/open5gs/install/etc/freeDiameter/smf.conf
+# freeDiameter: /root/open5gs/install/etc/freeDiameter/smf.conf
################################################################################
# SMF Infoopen5gs/install/etc/open5gs/upf.yaml
--- upf.yaml.orig 2024-05-02 19:52:00.000000000 +0900
+++ upf.yaml 2024-05-19 12:38:00.000000000 +0900
@@ -11,18 +11,18 @@
upf:
pfcp:
server:
- - address: 127.0.0.7
+ - address: 192.168.14.151
client:
# smf: # UPF PFCP Client try to associate SMF PFCP Server
# - address: 127.0.0.4
gtpu:
server:
- - address: 127.0.0.7
+ - address: 192.168.13.151
session:
- subnet: 10.45.0.0/16
gateway: 10.45.0.1
- - subnet: 2001:db8:cafe::/48
- gateway: 2001:db8:cafe::1
+ dnn: internet
+ dev: ogstun
metrics:
server:
- address: 127.0.0.7UERANSIM/config/open5gs-gnb.yaml
--- open5gs-gnb.yaml.orig 2023-12-02 06:14:20.000000000 +0900
+++ open5gs-gnb.yaml 2025-12-21 09:13:19.985091901 +0900
@@ -1,17 +1,17 @@
-mcc: '999' # Mobile Country Code value
-mnc: '70' # Mobile Network Code value (2 or 3 digits)
+mcc: '001' # Mobile Country Code value
+mnc: '01' # Mobile Network Code value (2 or 3 digits)
nci: '0x000000010' # NR Cell Identity (36-bit)
idLength: 32 # NR gNB ID length in bits [22...32]
tac: 1 # Tracking Area Code
-linkIp: 127.0.0.1 # gNB's local IP address for Radio Link Simulation (Usually same with local IP)
-ngapIp: 127.0.0.1 # gNB's local IP address for N2 Interface (Usually same with local IP)
-gtpIp: 127.0.0.1 # gNB's local IP address for N3 Interface (Usually same with local IP)
+linkIp: 192.168.0.131 # gNB's local IP address for Radio Link Simulation (Usually same with local IP)
+ngapIp: 192.168.0.131 # gNB's local IP address for N2 Interface (Usually same with local IP)
+gtpIp: 192.168.13.131 # gNB's local IP address for N3 Interface (Usually same with local IP)
# List of AMF address information
amfConfigs:
- - address: 127.0.0.5
+ - address: 192.168.0.111
port: 38412
# List of supported S-NSSAIs by this gNBFirst, copy open5gs-ue0.yaml from open5gs-ue.yaml.
# cd UERANSIM/config
# cp open5gs-ue.yaml open5gs-ue0.yaml
Next, edit open5gs-ue0.yaml.
UERANSIM/config/open5gs-ue0.yaml
--- open5gs-ue.yaml.orig 2025-03-16 15:49:12.000000000 +0900
+++ open5gs-ue0.yaml 2025-05-04 09:24:31.352554298 +0900
@@ -1,9 +1,9 @@
# IMSI number of the UE. IMSI = [MCC|MNC|MSISDN] (In total 15 digits)
-supi: 'imsi-999700000000001'
+supi: 'imsi-001010000000000'
# Mobile Country Code value of HPLMN
-mcc: '999'
+mcc: '001'
# Mobile Network Code value of HPLMN (2 or 3 digits)
-mnc: '70'
+mnc: '01'
# SUCI Protection Scheme : 0 for Null-scheme, 1 for Profile A and 2 for Profile B
protectionScheme: 0
# Home Network Public Key for protecting with SUCI Profile A
@@ -31,7 +31,7 @@
# List of gNB IP addresses for Radio Link Simulation
gnbSearchList:
- - 127.0.0.1
+ - 192.168.0.131
# UAC Access Identities Configuration
uacAic:First, copy open5gs-ue1.yaml from open5gs-ue.yaml.
# cd UERANSIM/config
# cp open5gs-ue.yaml open5gs-ue1.yaml
Next, edit open5gs-ue1.yaml.
UERANSIM/config/open5gs-ue1.yaml
--- open5gs-ue.yaml.orig 2025-03-16 15:49:12.000000000 +0900
+++ open5gs-ue1.yaml 2025-11-21 20:15:31.242725049 +0900
@@ -1,9 +1,9 @@
# IMSI number of the UE. IMSI = [MCC|MNC|MSISDN] (In total 15 digits)
-supi: 'imsi-999700000000001'
+supi: 'imsi-001010000000001'
# Mobile Country Code value of HPLMN
-mcc: '999'
+mcc: '001'
# Mobile Network Code value of HPLMN (2 or 3 digits)
-mnc: '70'
+mnc: '01'
# SUCI Protection Scheme : 0 for Null-scheme, 1 for Profile A and 2 for Profile B
protectionScheme: 0
# Home Network Public Key for protecting with SUCI Profile A
@@ -31,7 +31,7 @@
# List of gNB IP addresses for Radio Link Simulation
gnbSearchList:
- - 127.0.0.1
+ - 192.168.0.131
# UAC Access Identities Configuration
uacAic:First, uncomment the next line in the /etc/sysctl.conf file and reflect it in the OS.
net.ipv4.ip_forward=1
# sysctl -p
Next, configure the TUNnel interface and set the routings towards Framed Routes.
ip tuntap add name ogstun mode tun
ip addr add 10.45.0.1/16 dev ogstun
ip link set ogstun up
ip route add 192.168.20.0/24 dev ogstun
ip route add 192.168.21.0/24 dev ogstun
ip route add 192.168.22.0/24 dev ogstun
Set the routings towards UEs and Framed Routes.
ip route add 10.45.0.0/16 via 192.168.16.151
ip route add 192.168.20.0/24 via 192.168.16.151
ip route add 192.168.21.0/24 via 192.168.16.151
ip route add 192.168.22.0/24 via 192.168.16.151
Delete default GW.
# ip route del default
First, uncomment the next line in the /etc/sysctl.conf file and reflect it in the OS.
net.ipv4.ip_forward=1
# sysctl -p
Next, after starting UE0 of UERANSIM on VM4, change the default GW interface to uesimtun0 as follows.
ip route change default dev uesimtun0
When stopping UE0 on VM4, the uesimtun0 interface is lost, and the default GW interface associated with the uesimtun0 interface is also lost. Therefore, after restarting UE0, add the default GW interface as follows.
ip route add default dev uesimtun0
First, uncomment the next line in the /etc/sysctl.conf file and reflect it in the OS.
net.ipv4.ip_forward=1
# sysctl -p
Next, after starting UE1 of UERANSIM on VM5, change the default GW interface to uesimtun0 as follows.
ip route change default dev uesimtun0
When stopping UE1 on VM5, the uesimtun0 interface is lost, and the default GW interface associated with the uesimtun0 interface is also lost. Therefore, after restarting UE1, add the default GW interface as follows.
ip route add default dev uesimtun0
Set 192.168.20.1/24 of UE0 as the default GW on PC1.
ip route change default via 192.168.20.1
Set 192.168.21.1/24 of UE1 as the default GW on PC2.
ip route change default via 192.168.21.1
Set 192.168.22.1/24 of UE1 as the default GW on PC3.
ip route change default via 192.168.22.1
MongoDB Compass is a useful GUI tool for working with MongoDB data. I used this tool to add Framed Routes in the following operations.
The UE0's sample subscriber information registered in MongoDB is as follows in JSON format. Among these, the items indicated by the arrows are Framed Routes to be added.
{
"_id": {
"$oid": "672e210b2a5baf13e3c51a26"
},
"ambr": {
"downlink": {
"value": 1,
"unit": 3
},
"uplink": {
"value": 1,
"unit": 3
}
},
"schema_version": 1,
"msisdn": [],
"imeisv": "4370816125816151",
"mme_host": [],
"mme_realm": [],
"purge_flag": [],
"access_restriction_data": 32,
"subscriber_status": 0,
"operator_determined_barring": 0,
"network_access_mode": 0,
"subscribed_rau_tau_timer": 12,
"imsi": "001010000000000",
"security": {
"k": "465B5CE8 B199B49F AA5F0A2E E238A6BC",
"amf": "8000",
"op": null,
"opc": "E8ED289D EBA952E4 283B54E8 8E6183CA",
"sqn": {
"$numberLong": "1344"
}
},
"slice": [
{
"_id": {
"$oid": "672e210b2a5baf13e3c51a27"
},
"sst": 1,
"default_indicator": true,
"session": [
{
"qos": {
"arp": {
"priority_level": 8,
"pre_emption_capability": 1,
"pre_emption_vulnerability": 1
},
"index": 9
},
"ambr": {
"downlink": {
"value": 1,
"unit": 3
},
"uplink": {
"value": 1,
"unit": 3
}
},
"_id": {
"$oid": "672e210b2a5baf13e3c51a28"
},
--> "ipv4_framed_routes": [
--> "192.168.20.0/24"
--> ],
"name": "internet",
"type": 1,
"pcc_rule": []
}
]
}
],
"__v": 0
}The UE1's sample subscriber information registered in MongoDB is as follows in JSON format. Among these, the items indicated by the arrows are Framed Routes to be added.
{
"_id": {
"$oid": "691e43a812ac4d03469f1cff"
},
"ambr": {
"downlink": {
"value": 1,
"unit": 3
},
"uplink": {
"value": 1,
"unit": 3
}
},
"schema_version": 1,
"msisdn": [],
"imeisv": "4370816125816151",
"mme_host": [],
"mme_realm": [],
"purge_flag": [],
"access_restriction_data": 32,
"subscriber_status": 0,
"operator_determined_barring": 0,
"network_access_mode": 0,
"subscribed_rau_tau_timer": 12,
"imsi": "001010000000001",
"security": {
"k": "465B5CE8 B199B49F AA5F0A2E E238A6BC",
"amf": "8000",
"op": null,
"opc": "E8ED289D EBA952E4 283B54E8 8E6183CA",
"sqn": {
"$numberLong": "385"
}
},
"slice": [
{
"_id": {
"$oid": "691e43a812ac4d03469f1d00"
},
"sst": 1,
"default_indicator": true,
"session": [
{
"qos": {
"arp": {
"priority_level": 8,
"pre_emption_capability": 1,
"pre_emption_vulnerability": 1
},
"index": 9
},
"ambr": {
"downlink": {
"value": 1,
"unit": 3
},
"uplink": {
"value": 1,
"unit": 3
}
},
"_id": {
"$oid": "691e43a812ac4d03469f1d01"
},
--> "ipv4_framed_routes": [
--> "192.168.21.0/24",
--> "192.168.22.0/24"
--> ],
"name": "internet",
"type": 1,
"pcc_rule": []
}
]
}
],
"__v": 0
}Please refer to the following for building Open5GS and UERANSIM respectively.
- Open5GS v2.7.6 (2026.01.17) - https://open5gs.org/open5gs/docs/guide/02-building-open5gs-from-sources/
- UERANSIM v3.2.7 (2025.10.25) - https://github.com/aligungr/UERANSIM/wiki/Installation
Install MongoDB on Open5GS 5GC C-Plane machine. It is not necessary to install MongoDB on Open5GS 5GC U-Plane machine.
First run the 5GC, then UERANSIM (UE & RAN implementation).
First, run Open5GS 5GC C-Plane.
- Open5GS 5GC C-Plane
./install/bin/open5gs-nrfd &
sleep 2
./install/bin/open5gs-scpd &
sleep 2
./install/bin/open5gs-amfd &
sleep 2
./install/bin/open5gs-smfd &
./install/bin/open5gs-ausfd &
./install/bin/open5gs-udmd &
./install/bin/open5gs-udrd &
./install/bin/open5gs-pcfd &
./install/bin/open5gs-nssfd &
./install/bin/open5gs-bsfd &
Next, run Open5GS 5GC U-Plane.
./install/bin/open5gs-upfd &
First, do an NG Setup between gNodeB and 5GC, then register the UE with 5GC and establish a PDU session.
Please refer to the following for usage of UERANSIM.
https://github.com/aligungr/UERANSIM/wiki/Usage
Start gNodeB as follows.
# ./nr-gnb -c ../config/open5gs-gnb.yaml
UERANSIM v3.2.7
[2026-02-11 14:55:48.821] [sctp] [info] Trying to establish SCTP connection... (192.168.0.111:38412)
[2026-02-11 14:55:48.824] [sctp] [info] SCTP connection established (192.168.0.111:38412)
[2026-02-11 14:55:48.824] [sctp] [debug] SCTP association setup ascId[10]
[2026-02-11 14:55:48.824] [ngap] [debug] Sending NG Setup Request
[2026-02-11 14:55:48.830] [ngap] [debug] NG Setup Response received
[2026-02-11 14:55:48.830] [ngap] [info] NG Setup procedure is successful
The Open5GS C-Plane log when executed is as follows.
02/11 14:55:48.615: [amf] INFO: gNB-N2 accepted[192.168.0.131]:56351 in ng-path module (../src/amf/ngap-sctp.c:113)
02/11 14:55:48.615: [amf] INFO: gNB-N2 accepted[192.168.0.131] in master_sm module (../src/amf/amf-sm.c:937)
02/11 14:55:48.620: [amf] INFO: [Added] Number of gNBs is now 1 (../src/amf/context.c:1277)
02/11 14:55:48.620: [amf] INFO: gNB-N2[192.168.0.131] max_num_of_ostreams : 10 (../src/amf/amf-sm.c:984)
Start UE0 as follows. This will register the UE with 5GC and establish a PDU session.
# ./nr-ue -c ../config/open5gs-ue0.yaml
UERANSIM v3.2.7
[2026-02-11 14:56:44.567] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2026-02-11 14:56:44.568] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2026-02-11 14:56:44.568] [nas] [info] Selected plmn[001/01]
[2026-02-11 14:56:44.568] [rrc] [info] Selected cell plmn[001/01] tac[1] category[SUITABLE]
[2026-02-11 14:56:44.568] [nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2026-02-11 14:56:44.568] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2026-02-11 14:56:44.568] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2026-02-11 14:56:44.569] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2026-02-11 14:56:44.569] [nas] [debug] Sending Initial Registration
[2026-02-11 14:56:44.569] [rrc] [debug] Sending RRC Setup Request
[2026-02-11 14:56:44.569] [nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2026-02-11 14:56:44.570] [rrc] [info] RRC connection established
[2026-02-11 14:56:44.570] [rrc] [info] UE switches to state [RRC-CONNECTED]
[2026-02-11 14:56:44.570] [nas] [info] UE switches to state [CM-CONNECTED]
[2026-02-11 14:56:44.576] [nas] [debug] Authentication Request received
[2026-02-11 14:56:44.576] [nas] [debug] Received SQN [000000000AA1]
[2026-02-11 14:56:44.576] [nas] [debug] SQN-MS [000000000000]
[2026-02-11 14:56:44.580] [nas] [debug] Security Mode Command received
[2026-02-11 14:56:44.580] [nas] [debug] Selected integrity[2] ciphering[0]
[2026-02-11 14:56:44.591] [nas] [debug] Registration accept received
[2026-02-11 14:56:44.592] [nas] [info] UE switches to state [MM-REGISTERED/NORMAL-SERVICE]
[2026-02-11 14:56:44.592] [nas] [debug] Sending Registration Complete
[2026-02-11 14:56:44.592] [nas] [info] Initial Registration is successful
[2026-02-11 14:56:44.592] [nas] [debug] Sending PDU Session Establishment Request
[2026-02-11 14:56:44.592] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2026-02-11 14:56:44.797] [nas] [debug] Configuration Update Command received
[2026-02-11 14:56:44.810] [nas] [debug] PDU Session Establishment Accept received
[2026-02-11 14:56:44.812] [nas] [info] PDU Session establishment is successful PSI[1]
[2026-02-11 14:56:44.830] [app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.45.0.2] is up.
The Open5GS C-Plane log when executed is as follows.
02/11 14:56:44.419: [amf] INFO: InitialUEMessage (../src/amf/ngap-handler.c:461)
02/11 14:56:44.419: [amf] INFO: [Added] Number of gNB-UEs is now 1 (../src/amf/context.c:2777)
02/11 14:56:44.419: [amf] INFO: RAN_UE_NGAP_ID[1] AMF_UE_NGAP_ID[1] TAC[1] CellID[0x10] (../src/amf/ngap-handler.c:622)
02/11 14:56:44.419: [amf] INFO: [suci-0-001-01-0000-0-0-0000000000] Unknown UE by SUCI (../src/amf/context.c:1912)
02/11 14:56:44.419: [amf] INFO: [Added] Number of AMF-UEs is now 1 (../src/amf/context.c:1688)
02/11 14:56:44.419: [gmm] INFO: Registration request (../src/amf/gmm-sm.c:1623)
02/11 14:56:44.419: [gmm] INFO: [suci-0-001-01-0000-0-0-0000000000] SUCI (../src/amf/gmm-handler.c:183)
02/11 14:56:44.419: [sbi] INFO: [3dc25174-070e-41f1-84ba-3bc8191064c1] Setup NF Instance [type:AUSF] (../lib/sbi/path.c:307)
02/11 14:56:44.420: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.11:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.420: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:56:44.421: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.421: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:56:44.421: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.424: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.11:7777] (../src/amf/nausf-handler.c:130)
02/11 14:56:44.425: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.11:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.426: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.426: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.428: [ausf] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/ausf/nudm-handler.c:337)
02/11 14:56:44.429: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:56:44.430: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.430: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.431: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:56:44.432: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.432: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.433: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.434: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.435: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.435: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.436: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/amf/nudm-handler.c:361)
02/11 14:56:44.436: [sbi] INFO: [3dc3ccb6-070e-41f1-aa69-dd67ce01f7b6] Setup NF Instance [type:PCF] (../lib/sbi/path.c:307)
02/11 14:56:44.436: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.437: [pcf] INFO: Setup NF EndPoint(addr) [127.0.0.5:7777] (../src/pcf/npcf-handler.c:114)
02/11 14:56:44.437: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:56:44.437: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.439: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/amf/npcf-handler.c:143)
02/11 14:56:44.645: [gmm] INFO: [imsi-001010000000000] Registration complete (../src/amf/gmm-sm.c:3012)
02/11 14:56:44.645: [amf] INFO: [imsi-001010000000000] Configuration update command (../src/amf/nas-path.c:609)
02/11 14:56:44.645: [gmm] INFO: UTC [2026-02-11T05:56:44] Timezone[0]/DST[0] (../src/amf/gmm-build.c:551)
02/11 14:56:44.645: [gmm] INFO: LOCAL [2026-02-11T14:56:44] Timezone[32400]/DST[0] (../src/amf/gmm-build.c:556)
02/11 14:56:44.645: [amf] INFO: [Added] Number of AMF-Sessions is now 1 (../src/amf/context.c:2798)
02/11 14:56:44.645: [gmm] INFO: UE SUPI[imsi-001010000000000] DNN[internet] LBO[0] S_NSSAI[SST:1 SD:0xffffff] smContextRef[NULL] smContextResourceURI[NULL] (../src/amf/gmm-handler.c:1416)
02/11 14:56:44.645: [gmm] INFO: V-SMF Instance [3dd55396-070e-41f1-a6e0-5b93b054d505](LIST) (../src/amf/gmm-handler.c:1493)
02/11 14:56:44.645: [gmm] INFO: [3dd55396-070e-41f1-a6e0-5b93b054d505] Setup NF Instance [type:SMF] (../src/amf/gmm-handler.c:1495)
02/11 14:56:44.645: [gmm] INFO: V-SMF Instance [3dd55396-070e-41f1-a6e0-5b93b054d505] (../src/amf/gmm-handler.c:1505)
02/11 14:56:44.645: [gmm] INFO: V-SMF discovered in Non-Roaming or LBO-Roaming[0] (../src/amf/gmm-handler.c:1574)
02/11 14:56:44.645: [gmm] INFO: nsmf_pdusession [1:0x5dbe1aac7c70:(nil)] (../src/amf/gmm-handler.c:1614)
02/11 14:56:44.645: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.646: [smf] INFO: [Added] Number of SMF-UEs is now 1 (../src/smf/context.c:1069)
02/11 14:56:44.646: [smf] INFO: [Added] Number of SMF-Sessions is now 1 (../src/smf/context.c:3393)
02/11 14:56:44.646: [smf] INFO: Setup NF EndPoint(addr) [127.0.0.5:7777] (../src/smf/nsmf-handler.c:331)
02/11 14:56:44.647: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:56:44.647: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.647: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.649: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.650: [smf] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/smf/nudm-handler.c:456)
02/11 14:56:44.650: [sbi] INFO: [3dc3ccb6-070e-41f1-aa69-dd67ce01f7b6] Setup NF Instance [type:PCF] (../lib/sbi/path.c:307)
02/11 14:56:44.651: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.651: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/amf/nsmf-handler.c:140)
02/11 14:56:44.651: [pcf] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/pcf/npcf-handler.c:448)
02/11 14:56:44.652: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:56:44.652: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.653: [sbi] INFO: [3dc29e36-070e-41f1-a629-7370023df342] Setup NF Instance [type:BSF] (../lib/sbi/path.c:307)
02/11 14:56:44.653: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.15:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.654: [pcf] INFO: Setup NF EndPoint(addr) [127.0.0.15:7777] (../src/pcf/nbsf-handler.c:121)
02/11 14:56:44.655: [smf] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/smf/npcf-handler.c:373)
02/11 14:56:44.655: [smf] INFO: UE SUPI[imsi-001010000000000] DNN[internet] IPv4[10.45.0.2] IPv6[] (../src/smf/npcf-handler.c:594)
02/11 14:56:44.656: [gtp] INFO: gtp_connect() [192.168.13.151]:2152 (../lib/gtp/path.c:60)
02/11 14:56:44.656: [sbi] INFO: [3c8ae6b8-070e-41f1-ab6b-17d5e9966247] Setup NF Instance [type:AMF] (../lib/sbi/path.c:307)
02/11 14:56:44.657: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.5:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.659: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.660: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:56:44.660: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.661: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:56:44.661: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:56:44.662: [amf] INFO: [imsi-001010000000000:1:11][0:0:NULL] /nsmf-pdusession/v1/sm-contexts/{smContextRef}/modify (../src/amf/nsmf-handler.c:937)
The Open5GS U-Plane log when executed is as follows.
02/11 14:56:44.678: [upf] INFO: [Added] Number of UPF-Sessions is now 1 (../src/upf/context.c:212)
02/11 14:56:44.678: [gtp] INFO: gtp_connect() [192.168.14.111]:2152 (../lib/gtp/path.c:60)
02/11 14:56:44.678: [upf] INFO: UE F-SEID[UP:0xd8b CP:0xa32] APN[internet] PDN-Type[1] IPv4[10.45.0.2] IPv6[] (../src/upf/context.c:498)
02/11 14:56:44.682: [gtp] INFO: gtp_connect() [192.168.13.131]:2152 (../lib/gtp/path.c:60)
Looking at the console log of the nr-ue command, UE0 has been assigned the IP address 10.45.0.2 from Open5GS 5GC.
[2026-02-11 14:56:44.830] [app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.45.0.2] is up.
Just in case, make sure it matches the IP address of the UE0's TUNnel interface.
# ip addr show
...
11: uesimtun0: <POINTOPOINT,PROMISC,NOTRAILERS,UP,LOWER_UP> mtu 1400 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 10.45.0.2/24 scope global uesimtun0
valid_lft forever preferred_lft forever
inet6 fe80::75e8:b01c:9ecd:91c7/64 scope link stable-privacy
valid_lft forever preferred_lft forever
...
Don't forget Network settings of UERANSIM UE0.
Start UE1 as follows. This will register the UE with 5GC and establish a PDU session.
# ./nr-ue -c ../config/open5gs-ue1.yaml
UERANSIM v3.2.7
[2026-02-11 14:59:27.442] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2026-02-11 14:59:27.442] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2026-02-11 14:59:27.443] [nas] [info] Selected plmn[001/01]
[2026-02-11 14:59:27.443] [rrc] [info] Selected cell plmn[001/01] tac[1] category[SUITABLE]
[2026-02-11 14:59:27.443] [nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2026-02-11 14:59:27.443] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2026-02-11 14:59:27.443] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2026-02-11 14:59:27.443] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2026-02-11 14:59:27.443] [nas] [debug] Sending Initial Registration
[2026-02-11 14:59:27.443] [nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2026-02-11 14:59:27.443] [rrc] [debug] Sending RRC Setup Request
[2026-02-11 14:59:27.444] [rrc] [info] RRC connection established
[2026-02-11 14:59:27.444] [rrc] [info] UE switches to state [RRC-CONNECTED]
[2026-02-11 14:59:27.444] [nas] [info] UE switches to state [CM-CONNECTED]
[2026-02-11 14:59:27.449] [nas] [debug] Authentication Request received
[2026-02-11 14:59:27.449] [nas] [debug] Received SQN [000000000261]
[2026-02-11 14:59:27.449] [nas] [debug] SQN-MS [000000000000]
[2026-02-11 14:59:27.453] [nas] [debug] Security Mode Command received
[2026-02-11 14:59:27.453] [nas] [debug] Selected integrity[2] ciphering[0]
[2026-02-11 14:59:27.464] [nas] [debug] Registration accept received
[2026-02-11 14:59:27.464] [nas] [info] UE switches to state [MM-REGISTERED/NORMAL-SERVICE]
[2026-02-11 14:59:27.464] [nas] [debug] Sending Registration Complete
[2026-02-11 14:59:27.464] [nas] [info] Initial Registration is successful
[2026-02-11 14:59:27.464] [nas] [debug] Sending PDU Session Establishment Request
[2026-02-11 14:59:27.465] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2026-02-11 14:59:27.669] [nas] [debug] Configuration Update Command received
[2026-02-11 14:59:27.681] [nas] [debug] PDU Session Establishment Accept received
[2026-02-11 14:59:27.681] [nas] [info] PDU Session establishment is successful PSI[1]
[2026-02-11 14:59:27.700] [app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.45.0.3] is up.
The Open5GS C-Plane log when executed is as follows.
02/11 14:59:27.333: [amf] INFO: InitialUEMessage (../src/amf/ngap-handler.c:461)
02/11 14:59:27.333: [amf] INFO: [Added] Number of gNB-UEs is now 2 (../src/amf/context.c:2777)
02/11 14:59:27.333: [amf] INFO: RAN_UE_NGAP_ID[2] AMF_UE_NGAP_ID[2] TAC[1] CellID[0x10] (../src/amf/ngap-handler.c:622)
02/11 14:59:27.333: [amf] INFO: [suci-0-001-01-0000-0-0-0000000001] Unknown UE by SUCI (../src/amf/context.c:1912)
02/11 14:59:27.333: [amf] INFO: [Added] Number of AMF-UEs is now 2 (../src/amf/context.c:1688)
02/11 14:59:27.333: [gmm] INFO: Registration request (../src/amf/gmm-sm.c:1623)
02/11 14:59:27.333: [gmm] INFO: [suci-0-001-01-0000-0-0-0000000001] SUCI (../src/amf/gmm-handler.c:183)
02/11 14:59:27.333: [sbi] INFO: [3dc25174-070e-41f1-84ba-3bc8191064c1] Setup NF Instance [type:AUSF] (../lib/sbi/path.c:307)
02/11 14:59:27.333: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.11:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.334: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:59:27.334: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.335: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:59:27.335: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.337: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.11:7777] (../src/amf/nausf-handler.c:130)
02/11 14:59:27.338: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.11:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.339: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.339: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.341: [ausf] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/ausf/nudm-handler.c:337)
02/11 14:59:27.342: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:59:27.342: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.343: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.344: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:59:27.344: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.345: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.346: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.346: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.348: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.348: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.349: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/amf/nudm-handler.c:361)
02/11 14:59:27.349: [sbi] INFO: [3dc3ccb6-070e-41f1-aa69-dd67ce01f7b6] Setup NF Instance [type:PCF] (../lib/sbi/path.c:307)
02/11 14:59:27.349: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.350: [pcf] INFO: Setup NF EndPoint(addr) [127.0.0.5:7777] (../src/pcf/npcf-handler.c:114)
02/11 14:59:27.350: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:59:27.350: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.352: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/amf/npcf-handler.c:143)
02/11 14:59:27.557: [gmm] INFO: [imsi-001010000000001] Registration complete (../src/amf/gmm-sm.c:3012)
02/11 14:59:27.557: [amf] INFO: [imsi-001010000000001] Configuration update command (../src/amf/nas-path.c:609)
02/11 14:59:27.557: [gmm] INFO: UTC [2026-02-11T05:59:27] Timezone[0]/DST[0] (../src/amf/gmm-build.c:551)
02/11 14:59:27.557: [gmm] INFO: LOCAL [2026-02-11T14:59:27] Timezone[32400]/DST[0] (../src/amf/gmm-build.c:556)
02/11 14:59:27.557: [amf] INFO: [Added] Number of AMF-Sessions is now 2 (../src/amf/context.c:2798)
02/11 14:59:27.557: [gmm] INFO: UE SUPI[imsi-001010000000001] DNN[internet] LBO[0] S_NSSAI[SST:1 SD:0xffffff] smContextRef[NULL] smContextResourceURI[NULL] (../src/amf/gmm-handler.c:1416)
02/11 14:59:27.557: [gmm] INFO: V-SMF Instance [3dd55396-070e-41f1-a6e0-5b93b054d505](LIST) (../src/amf/gmm-handler.c:1493)
02/11 14:59:27.557: [gmm] INFO: [3dd55396-070e-41f1-a6e0-5b93b054d505] Setup NF Instance [type:SMF] (../src/amf/gmm-handler.c:1495)
02/11 14:59:27.557: [gmm] INFO: V-SMF Instance [3dd55396-070e-41f1-a6e0-5b93b054d505] (../src/amf/gmm-handler.c:1505)
02/11 14:59:27.557: [gmm] INFO: V-SMF discovered in Non-Roaming or LBO-Roaming[0] (../src/amf/gmm-handler.c:1574)
02/11 14:59:27.557: [gmm] INFO: nsmf_pdusession [1:0x5dbe1aac7c70:(nil)] (../src/amf/gmm-handler.c:1614)
02/11 14:59:27.557: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.558: [smf] INFO: [Added] Number of SMF-UEs is now 2 (../src/smf/context.c:1069)
02/11 14:59:27.558: [smf] INFO: [Added] Number of SMF-Sessions is now 2 (../src/smf/context.c:3393)
02/11 14:59:27.558: [smf] INFO: Setup NF EndPoint(addr) [127.0.0.5:7777] (../src/smf/nsmf-handler.c:331)
02/11 14:59:27.558: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:59:27.558: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.559: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.560: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.561: [smf] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/smf/nudm-handler.c:456)
02/11 14:59:27.561: [sbi] INFO: [3dc3ccb6-070e-41f1-aa69-dd67ce01f7b6] Setup NF Instance [type:PCF] (../lib/sbi/path.c:307)
02/11 14:59:27.562: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.562: [pcf] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/pcf/npcf-handler.c:448)
02/11 14:59:27.562: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:59:27.562: [amf] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/amf/nsmf-handler.c:140)
02/11 14:59:27.563: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.564: [sbi] INFO: [3dc29e36-070e-41f1-a629-7370023df342] Setup NF Instance [type:BSF] (../lib/sbi/path.c:307)
02/11 14:59:27.564: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.15:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.565: [pcf] INFO: Setup NF EndPoint(addr) [127.0.0.15:7777] (../src/pcf/nbsf-handler.c:121)
02/11 14:59:27.565: [smf] INFO: Setup NF EndPoint(addr) [127.0.0.13:7777] (../src/smf/npcf-handler.c:373)
02/11 14:59:27.566: [smf] INFO: UE SUPI[imsi-001010000000001] DNN[internet] IPv4[10.45.0.3] IPv6[] (../src/smf/npcf-handler.c:594)
02/11 14:59:27.566: [sbi] INFO: [3c8ae6b8-070e-41f1-ab6b-17d5e9966247] Setup NF Instance [type:AMF] (../lib/sbi/path.c:307)
02/11 14:59:27.567: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.5:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.569: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.4:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.570: [sbi] INFO: [3dc294ae-070e-41f1-ac3d-b5775845a89e] Setup NF Instance [type:UDM] (../lib/sbi/path.c:307)
02/11 14:59:27.570: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.12:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.571: [sbi] INFO: [3dc39f98-070e-41f1-ad97-4351983befe1] Setup NF Instance [type:UDR] (../lib/sbi/path.c:307)
02/11 14:59:27.571: [scp] INFO: Setup NF EndPoint(addr) [127.0.0.20:7777] (../src/scp/sbi-path.c:463)
02/11 14:59:27.572: [amf] INFO: [imsi-001010000000001:1:11][0:0:NULL] /nsmf-pdusession/v1/sm-contexts/{smContextRef}/modify (../src/amf/nsmf-handler.c:937)
The Open5GS U-Plane log when executed is as follows.
02/11 14:59:27.590: [upf] INFO: [Added] Number of UPF-Sessions is now 2 (../src/upf/context.c:212)
02/11 14:59:27.590: [upf] INFO: UE F-SEID[UP:0x4ad CP:0x82d] APN[internet] PDN-Type[1] IPv4[10.45.0.3] IPv6[] (../src/upf/context.c:498)
Looking at the console log of the nr-ue command, UE1 has been assigned the IP address 10.45.0.3 from Open5GS 5GC.
[2026-02-11 14:59:27.700] [app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.45.0.3] is up.
Just in case, make sure it matches the IP address of the UE1's TUNnel interface.
# ip addr show
...
11: uesimtun0: <POINTOPOINT,PROMISC,NOTRAILERS,UP,LOWER_UP> mtu 1400 qdisc fq_codel state UNKNOWN group default qlen 500
link/none
inet 10.45.0.3/24 scope global uesimtun0
valid_lft forever preferred_lft forever
inet6 fe80::f66a:3042:977f:7458/64 scope link stable-privacy
valid_lft forever preferred_lft forever
...
Don't forget Network settings of UERANSIM UE1.
On PC1, run tcpdump on ens20 to check Frame Routing of UE0 (192.168.20.0/24).
# tcpdump -i ens20 -n
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on ens20, link-type EN10MB (Ethernet), snapshot length 262144 bytes
On PC2, run tcpdump on ens20 to check Frame Routing of UE1 (192.168.21.0/24).
# tcpdump -i ens20 -n
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on ens20, link-type EN10MB (Ethernet), snapshot length 262144 bytes
On PC1, run tcpdump on ens20 to check Frame Routing of UE1 (192.168.22.0/24).
# tcpdump -i ens20 -n
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on ens20, link-type EN10MB (Ethernet), snapshot length 262144 bytes
On EXT (External Node), ping IP address (192.168.20.100/24) of Framed Routes of UE0 and confirm with tcpdump running on PC1.
# ping 192.168.20.100
PING 192.168.20.100 (192.168.20.100) 56(84) bytes of data.
64 bytes from 192.168.20.100: icmp_seq=1 ttl=62 time=1.32 ms
64 bytes from 192.168.20.100: icmp_seq=2 ttl=62 time=1.26 ms
64 bytes from 192.168.20.100: icmp_seq=3 ttl=62 time=1.27 ms
The tcpdump log on PC1 is as follows.
15:05:35.354589 IP 192.168.16.152 > 192.168.20.100: ICMP echo request, id 1410, seq 1, length 64
15:05:35.354609 IP 192.168.20.100 > 192.168.16.152: ICMP echo reply, id 1410, seq 1, length 64
15:05:36.355963 IP 192.168.16.152 > 192.168.20.100: ICMP echo request, id 1410, seq 2, length 64
15:05:36.355987 IP 192.168.20.100 > 192.168.16.152: ICMP echo reply, id 1410, seq 2, length 64
15:05:37.357256 IP 192.168.16.152 > 192.168.20.100: ICMP echo request, id 1410, seq 3, length 64
15:05:37.357275 IP 192.168.20.100 > 192.168.16.152: ICMP echo reply, id 1410, seq 3, length 64
Note. Confirm that no packets have arrived at PC2 and PC3.
On EXT (External Node), ping IP address (192.168.21.100/24) of Framed Routes of UE1 and confirm with tcpdump running on PC2.
# ping 192.168.21.100
PING 192.168.21.100 (192.168.21.100) 56(84) bytes of data.
64 bytes from 192.168.21.100: icmp_seq=1 ttl=62 time=1.19 ms
64 bytes from 192.168.21.100: icmp_seq=2 ttl=62 time=1.20 ms
64 bytes from 192.168.21.100: icmp_seq=3 ttl=62 time=1.30 ms
The tcpdump log on PC2 is as follows.
15:07:02.474035 IP 192.168.16.152 > 192.168.21.100: ICMP echo request, id 1411, seq 1, length 64
15:07:02.474056 IP 192.168.21.100 > 192.168.16.152: ICMP echo reply, id 1411, seq 1, length 64
15:07:03.475330 IP 192.168.16.152 > 192.168.21.100: ICMP echo request, id 1411, seq 2, length 64
15:07:03.475353 IP 192.168.21.100 > 192.168.16.152: ICMP echo reply, id 1411, seq 2, length 64
15:07:04.476716 IP 192.168.16.152 > 192.168.21.100: ICMP echo request, id 1411, seq 3, length 64
15:07:04.476734 IP 192.168.21.100 > 192.168.16.152: ICMP echo reply, id 1411, seq 3, length 64
Note. Confirm that no packets have arrived at PC1 and PC3.
On EXT (External Node), ping IP address (192.168.22.100/24) of Framed Routes of UE1 and confirm with tcpdump running on PC3.
# ping 192.168.22.100
PING 192.168.22.100 (192.168.22.100) 56(84) bytes of data.
64 bytes from 192.168.22.100: icmp_seq=1 ttl=62 time=1.48 ms
64 bytes from 192.168.22.100: icmp_seq=2 ttl=62 time=1.33 ms
64 bytes from 192.168.22.100: icmp_seq=3 ttl=62 time=1.33 ms
The tcpdump log on PC3 is as follows.
15:08:01.402362 IP 192.168.16.152 > 192.168.22.100: ICMP echo request, id 1412, seq 1, length 64
15:08:01.402418 IP 192.168.22.100 > 192.168.16.152: ICMP echo reply, id 1412, seq 1, length 64
15:08:02.403809 IP 192.168.16.152 > 192.168.22.100: ICMP echo request, id 1412, seq 2, length 64
15:08:02.403829 IP 192.168.22.100 > 192.168.16.152: ICMP echo reply, id 1412, seq 2, length 64
15:08:03.405199 IP 192.168.16.152 > 192.168.22.100: ICMP echo request, id 1412, seq 3, length 64
15:08:03.405219 IP 192.168.22.100 > 192.168.16.152: ICMP echo reply, id 1412, seq 3, length 64
Note. Confirm that no packets have arrived at PC1 and PC2.
On EXT (External Node), ping IP address (192.168.23.100/24) of Framed Routes which do not exist on either UE0 or UE1, and confirm no packets with tcpdump running on PC1, PC2 and PC3.
# ping 192.168.23.100
PING 192.168.23.100 (192.168.23.100) 56(84) bytes of data.
Make sure there are no tcpdump logs on PC1, PC2 and PC3.
I was able to confirm the very simple configuration for Framed Routing.
In practice, I think that PSA-UPF and UE will require more complex network routing configuration.
In this article, I kept the minimum settings necessary to check Framed Routing.
Also in this scenario, UE0 and UE1 only serve routing and not NAT. You may run ping and iperf3 commands bidirectionally between PC1, PC2, PC3 and EXT.
I would like to thank the excellent developers and all the contributors of Open5GS and UERANSIM.
- [2026.02.11] Changed to the scenario where N3/N4/N6 interfaces of UPF are separated into different networks.
- [2025.11.22] Added information related to Open5GS Framed Routing feature to the top of this article.
- [2025.11.21] Modified the scenario to verify Framed Routing to explain it in a bit more detail.
- [2024.03.31] This commit fixed the issue where SMF crashes without
gtpcsection insmf.yaml. So deleted thegtpcsection insmf.yamlfor 5G use. - [2024.03.29] Updated to Open5GS v2.7.0 (2024.03.24).
- [2023.03.18] Updated to Open5GS v2.6.1 (2023.03.18) and UERANSIM v3.2.6 (2023.03.17).
- [2023.03.11] Added the description about ping between UE0 and UE1, and ping between Framed routes belonging to different UEs.
- [2023.01.29] Initial release.
