I’m in the last step of the ueransim installation 7. Testing UERANSIM against free5GC and trying to run these steps but I fail to create the uesimtun0.
My terminal outputs are these
1st terminal
ubuntu@free5gc:~ sudo sysctl -w net.ipv4.ip_forward=1
[sudo] password for ubuntu:
net.ipv4.ip_forward = 1
ubuntu@free5gc:~ sudo iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE
ubuntu@free5gc:~ sudo systemctl stop ufw
ubuntu@free5gc:~ sudo iptables -I FORWARD 1 -j ACCEPT
ubuntu@free5gc:~ cd ~/free5gc
ubuntu@free5gc:~/free5gc ./run.sh
log path: ./log/20230824_090118/
2023-08-24T09:01:19.125000723Z [INFO][UPF][Main] UPF version:
free5GC version: v3.3.0
build time: 2023-08-19T09:17:26Z
commit hash: 4474dc86
commit time: 2023-06-08T03:37:39Z
go version: go1.21.0 linux/amd64
2023-08-24T09:01:19.131687070Z [INFO][UPF][CFG] Read config from [./config/upfcfg.yaml]
2023-08-24T09:01:19.155411980Z [INFO][UPF][CFG] ==================================================
2023-08-24T09:01:19.156633677Z [INFO][UPF][CFG] (*factory.Config)(0xc000014230)({
Version: (string) (len=5) “1.0.3”,
Description: (string) (len=31) “UPF initial local configuration”,
Pfcp: (*factory.Pfcp)(0xc0004b6ea0)({
Addr: (string) (len=9) “127.0.0.8”,
NodeID: (string) (len=9) “127.0.0.8”,
RetransTimeout: (time.Duration) 1s,
MaxRetrans: (uint8) 3
}),
Gtpu: (*factory.Gtpu)(0xc0004b7050)({
Forwarder: (string) (len=5) “gtp5g”,
IfList: ([]factory.IfInfo) (len=1 cap=1) {
(factory.IfInfo) {
Addr: (string) (len=9) “127.0.0.8”,
Type: (string) (len=2) “N3”,
Name: (string) “”,
IfName: (string) “”,
MTU: (uint32) 0
}
}
}),
DnnList: ([]factory.DnnList) (len=1 cap=1) {
(factory.DnnList) {
Dnn: (string) (len=8) “internet”,
Cidr: (string) (len=12) “10.60.0.0/24”,
NatIfName: (string) “”
}
},
Logger: (*factory.Logger)(0xc0004ac4a0)({
Enable: (bool) true,
Level: (string) (len=4) “info”,
ReportCaller: (bool) false
})
})
2023-08-24T09:01:19.156802169Z [INFO][UPF][CFG] ==================================================
2023-08-24T09:01:19.15
2nd terminal is this
ubuntu@ueransim:~ cd ~/UERANSIM
ubuntu@ueransim:~/UERANSIM ls
bin build cmake-build-release CMakeLists.txt config doc LICENSE makefile README.md share src tools
ubuntu@ueransim:~/UERANSIM$ build/nr-gnb -c config/free5gc-gnb.yaml
UERANSIM v3.2.6
[2023-08-24 09:02:18.062] [sctp] [info] Trying to establish SCTP connection… (192.168.56.101:38412)
[2023-08-24 09:02:18.131] [sctp] [info] SCTP connection established (192.168.56.101:38412)
[2023-08-24 09:02:18.133] [sctp] [debug] SCTP association setup ascId[3]
[2023-08-24 09:02:18.133] [ngap] [debug] Sending NG Setup Request
[2023-08-24 09:02:18.173] [ngap] [debug] NG Setup Response received
[2023-08-24 09:02:18.173] [ngap] [info] NG Setup procedure is successful
[2023-08-24 09:03:42.413] [rrc] [debug] UE[1] new signal detected
[2023-08-24 09:03:42.436] [rrc] [info] RRC Setup for UE[1]
[2023-08-24 09:03:42.439] [ngap] [debug] Initial NAS message received from UE[1]
[2023-08-24 09:03:57.830] [rrc] [debug] UE[2] new signal detected
[2023-08-24 09:03:59.551] [rls] [debug] UE[1] signal lost
[2023-08-24 09:04:07.473] [rrc] [info] RRC Setup for UE[2]
[2023-08-24 09:04:07.492] [ngap] [debug] Initial NAS message received from UE[2]
[2023-08-24 09:04:23.399] [rrc] [debug] UE[3] new signal detected
[2023-08-24 09:04:25.218] [rls] [debug] UE[2] signal lost
[2023-08-24 09:04:32.554] [rrc] [info] RRC Setup for UE[3]
[2023-08-24 09:04:32.570] [ngap] [debug] Initial NAS message received from UE[3]
[2023-08-24 09:04:48.374] [rrc] [debug] UE[4] new signal detected
[2023-08-24 09:04:50.198] [rls] [debug] UE[3] signal lost
[2023-08-24 09:04:57.618] [rrc] [info] RRC Setup for UE[4]
[2023-08-24 09:04:57.629] [ngap] [debug] Initial NAS message received from UE[4]
[2023-08-24 09:04:59.654] [rrc] [debug] UE[5] new signal detected
3rd terminal s this
ubuntu@ueransim:~ cd ~/UERANSIM
ubuntu@ueransim:~/UERANSIM sudo build/nr-ue -c config/free5gc-ue.yaml
[sudo] password for ubuntu:
UERANSIM v3.2.6
[2023-08-24 09:03:42.415] [nas] [info] UE switches to state [MM-DEREGISTERED/PLMN-SEARCH]
[2023-08-24 09:03:42.417] [rrc] [debug] New signal detected for cell[1], total [1] cells in coverage
[2023-08-24 09:03:42.421] [nas] [info] Selected plmn[208/93]
[2023-08-24 09:03:42.421] [rrc] [info] Selected cell plmn[208/93] tac[1] category[SUITABLE]
[2023-08-24 09:03:42.422] [nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2023-08-24 09:03:42.423] [nas] [info] UE switches to state [MM-DEREGISTERED/NORMAL-SERVICE]
[2023-08-24 09:03:42.424] [nas] [debug] Initial registration required due to [MM-DEREG-NORMAL-SERVICE]
[2023-08-24 09:03:42.426] [nas] [debug] UAC access attempt is allowed for identity[0], category[MO_sig]
[2023-08-24 09:03:42.427] [nas] [debug] Sending Initial Registration
[2023-08-24 09:03:42.432] [nas] [info] UE switches to state [MM-REGISTER-INITIATED]
[2023-08-24 09:03:42.432] [rrc] [debug] Sending RRC Setup Request
[2023-08-24 09:03:42.438] [rrc] [info] RRC connection established
[2023-08-24 09:03:42.438] [rrc] [info] UE switches to state [RRC-CONNECTED]
[2023-08-24 09:03:42.440] [nas] [info] UE switches to state [CM-CONNECTED]
[2023-08-24 09:03:42.582] [nas] [debug] Authentication Request received
[2023-08-24 09:03:42.583] [nas] [debug] Sending Authentication Failure due to SQN out of range
[2023-08-24 09:03:57.446] [nas] [debug] NAS timer[3510] expired [1]
[2023-08-24 09:03:57.447] [nas] [info] UE switches to state [MM-DEREGISTERED/PS]
[2023-08-24 09:03:57.448] [nas] [info] UE switches to state [5U2-NOT-UPDATED]
[2023-08-24 09:03:57.448] [nas] [info] Performing local release of NAS connection
[2023-08-24 09:03:57.449] [nas] [info] UE switches to state [MM-DEREGISTERED/ATTEMPTING-REGISTRATION]
[2023-08-24 09:03:57.450] [rrc] [info] UE switches to state [RRC-IDLE]
[2023-08-24 09:03:57.450] [nas] [info] UE switches to state [CM-IDLE]
[2023-08-24 09:03:58.449] [nas] [debug] NAS timer[3520] expired [1]
[2023-08-24 09:03:58.450] [nas] [error] Network failing the authentication check
And lastly in the fourth terminal i’m getting all my problems showed up
ubuntu@ueransim:~ ping 192.168.56.101
PING 192.168.56.101 (192.168.56.101) 56(84) bytes of data.
64 bytes from 192.168.56.101: icmp_seq=1 ttl=64 time=2.38 ms
64 bytes from 192.168.56.101: icmp_seq=2 ttl=64 time=3.10 ms
^C
--- 192.168.56.101 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 2.381/2.741/3.102/0.360 ms
ubuntu@ueransim:~ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fedd:43c6 prefixlen 64 scopeid 0x20
ether 08:00:27:dd:43:c6 txqueuelen 1000 (Ethernet)
RX packets 31 bytes 4810 (4.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 46 bytes 4297 (4.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.56.103 netmask 255.255.255.0 broadcast 192.168.56.255
inet6 fe80::a00:27ff:fe83:7299 prefixlen 64 scopeid 0x20
ether 08:00:27:83:72:99 txqueuelen 1000 (Ethernet)
RX packets 701 bytes 61446 (61.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 341 bytes 48935 (48.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 275 bytes 18301 (18.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 275 bytes 18301 (18.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
As it can clearly be shown i can’t create the tunnel uesimtun0 as it doesnt appear when i run ifconfig
Any help would be really appreciated thanks everyone in advance!