aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
758 stars 316 forks source link

nr-binder not binding to uesimtun0 interface #340

Open JustinnT opened 3 years ago

JustinnT commented 3 years ago

Hi Ali/Everyone

Thank you for developing UERANSIM.

I followed this tutorial and set up free5GC + UERANSIM.

I can manually utilize the interface by typing ping -I uesimtun0 google.com and sudo curl --interface uesimtun0 google.com

image

image

But when I use the ./nr-binder tool for example: ./nr-binder 60.60.0.1 curl google.com, it uses another interface as seen below.
image

Is this problem due to an error in my setup? Thank you !

aligungr commented 3 years ago

Hi @JustinnT

nr-binder may not work if you use UERANSIM and free5gc in the same machine.

If they are already in separate machines, we should further investigate the problem.

Please first check whether or not this is the case.

Regards

JustinnT commented 3 years ago

Hi aligungr,

Thanks for the quick reply. I have fixed the issue.

In my previous setup, the UERANSIM vm was cloned from free5gc. I imported a fresh vm for UERANSIM and updated cmake to 3.20.3 (I realised in the previous setup it was 3.10.3, and wiki required 3.17+). After doing the above I ran the nr-binder located in ~/UERANSIM/build and the correct interface is being used.

I also noticed that there are 2 nr-binders, one in ~/UERANSIM/build and the other in ~/UERANSIM/tools. The one in the /tools folder seems to use the wrong interface. Is there any difference in these 2 nr-binders?

aligungr commented 3 years ago

@JustinnT

You are right, it may be confusing. nr-binder in tools folder must not be used. It's automatically copied to build folder and nr-binder in builder folder should be used instead.

noormohammedli commented 3 years ago

Hello @aligungr @JustinnT,

I have the same issue, I followed the tutorial as well, My free5GC on VM1 and UERANSIM on VM2. nr-binder not binding to uesimtun0 interface

Could you please help me? Thanks

crashooo commented 1 year ago

Hi, @noormohammedli , I had the same problem as you, UERANSIM(v3.2.6) and free5GC are deployed on 2 VMs. ping -I uesimtun0 google.com uses interface uesimtun0 correctly, but ./nr-binder 10.60.0.1 ping google.com uses ens33 interface. 10.60.0.1 is the UE IP address. [2022-11-16 10:31:54.752] [app] [info] Connection setup for PDU session[1] is successful, TUN interface[uesimtun0, 10.60.0.1] is up.