Orange-OpenSource / towards5gs-helm

Helm charts for deploying 5G network services on Kubernetes
Other
166 stars 130 forks source link

Amf pod not using eth0 IP #30

Closed nitinrajput1997 closed 1 year ago

nitinrajput1997 commented 2 years ago

I have followed this article to deploy free5gc https://medium.com/rahasak/deploying-5g-core-network-with-free5gc-kubernets-and-helm-charts-29741cea3922 .But in amf pod logs , i can see it assigns different ip , but I want it should assign same ip as eth0 of that virtual machine. How can I do that ?

raoufkh commented 2 years ago

Hello

Can you give more details on your architecture? The AMF SBI will be listening on the eth0 interface of AMF Pod but not the one of VM.

nitinrajput1997 commented 2 years ago

Hi @raoufkh , suppose I have created on vm with two interface say eth0 and eth1 and have IP's as 192.168.8.94 and 192.168.8.95 respectively. After installing all prerequisite , now we deploy free5gc using "helm -n free5gc install free5gc-v1 towards5gs/free5gc" . When i see the logs of pod amf,upf,smf etc , it shows it assigns ngap_server as unknown IP (say 10.244.120.92/32). Although upf pod remains in contarinerCreating status . But when I tried to change ngap from 10.244.120.92/32 to 192.168.8.94 (eth0) , the amf pods stuck in init status.

Now on another server where UERANSIM is installed , we have to update the config with amf ip address , where i have pasted random ip generated by amf during pod creation as mentioned above i.e 10.244.120.92 with port 38412. After that running gNodeB it stucks with message "establishing connection with 10.244.120.92:38412".

But I want the free5gc should use server ip eth0 and not there own generated one. So that ,it was better for us to understand flow and establish connection between gNodeb also.

where should i do the changes ,so that i can get ngap_server ip as server/vm ip without making amf pod into init state.

raoufkh commented 2 years ago

Hello @nitinrajput1997

Have you modified any values.yaml file?

The default behavior should be:

Bests Raouf

nitinrajput1997 commented 2 years ago

hi @raoufkh , yes I have modified values.yaml . In values.yaml , I have updated ngap ip with my server ip. Is there any document which I can follow to deploy ?

raoufkh commented 2 years ago

AMF NGAP server cannot bind to the node IP (your server IP). It must bind to an interface which is present on the AMF Pod.

nitinrajput1997 commented 2 years ago

Hi @raoufkh , it's better you pls share some document or blog through which we can deploy free5gc helm charts easily

Thanks

nitinrajput1997 commented 1 year ago

Hi @raoufkh , I have two interface and have install all pre-requisites. After that I'm getting this error of UPF again and again Screenshot from 2022-09-10 22-48-51

raoufkh commented 1 year ago

This may occur if the N6 network subnet IP doen't correspond to the subnet of the underyling network interface. In addition, you must provide a real gatewat IP¨

Raouf

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.