Commit e3aa2e6c authored by chen2022's avatar chen2022

配置修改

parent bd6bad69
...@@ -138,6 +138,15 @@ function main() ...@@ -138,6 +138,15 @@ function main()
else else
make make
fi fi
if [ ! -d /etc/5gc/config ]; then
$SUDO mkdir -p /etc/5gc/config
fi
$SUDO cp -v $OPENXGUDM_DIR/etc/udm.conf /etc/5gc/config/
$SUDO cp -v $OPENXGUDM_DIR/etc/udm_docker.conf /etc/5gc/config/
$SUDO chmod 755 $OPENXGUDM_DIR/build/UDM/udm $SUDO chmod 755 $OPENXGUDM_DIR/build/UDM/udm
$SUDO cp -upv $OPENXGUDM_DIR/build/UDM/udm $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/udm && echo_success "UDM installed" $SUDO cp -upv $OPENXGUDM_DIR/build/UDM/udm $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/udm && echo_success "UDM installed"
return 0 return 0
......
...@@ -8,14 +8,14 @@ UDM = ...@@ -8,14 +8,14 @@ UDM =
INTERFACES:{ INTERFACES:{
SBI_UDM:{ SBI_UDM:{
INTERFACE_NAME = "eno1"; #interface for providing udm service INTERFACE_NAME = "ens32"; #interface for providing udm service
IPV4_ADDRESS = "192.168.199.222/24"; #address for intercafe (cidr) IPV4_ADDRESS = "192.168.199.186/24"; #address for intercafe (cidr)
PORT = 8181; #udm service port PORT = 8181; #udm service port
PPID = 60; PPID = 60;
}; };
NUDR:{ NUDR:{
INTERFACE_NAME = "eno1"; #interface for request for udr service INTERFACE_NAME = "ens32"; #interface for request for udr service
IPV4_ADDRESS = "192.168.199.222/24"; #udr address (cidr) IPV4_ADDRESS = "192.168.199.186/24"; #udr address (cidr)
PORT = 8080; #udr port PORT = 8080; #udr port
VERSION = "v2"; VERSION = "v2";
}; };
......
## udm configuration file
UDM =
{
INSTANCE_ID = 10;
PID_DIRECTORY = "/var/run";
UDM_NAME = "bupt-amf";
INTERFACES:{
SBI_UDM:{
INTERFACE_NAME = "@INTERFACE_NAME@"; #interface for providing udm service
IPV4_ADDRESS = "@IPV4_ADDRESS@"; #address for intercafe (cidr)
PORT = @PORT@; #udm service port
PPID = @PPID@;
};
NUDR:{
INTERFACE_NAME = "@INTERFACE_NAME@"; #interface for request for udr service
IPV4_ADDRESS = "@IPV4_ADDRESS@"; #udr address (cidr)
PORT = @PORT@; #udr port
VERSION = "@VERSION@";
};
};
};
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang,Fengjiao He,Hongxin Wang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udm configuration file ## udm configuration file
UDM = UDM =
{ {
INSTANCE_ID = 10; INSTANCE_ID = 10;
PID_DIRECTORY = "/var/run"; PID_DIRECTORY = "/var/run";
UDM_NAME = "bupt-amf"; UDM_NAME = "bupt-udm";
INTERFACES:{ INTERFACES:{
SBI_UDM:{ SBI_UDM:{
...@@ -15,7 +43,7 @@ UDM = ...@@ -15,7 +43,7 @@ UDM =
}; };
NUDR:{ NUDR:{
INTERFACE_NAME = "eth0"; #interface for request for udr service INTERFACE_NAME = "eth0"; #interface for request for udr service
IPV4_ADDRESS = "172.16.200.11/24"; #udr address (cidr) IPV4_ADDRESS = "172.11.200.11/24"; #udr address (cidr)
PORT = 8081; #udr port PORT = 8081; #udr port
VERSION = "v2"; VERSION = "v2";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment