Closed rveerama1 closed 1 year ago
I tried with flannel too. same issue exists.
@raoufkh can you please take a look and help me.
@rveerama1 I think the problem is that you've configured your N6 network details different than your host network:
As per installation instructions: "we'll suppose that you have only one interface on each Kubernetes node and its name is toto. Then you have to set these parameters to toto: global.n2network.masterIf global.n3network.masterIf global.n4network.masterIf global.n6network.masterIf global.n9network.masterIf
In addition, please make sure global.n6network.subnetIP, global.n6network.gatewayIP and free5gc-upf.upf.n6if.ipAddress parameters will match the IP address of the toto interface in order to make the UPF able to reach the Data Network via its N6 interface"
So according to your host networking setup:
2: eno0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether a4:bf:01:6b:f8:f0 brd ff:ff:ff:ff:ff:ff altname enp5s0 inet 10.237.72.160/24 metric 100 brd 10.237.72.255 scope global dynamic eno0 valid_lft 40030sec preferred_lft 40030sec inet6 fe80::a6bf:1ff:fe6b:f8f0/64 scope link valid_lft forever preferred_lft forever
$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.237.72.1 0.0.0.0 UG 100 0 0 eno0
Your config should look like this:
--set global.n4network.masterIf=eno0 \ --set global.n3network.masterIf=eno0 \ --set global.n6network.masterIf=eno0 \ --set global.n6network.subnetIP="10.237.72.0" \ --set global.n6network.gatewayIP="10.237.72.1" \ --set upf.n6if.ipAddress="10.237.72.x" \ >>> pick a free IP within subnet 10.237.72.0/24
Br, Amr
@amrbaraka thanks a lot. that worked. I will close the issue.
I am trying to test the free5gc with UERANSIM.
I have followed steps from https://github.com/Orange-OpenSource/towards5gs-helm/blob/main/docs/demo/Setup-free5gc-and-test-with-UERANSIM.md
I will post detailed steps about my cluster and some extra details (Note: I have single node cluster)
I have ubuntu 22.04, kubeadm and kubectl 1.25.3.
gtp5g module
helm charts
cluster
calico custom resource
multus
kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/deployments/multus-daemonset-thick.yml
upf in data plane name space and rest are in control plane name spacenow free5gc
enable ip_forward in UPF
Edit web ui service change from to nodeport clusterIP
kubectl edit service -n cp webui-service
Port forward
kubectl port-forward -n cp services/webui-service 5000
add the subscriber in webui
install ueransim simulator on a newly created sim namespace.
export POD_NAME=$(kubectl get pods --namespace sim -l "component=ue" -o jsonpath="{.items[0].metadata.name}")
But ping fails through uesimtun0
Details about cluster
Some extra information from UPF
some details from the host system