Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
OpenXG
OpenXG-UPF
Commits
1a83ad95
Commit
1a83ad95
authored
Mar 18, 2021
by
吴洲洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add README.md
parent
f922788c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
0 deletions
+83
-0
README.md
README.md
+83
-0
No files found.
README.md
0 → 100644
View file @
1a83ad95
# UPF 0.5 使用指南
## 克隆代码
```
git clone http://git.opensource5g.org/witxg/witxg-upf.git -b v1.0
```
## 编译安装UPF
配置golang编译环境,下载golang 1.15.7的安装包,解压至 /root目录下,将解压出来的go文件夹复制到 /usr/local目录下。
使用root账户配置golang的环境变量
```
cd /root
mkdir workspace
vi ~/.bashrc
将一下内容复制到 ~/.bashrc 文件中:
export GOROOT="/usr/local/go"
export GOBIN=$GOROOT/bin
export GOPATH="/root/workspace"
export PATH=:$PATH:$GOBIN
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
复制完成之后
执行 source ~/.bashrc 命令
执行 go env 看一下 golang的环境是否正常
```
编译VPP
```
cd witxg-upf/scripts
./build_upf.sh --pre_install
./build_upf.sh --vpp
```
编译N4
```
cd witxg-upf/scripts
./build_upf.sh --n4
```
修改配置文件
```
vpp:
system:
gtpu_entry_ip: UPF-N3 IP
gtpu_export_ip: UPF-N6 IP
ip_link:
ueip: UE的IP地址池
ueIPPrefix: UP IP的子网掩码
snatInter: 上网口网卡名
snatIP: 上网口IP
vppHost: vpphost网卡名
vppHostIP: vpphostIP
gtpu_entry: UPF-N3 网卡名
gtpu_export: UPF-N6 网卡名
cpu: CPU掩码
n4:
smf: SMF-N4 网卡IP
upf: UPF-N4 网卡IP
logSize: 100
```
运行UPF
```
cd witxg-upf/scripts
./run_upf.sh -o ../etc/upf.yaml
```
关闭UPF
```
cd witxg-upf/scripts
./run_upf.sh --close
```
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