srsRAN_Project icon indicating copy to clipboard operation
srsRAN_Project copied to clipboard

UE can't ping the CN/internet and viceversa

Open Lab1R531 opened this issue 7 months ago • 2 comments

Hi srsRAN Support!

I know that many issues of this topic have been opened, I tried to read them all to try to understand, but I could not solve the problem. Can you help me understand where I am going wrong? Thanks in advance!

SET-UP:

  • srsRAN_4G --> UE, on PC1
  • srsRAN_Project --> GNB, on PC2
  • Open5GS --> CN, on PC2
  • Ettus B210 --> SDR

CN running in Background --> 10.45.0.1

GNB+CN$ ifconfig ogstun
ogstun: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1400
        inet 10.45.0.1  netmask 255.255.0.0  destination 10.45.0.1
        inet6 2001:db8:cafe::1  prefixlen 48  scopeid 0x0<global>
        inet6 fe80::12c2:8605:1f:c8f  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2517  bytes 156446 (156.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Starts UE and connects to the network. Gets IP --> 10.45.0.14

UE$ ifconfig tun_srsue
tun_srsue: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 10.45.0.14  netmask 255.255.255.0  destination 10.45.0.14
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The Route Table on UE is:

UE$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.10.10.1      0.0.0.0         UG    101    0        0 eno2
10.10.10.0      0.0.0.0         255.255.255.0   U     101    0        0 eno2
10.45.0.0       0.0.0.0         255.255.255.0   U     0      0        0 tun_srsue
10.153.0.0      10.153.160.1    255.255.0.0     UG    100    0        0 eno1
10.153.160.0    0.0.0.0         255.255.255.128 U     100    0        0 eno1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eno1
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.19.1.0      0.0.0.0         255.255.255.0   U     0      0        0 br-17426b678d94

I add the default gw to UE and update the route table:

UE$ sudo route add default gw 10.45.0.1
UE$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.45.0.1       0.0.0.0         UG    0      0        0 tun_srsue
0.0.0.0         10.10.10.1      0.0.0.0         UG    101    0        0 eno2
10.10.10.0      0.0.0.0         255.255.255.0   U     101    0        0 eno2
10.45.0.0       0.0.0.0         255.255.255.0   U     0      0        0 tun_srsue
10.153.0.0      10.153.160.1    255.255.0.0     UG    100    0        0 eno1
10.153.160.0    0.0.0.0         255.255.255.128 U     100    0        0 eno1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eno1
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0
172.19.1.0      0.0.0.0         255.255.255.0   U     0      0        0 br-17426b678d94

I check the route table on GNB+CN PC:

GNB+CN$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.10.10.1      0.0.0.0         UG    20100  0        0 eno2
10.10.10.0      0.0.0.0         255.255.255.0   U     100    0        0 eno2
10.45.0.0       0.0.0.0         255.255.0.0     U     0      0        0 ogstun
10.45.0.0       0.0.0.0         255.255.0.0     U     0      0        0 ogstun
10.45.0.8       0.0.0.0         255.255.255.255 UH    0      0        0 ogstun
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eno2
172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 docker0

RESULTS UE fails to ping the CN CN fails to ping UE

Lab1R531 avatar Mar 27 '25 14:03 Lab1R531