open5gs / open5gs

Open5GS is a C-language Open Source implementation for 5G Core and EPC, i.e. the core network of LTE/NR network (Release-17)
https://open5gs.org
GNU Affero General Public License v3.0
1.84k stars 761 forks source link

Runnig LTE in two pc #1721

Open Hassan199428 opened 2 years ago

Hassan199428 commented 2 years ago

Hi,

I want to run open5gs as CORE on PC1 and oai-eNB or srsRAN-eNB as RAN on PC2. For this purpose, I made the following changes based on "https://open5gs.org/open5gs/docs/guide/01-quickstart/"

in mme.yaml:

mme: freeDiameter: /etc/freeDiameter/mme.conf s1ap:


in sgwu.yaml:

sgwu: pfcp:


After changing the config, I used : sudo systemctl restart open5gs-mmed sudo systemctl restart open5gs-sgwud

but many errors occur, as below: (this is my mme.log output in PC1)

08/29 02:10:52.504: [app] INFO: Configuration: '/etc/open5gs/mme.yaml' (../lib/app/ogs-init.c:126) 08/29 02:10:52.504: [app] INFO: File Logging: '/var/log/open5gs/mme.log' (../lib/app/ogs-init.c:129) 08/29 02:10:52.554: [gtp] INFO: gtp_server() [127.0.0.2]:2123 (../lib/gtp/path.c:31) 08/29 02:10:52.554: [gtp] INFO: gtp_connect() [127.0.0.3]:2123 (../lib/gtp/path.c:61) 08/29 02:10:52.554: [sock] ERROR: socket bind(2) [192.168.61.73]:36412 failed (99:Cannot assign requested address) (../lib/core/ogs-socket.c:111) 08/29 02:10:52.554: [sock] ERROR: sctp_server() [192.168.61.73]:36412 failed (99:Cannot assign requested address) (../lib/sctp/ogs-lksctp.c:114) 08/29 02:10:52.554: [sctp] ERROR: Failed to intialize MME (../src/mme/app-init.c:30) 08/29 02:10:52.554: [app] FATAL: Open5GS initialization failed. Aborted (../src/main.c:219)


What is the problem? My static IP in PC1: enp0s3, inet 192.168.61.72

(When i use the default config (all IP in loopback mode) on one PC (core and RAN all in one pc) I have no problem, but in my case, i should run on two computers)

Best regards, Hassan

EugeneBogush commented 2 years ago

enp0s3, inet 192.168.61.72

use this address for s1ap & sgwu