I modify the ip address and replace them with my private range
AMF WORD:
10.200.200.1 --> 10.0.200.1
SMF WORD:
pfcp : 10.200.200.1 --> 10.0.200.1
BranchingUPF:
type: UPF
node_id: 10.200.200.102 --> 10.0.200.102
AnchorUPF1:
type: UPF
node_id: 10.200.200.101 --> 10.0.200.101
AnchorUPF2:
type: UPF
node_id: 10.200.200.103 --> 10.0.200.103
n3iwfcf WORD:
AMFAddress:
- IP: 10.200.200.1 --> 10.0.200.1
GTPBindAddress:
10.200.200.2 --> 10.0.200.2
UPF WORD :
pfcp:
- addr: 10.200.200.101 --> 10.0.200.101
gtpu:
- addr: 10.200.200.102 --> 10.0.200.102
when I try to run AMF and other function :
INFO[2020-06-03T14:34:34Z]/src/amf/amf.go:25 main.main() amf AMF=app
INFO[2020-06-03T14:34:34Z]/src/amf/amf.go:26 main.main() AMF version: 2020-03-31-01 AMF=app
CommonConfig file: config/free5GC.conf
INFO[2020-06-03T14:34:34Z]/lib/nas/logger/logger.go:45 free5gc/lib/nas/logger.SetLogLevel() set log level : info NAS=message
INFO[2020-06-03T14:34:34Z]/lib/nas/logger/logger.go:50 free5gc/lib/nas/logger.SetReportCaller() set report call : true NAS=message
INFO[2020-06-03T14:34:34Z]/lib/fsm/logger/logger.go:43 free5gc/lib/fsm/logger.SetLogLevel() set log level : info fsm=fsm
INFO[2020-06-03T14:34:34Z]/lib/fsm/logger/logger.go:48 free5gc/lib/fsm/logger.SetReportCaller() set report call : true fsm=fsm
INFO[2020-06-03T14:34:34Z]/lib/ngap/logger/logger.go:43 free5gc/lib/ngap/logger.SetLogLevel() set log level : info NGAP=NGAP
INFO[2020-06-03T14:34:34Z]/lib/ngap/logger/logger.go:48 free5gc/lib/ngap/logger.SetReportCaller() set report call : true NGAP=NGAP
INFO[2020-06-03T14:34:34Z]/lib/Namf_Communication/logger/logger.go:43 free5gc/lib/Namf_Communication/logger.SetLogLevel() set log level : info Namf=Comm
INFO[2020-06-03T14:34:34Z]/lib/Namf_Communication/logger/logger.go:48 free5gc/lib/Namf_Communication/logger.SetReportCaller() set report call : true Namf=Comm
INFO[2020-06-03T14:34:34Z]/lib/Namf_EventExposure/logger/logger.go:43 free5gc/lib/Namf_EventExposure/logger.SetLogLevel() set log level : info Namf=Event
INFO[2020-06-03T14:34:34Z]/lib/Namf_EventExposure/logger/logger.go:48 free5gc/lib/Namf_EventExposure/logger.SetReportCaller() set report call : true Namf=Event
.
.
AMF register to NRF Error[Put https://localhost:29510/nnrf-nfm/v1/nf-instances/c96a8d7f-9d37-458a-8577-ee4ec0be757b: dial tcp 127.0.0.1:29510: connect: connection refused]
AMF register to NRF Error[Put https://localhost:29510/nnrf-nfm/v1/nf-instances/c96a8d7f-9d37-458a-8577-ee4ec0be757b: dial tcp 127.0.0.1:29510: connect: connection refused]
When I try to test TestRegistration it show me this :
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:35 UpfInit() Config: /root/go/src/free5gc/src/upf/build/config/upfcfg.test.yaml UPF=Util
INFO[2020-06-03T14:32:51Z] Set log level: info UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_socket.c:142 SockBind() Socket bind fail : Cannot assign requested address UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_epoll.c:30 EpollRegisterEvent() Socket -1 register event in epoll error : Bad file descriptor UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/gtpv1/src/gtp_path.c:148 GtpDevListCreate() GTPv1 tunnel register to epoll fail : IP[10.0.200.102] UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/up/up_path.c:74 GTPv1ServerInit() GtpLinkListCreate Fail UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf.c:32 main() UPF failed to initialize UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:85 UpfTerminate() Terminating UPF… UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/up/up_path.c:233 BufferServerTerminate() epoll deregister error UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:88 UpfTerminate() Buffer Sock resource free failed UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/up/up_path.c:52 UpRouteTerminate() Removing APN routes UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/knet/src/route.c:188 AddKnetDelRoute() mnl_cb_run, run as root? UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:91 UpfTerminate() GTP routes removal failed UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/pfcp/src/pfcp_xact.c:53 PfcpXactTerminate() PFCP Xact already finalized UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:94 UpfTerminate() PFCP Transaction terminate failed UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_epoll.c:58 EpollDeregisterEvent() Socket -1 delete event in epoll error : Bad file descriptor UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/gtpv1/src/gtp_path.c:162 GtpDevListFree() GTPv1 tunnel deregister to epoll fail : IP[10.0.200.102] UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_socket.c:65 SockFree() Pool is full, it may not belong to this pool UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:225 PacketReceiverThread() Packet receiver thread terminated UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:119 UpfTerminate() UPF failed to terminate UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf.c:40 main() UPF terminate error UPF=Util
Cannot find device “upfgtp0”
.
.
.
ERRO[2020-06-03T19:17:42Z]/root/go/src/free5gc/src/smf/smf_pfcp/pfcp_udp/smf_pfcp_udp.go:34 free5gc/src/smf/smf_pfcp/pfcp_udp.Run() Failed to listen: listen udp 10.0.200.1:8805: bind: cannot assign requested address SMF=pfcp
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x10eee3e]
goroutine 39 [running]:
net.(*conn).ok(…)
/usr/local/go/src/net/net.go:168
net.(*conn).LocalAddr(…)
/usr/local/go/src/net/net.go:212
free5gc/src/smf/smf_pfcp/pfcp_udp.Run()
/root/go/src/free5gc/src/smf/smf_pfcp/pfcp_udp/smf_pfcp_udp.go:36 +0xfe
free5gc/src/smf/smf_service.(*SMF).Start(0x282e620)
/root/go/src/free5gc/src/smf/smf_service/smf_init.go:143 +0x163
created by free5gc/src/test_test.init.0
/root/go/src/free5gc/src/test/ngsetup_test.go:66 +0x22b
exit status 2
FAIL free5gc/src/test 13.673s
free5gc-upfd: no process found
root@free5g:~/go/src/free5gc# ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.172.103 icmp_seq=1 Destination Host Unreachable
From 10.0.172.103 icmp_seq=2 Destination Host Unreachable
From 10.0.172.103 icmp_seq=3 Destination Host Unreachable
From 10.0.172.103 icmp_seq=4 Destination Host Unreachable
the ping to network function IP address also show Destination Host Unreachable
ANY SOLUTION FOR THIS PROBLEM PLEASE ?
THANK YOU FOR YOUR SUPPORT