I was using UERANSIM to connect to the Free5GC and it can successfully ping “google.com”, everything is right. But once I modify the code of 5GC, I add a print code with Golang in AMF, SMF, or other NFs, and type the command “make” to re-build Free5GC again. And then I use UERANSIM again to connect the Free5GC. My UE can no longer ping google via 5GC. Are some procedures wrong or has the Free5GC can’t modify the open-source code?
Or if there are correct ways or procedures to re-build the Free5GC after adding some code in the NFs, please give some advice.
Your procedures seem ok, and are feasible for me.
Is there any error msg after you rebuild free5GC? Maybe you can provide what you have modified in free5GC or some console log.
Yeah, that is the problem. I add fmt.println("some text") in any NF code. Then rebuild free5gc and use UERANSIM to ping google. there isn’t any ack until its timeout. Also, there aren’t any error messages in my log. So, I can’t find out what’s the problem.
Could you still ping google.com after modifying the code in any NF code? I am wondering about your make procedure.
Wow, that’s weird, haha. After you use UERANSIM, are you still can ping google.com?
Or maybe my environment is wrong? I am using ubuntu 20.04 and the kernel is 5.8. May I ask how is your environment or do you just follow the official guide? Thanks for your help.
NOTE:Both Free5GC and UERANSIM are run in the virtual box.
I also try the latest version of Free5GC, but it can’t ping “google.com” before I modify the code. So, that’s weird for me, too. Maybe my architecture is wrong or something I missed. I follow the official guide with this link step by step. Should I have to change the kernel and Ubuntu version to as same as yours?
Thanks for your information.
God, man… I think I have to change the environment like yours. I will try it. I am sure that my UE successfully get the PDU session. BTW, do I need to re-build gtp5g every time after I modify the code? Thanks for your help.