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
4ab49901
Commit
4ab49901
authored
Dec 22, 2020
by
吴洲洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete script_bak
parent
082d98e1
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
904 deletions
+0
-904
scripts_bak/.upf_config.sh.swp
scripts_bak/.upf_config.sh.swp
+0
-0
scripts_bak/arp_config.sh
scripts_bak/arp_config.sh
+0
-21
scripts_bak/nat_config.sh
scripts_bak/nat_config.sh
+0
-45
scripts_bak/readme.txt
scripts_bak/readme.txt
+0
-0
scripts_bak/run_upf.sh
scripts_bak/run_upf.sh
+0
-0
scripts_bak/start_5g.sh
scripts_bak/start_5g.sh
+0
-837
scripts_bak/upf_config.sh
scripts_bak/upf_config.sh
+0
-1
scripts_bak/yq
scripts_bak/yq
+0
-0
No files found.
scripts_bak/.upf_config.sh.swp
deleted
100644 → 0
View file @
082d98e1
File deleted
scripts_bak/arp_config.sh
deleted
100644 → 0
View file @
082d98e1
#!/bin/bash
base
=
$(
cd
$(
dirname
$0
)
;
pwd
)
UEIP
=
192.169.0.0
PREFIX
=
24
INTER
=
enp5s0f1
MAC
=
VPPEXPORT
=
192.168.30.10
echo
"
$base
"
echo
"
$UEIP
"
echo
"
$PREFIX
"
echo
"
$INTER
"
echo
"
$MAC
"
#./setuniarp vppout de:dd:91:00:f6:42 192.169.0.0/24
echo
"
$base
"
/setuniarp
$INTER
$MAC
"
$UEIP
/
$PREFIX
"
"
$base
"
/setuniarp
$INTER
$MAC
"
$UEIP
/
$PREFIX
"
$VPPEXPORT
scripts_bak/nat_config.sh
deleted
100644 → 0
View file @
082d98e1
#!/bin/bash
UE_IP
=
192.169.0.0
UE_IP_PREFIX
=
24
SNAT_INTER
=
enp67s0f0
SNAT_IP
=
192.168.2.129
VPPHOST
=
enp5s0f1
DPDK_EXPORT
=
enp3s0f0
DPDK_ENTRY
=
enp3s0f1
echo
"
$UE_IP
"
echo
"
$UE_IP_PREFIX
"
echo
"
$SNAT_INTER
"
echo
"
$SNAT_IP
"
echo
"
$VPPHOST
"
echo
"
$DPDK_EXPORT
"
echo
"
$DPDK_ENTRY
"
echo
start_ip_link
`
date
`
>>
/opt/5gc/upf/ip_link.log
sudo
ifconfig
$DPDK_EXPORT
down
sudo
ifconfig
$DPDK_ENTRY
down
#vpphost
#sudo ifconfig $VPPHOST 192.168.30.11 up;
#sudo ifconfig $VPPHOST mtu 1400 up;
#sudo route add -net "$UE_IP/$UE_IP_PREFIX" dev $VPPHOST
#sudo route add -net "$UE_IP/$UE_IP_PREFIX" gateway 192.168.30.10
#nat interface
#sudo ifconfig "$SNAT_INTER" mtu 1400 up;
sudo
ethtool
-K
"
$SNAT_INTER
"
gro off
;
sudo
ethtool
-K
"
$SNAT_INTER
"
tso off
;
sudo
ethtool
-K
"
$SNAT_INTER
"
sg off
;
#del
sudo
iptables
-t
nat
-D
POSTROUTING
-s
"
$UE_IP
/
$UE_IP_PREFIX
"
-j
SNAT
--to-source
"
$SNAT_IP
"
iptables
-t
mangle
-D
POSTROUTING
-p
tcp
--tcp-flags
SYN,RST SYN
-o
"
$SNAT_INTER
"
-j
TCPMSS
--set-mss
1300
#add
sudo
iptables
-t
nat
-A
POSTROUTING
-s
"
$UE_IP
/
$UE_IP_PREFIX
"
-j
SNAT
--to-source
"
$SNAT_IP
"
iptables
-t
mangle
-A
POSTROUTING
-p
tcp
--tcp-flags
SYN,RST SYN
-o
"
$SNAT_INTER
"
-j
TCPMSS
--set-mss
1300
#system
echo
"1"
>
/proc/sys/net/ipv4/ip_forward
echo
end_ip_link
`
date
`
>>
/opt/5gc/upf/ip_link.log
scripts_bak/readme.txt
deleted
100644 → 0
View file @
082d98e1
scripts_bak/run_upf.sh
deleted
100644 → 0
View file @
082d98e1
scripts_bak/start_5g.sh
deleted
100755 → 0
View file @
082d98e1
This diff is collapsed.
Click to expand it.
scripts_bak/upf_config.sh
deleted
100644 → 0
View file @
082d98e1
这个文件调用 arp_config、nat_config等脚本,实现统一的upf配置。
\ No newline at end of file
scripts_bak/yq
deleted
100755 → 0
View file @
082d98e1
File deleted
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