Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openxg-5gcs-release
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhaoJingguo
openxg-5gcs-release
Commits
6890f00b
Commit
6890f00b
authored
Oct 26, 2023
by
yangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AMF+SMF+SPGW = openxg-5gc
parent
2159301c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
67 deletions
+23
-67
docker-compose/docker-compose-5gc.yml
docker-compose/docker-compose-5gc.yml
+7
-51
etc/amf.conf
etc/amf.conf
+3
-4
etc/smf.conf
etc/smf.conf
+6
-6
etc/spgw_u.conf
etc/spgw_u.conf
+3
-3
readme.md
readme.md
+4
-3
No files found.
docker-compose/docker-compose-5gc.yml
View file @
6890f00b
version
:
'
3.3'
services
:
openxg-
amf
:
openxg-
5gc
:
image
:
openxg5gc/openxg-5gc:v1.5.0
container_name
:
amf
container_name
:
openxg-5gc
restart
:
always
privileged
:
true
logging
:
driver
:
"
json-file"
options
:
...
...
@@ -15,59 +16,14 @@ services:
# - "38412:38412/sctp"
stdin_open
:
true
tty
:
true
command
:
/opt/5gcs/
amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gcs/amf/libs/ /opt/5gcs/amf/amf -c /opt/5gcs/amf/amf.conf -o
command
:
/opt/5gcs/
scripts/run_5gc.sh start
volumes
:
-
/etc/timezone:/etc/timezone
-
/etc/localtime:/etc/localtime
-
../scripts/run_5gc.sh:/opt/5gcs/scripts/run_5gc.sh
-
../etc/amf.conf:/opt/5gcs/amf/amf.conf
openxg-smf
:
image
:
openxg5gc/openxg-5gc:v1.5.0
container_name
:
smf
restart
:
always
logging
:
driver
:
"
json-file"
options
:
max-size
:
"
100m"
networks
:
openxg
:
ipv4_address
:
172.11.200.15
stdin_open
:
true
tty
:
true
command
:
/opt/5gcs/smf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gcs/smf/libs/ /opt/5gcs/smf/smf -c /opt/5gcs/smf/smf.conf -o
volumes
:
-
/etc/timezone:/etc/timezone
-
/etc/localtime:/etc/localtime
-
../etc/smf.conf:/opt/5gcs/smf/smf.conf
openxg-spgwu
:
image
:
openxg5gc/openxg-5gc:v1.5.0
container_name
:
spgwu
depends_on
:
-
openxg-smf
restart
:
always
cap_add
:
-
NET_ADMIN
-
SYS_ADMIN
cap_drop
:
-
ALL
privileged
:
true
logging
:
driver
:
"
json-file"
options
:
max-size
:
"
100m"
networks
:
openxg
:
ipv4_address
:
172.11.200.25
stdin_open
:
true
tty
:
true
command
:
/opt/5gcs/spgw_u/libs/ld-linux-x86-64.so.2 --library-path /opt/5gcs/spgw_u/libs/ /opt/5gcs/spgw_u/spgwu -c /opt/5gcs/spgw_u/spgw_u.conf -o
volumes
:
-
/etc/timezone:/etc/timezone
-
/etc/localtime:/etc/localtime
-
../etc/spgw_u.conf:/opt/5gcs/spgw_u/spgw_u.conf
networks
:
openxg
:
name
:
docker-openxg
external
:
true
name
:
docker-openxg
external
:
true
etc/amf.conf
View file @
6890f00b
...
...
@@ -69,15 +69,14 @@ AMF =
# AMF binded interface for SBI (N11 (SMF)/N12 (AUSF), etc.)
SBI
:
{
INTERFACE_NAME
=
"
eth0
"
;
IPV4_ADDRESS
=
"
read
"
;
INTERFACE_NAME
=
"
lo
"
;
IPV4_ADDRESS
=
"
127.0.0.5/24
"
;
PORT
=
8004
;
API_VERSION
=
"v1"
;
HTTP2_PORT
=
8404
;
SMF_INSTANCES_POOL
= (
{
SMF_INSTANCE_ID
=
5
;
IPV4_ADDRESS
=
"172.11.200.15"
;
PORT
=
"8005"
;
HTTP2_PORT
=
8405
,
VERSION
=
"v1"
;
FQDN
=
"smf"
,
SELECTED
=
"true"
},
{
SMF_INSTANCE_ID
=
10
;
IPV4_ADDRESS
=
"192.168.199.253"
;
PORT
=
"8055"
;
HTTP2_PORT
=
8455
,
VERSION
=
"v1"
;
FQDN
=
"smf"
,
SELECTED
=
"false"
}
{
SMF_INSTANCE_ID
=
5
;
IPV4_ADDRESS
=
"127.0.0.6"
;
PORT
=
"8005"
;
HTTP2_PORT
=
8405
,
VERSION
=
"v1"
;
FQDN
=
"smf"
,
SELECTED
=
"true"
}
);
};
...
...
etc/smf.conf
View file @
6890f00b
...
...
@@ -30,15 +30,15 @@ SMF =
N4
:
{
# SMF binded interface for N4 communication (UPF)
INTERFACE_NAME
=
"
eth0
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"
read
"
;
INTERFACE_NAME
=
"
lo
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"
127.0.0.100/24
"
;
};
SBI
:
{
# SMF binded interface for SBI interface (e.g., communication with AMF, UDM)
INTERFACE_NAME
=
"
eth0
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"
read
"
;
INTERFACE_NAME
=
"
lo
"
;
# YOUR NETWORK CONFIG HERE
IPV4_ADDRESS
=
"
127.0.0.6/24
"
;
PORT
=
8005
;
# YOUR NETWORK CONFIG HERE (default: 80)
HTTP2_PORT
=
8405
;
# YOUR NETWORK CONFIG HERE
API_VERSION
=
"v1"
;
# YOUR SMF API VERSION CONFIG HERE
...
...
@@ -90,7 +90,7 @@ SMF =
AMF
:
{
IPV4_ADDRESS
=
"1
72.11.200.14
"
;
# YOUR AMF CONFIG HERE
IPV4_ADDRESS
=
"1
27.0.0.5
"
;
# YOUR AMF CONFIG HERE
PORT
=
8004
;
# YOUR AMF CONFIG HERE (default: 80)
API_VERSION
=
"v1"
;
# YOUR AMF API VERSION FOR SBI CONFIG HERE
# FQDN = "@AMF_FQDN@" # YOUR AMF FQDN CONFIG HERE
...
...
@@ -121,7 +121,7 @@ SMF =
UPF_LIST
= (
{
IPV4_ADDRESS
=
"127.0.0.1"
;
IPV4_ADDRESS
=
"127.0.0.1
01
"
;
# FQDN = "localhost";
# NWI_LIST = ({DOMAIN_ACCESS = "@DOMAIN_ACCESS@", DOMAIN_CORE = "@DOMAIN_CORE@"})
}
# YOUR UPF CONFIG HERE
...
...
etc/spgw_u.conf
View file @
6890f00b
...
...
@@ -71,8 +71,8 @@ SPGW-U =
SX
:
{
# S/P-GW binded interface for SX communication
INTERFACE_NAME
=
"
eth0
"
;
# STRING, interface name
IPV4_ADDRESS
=
"
read
"
;
# STRING, CIDR or "read" to let app read interface configured IP address
INTERFACE_NAME
=
"
lo
"
;
# STRING, interface name
IPV4_ADDRESS
=
"
127.0.0.101/24
"
;
# STRING, CIDR or "read" to let app read interface configured IP address
#PORT = 8805; # Default is 8805
SCHED_PARAMS
:
{
...
...
@@ -109,7 +109,7 @@ SPGW-U =
);
SPGW
-
C_LIST
= (
{
IPV4_ADDRESS
=
"1
72.11.200.15
"
;}
{
IPV4_ADDRESS
=
"1
27.0.0.100
"
;}
);
NON_STANDART_FEATURES
:
...
...
readme.md
View file @
6890f00b
...
...
@@ -77,8 +77,9 @@ docker-compose -f docker-compose-mysql.yml down -t 0 #关闭数据库
```
shell
cd
openxg-5gcs-release/docker-compose
docker logs
-f
amf
#查看amf日志
docker logs
-f
smf
#查看smf日志
docker logs
-f
spgwu
#查看spgwu日志
docker logs
-f
openxg-5gc
#查看核心网状态日志
docker
exec
-it
openxg-5gc
tail
-f
/opt/5gcs/log/amf.log
#查看amf日志
docker
exec
-it
openxg-5gc
tail
-f
/opt/5gcs/log/smf.log
#查看smf日志
docker
exec
-it
openxg-5gc
tail
-f
/opt/5gcs/log/upf.log
#查看spgwu日志
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment