UERANSIM icon indicating copy to clipboard operation
UERANSIM copied to clipboard

can not ping ogstun IP form uesimtun0

Open moradiarash opened this issue 1 year ago • 2 comments

Hello, i have the similar problem, i can not ping ogstun IP(10.45.0.1) form uesimtun0. can someone guide me please ?

image

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 fe80::1824:52b4:e14a:e5b0 prefixlen 64 scopeid 0x20 inet6 2001:db8:cafe::1 prefixlen 48 scopeid 0x0 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 126 bytes 10584 (10.5 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 60 bytes 4036 (4.0 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

uesimtun0: flags=369<UP,POINTOPOINT,NOTRAILERS,RUNNING,PROMISC> mtu 1400 inet 10.45.0.2 netmask 255.255.255.255 destination 10.45.0.4 inet6 fe80::1b05:9874:1bf:acd4 prefixlen 64 scopeid 0x20 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 4 bytes 336 (336.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 464 (464.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Thank you

moradiarash avatar Sep 29 '23 10:09 moradiarash

Hi, I met the same problem, image image Here are the logs of the ue and gnb image This is the log for upf From the log, it seems everything is connected, but I has the same problem here. I guess it mainly because I applied the open5gs and ueransim in the same machine, so I will change to use two machines. But I am open to the other solutions :)

MMMMMMorty avatar Apr 11 '24 08:04 MMMMMMorty

@MMMMMMorty If you run core network sim and ueransim on the same machine, it is impossible to route the packets to your data network. I'd say you need to implement it on two different machines or VMs and check the guide at https://open5gs.org/open5gs/docs/guide/01-quickstart/ specifically the "Adding a route for the UE to have WAN connectivity"

priyanshs avatar Apr 11 '24 10:04 priyanshs