Open5gs: Konfigurasi Awal

From OnnoWiki
Revision as of 10:14, 22 July 2023 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Sumber: https://open5gs.org/open5gs/docs/guide/02-building-open5gs-from-sources/


5G Core

Modifikasi /etc/open5gs/amf.yaml untuk set NGAP IP address, PLMN ID, TAC dan NSSAI.

cp /usr/local/src/open5gs/install/etc/open5gs/amf.yaml /usr/local/src/open5gs/install/etc/open5gs/amf.yaml.old
vi /usr/local/src/open5gs/install/etc/open5gs/amf.yaml

Pastikan

$ diff -u /etc/open5gs/amf.yaml.old /etc/open5gs/amf.yaml --- amf.yaml 2020-09-05 20:52:28.652234967 -0400 +++ amf.yaml.new 2020-09-05 20:55:07.453114885 -0400 @@ -293,26 +293,26 @@ amf:

      - addr: 127.0.0.5
        port: 7777
    ngap:

- - addr: 127.0.0.5 + - addr: 10.10.0.5

    metrics:
        addr: 127.0.0.5
        port: 9090
    guami:
      - plmn_id:

- mcc: 999 - mnc: 70 + mcc: 001 + mnc: 01

        amf_id:
          region: 2
          set: 1
    tai:
      - plmn_id:

- mcc: 999 - mnc: 70 + mcc: 001 + mnc: 01

        tac: 1
    plmn_support:
      - plmn_id:

- mcc: 999 - mnc: 70 + mcc: 001 + mnc: 01

        s_nssai:
          - sst: 1
    security:

Modify install/etc/open5gs/upf.yaml to set the GTP-U and PFCP IP address.

$ diff -u /etc/open5gs/upf.yaml.old /etc/open5gs/upf.yaml --- upf.yaml 2020-09-05 20:52:28.652234967 -0400 +++ upf.yaml.new 2020-09-05 20:52:55.279052142 -0400 @@ -168,7 +168,7 @@ upf:

    pfcp:
      - addr: 127.0.0.7
    gtpu:

- - addr: 127.0.0.7 + - addr: 10.11.0.7

    subnet:
      - addr: 10.45.0.1/16
      - addr: 2001:db8:cafe::1/48


4G EPC Modify install/etc/open5gs/mme.yaml to set the S1AP IP address, PLMN ID, and TAC.

$ diff -u /etc/open5gs/mme.yaml.old /etc/open5gs/mme.yaml --- mme.yaml 2020-09-05 20:52:28.648235143 -0400 +++ mme.yaml.new 2020-09-05 20:56:05.434484208 -0400 @@ -253,20 +253,20 @@ mme:

    s1ap:

- - addr: 127.0.0.2 + - addr: 10.10.0.2

    gtpc:
      - addr: 127.0.0.2
    metrics:
      addr: 127.0.0.2
      port: 9090
    gummei:
      plmn_id:

- mcc: 999 - mnc: 70 + mcc: 001 + mnc: 01

      mme_gid: 2
      mme_code: 1
    tai:
      plmn_id:

- mcc: 999 - mnc: 70 + mcc: 001 + mnc: 01

      tac: 1
    security:
        integrity_order : [ EIA2, EIA1, EIA0 ]

Modify install/etc/open5gs/sgwu.yaml to set the GTP-U IP address.

$ diff --git a/configs/open5gs/sgwu.yaml.in b/configs/open5gs/sgwu.yaml.in index 8ccf94378..25b6884a3 100644 --- a/configs/open5gs/sgwu.yaml.in +++ b/configs/open5gs/sgwu.yaml.in @@ -100,7 +100,7 @@ sgwu:

    pfcp:
      - addr: 127.0.0.6
    gtpu:

- - addr: 127.0.0.6 + - addr: 10.11.0.6

#
# sgwc:

If you modify the config files while Open5GS daemons are running, please restart them




Referensi