Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
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
wangjie
OpenXG-RAN
Commits
74c6f248
Commit
74c6f248
authored
Nov 28, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6122
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
36f875e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
70 deletions
+1
-70
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
+1
-70
No files found.
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
View file @
74c6f248
...
...
@@ -39,73 +39,6 @@
# THE DIRECTORY WHERE ARE LOCATED THE CONFIGURATION FILES
#########################################
# This script start MME+S/P-GW (all in one executable, on one host)
# Depending on configuration files, it can be instanciated a virtual switch
# setting or a VLAN setting.
#
###########################################################################################################################
# VIRTUAL BOX SETTING
###########################################################################################################################
# NETWORK SETTING AT EURECOM IN EXPERIMENTAL NETWORK (192.168.12.X)
#
#
# INTERNET GW 192.168.12.100
# |
# |
# 192.168.12.X/24 |
# +-----------+----------------+---+--+---------------------------------------+
# | COMPUTER 1| | eth0 | |
# +-----------+ +---+--+ |
# | | |
# | | |
# | ROUTER +-----+------+ |
# | |MASQUERADING| |
# | |FORWARDING | |
# | +-----+------+ |
# | | |
# | | |
# | | |
# | | |
# | | |
# | +---+--+ |
# | | eth1 | |
# +----------------------------+---+--+---------------------------------------+
# |router.eur
# 11 VLANS | INTERNET GW 192.168.12.100
# ids=[5..15] | |
# 192.168.13.X/24 | |
# +-----------+----------------+---+--+---------------------+---+--+----------+
# | COMPUTER 2| SGI | eth1 | Physical | eth0 | |
# +-----------+ +-+--+-+ Interface +------+ |
# | | | 'HOST_BRIDGED_IF_NAME' |
# | | | |
# | | | +-----------+ |
# | | | +------+ HSS | |
# | | +----------+ eth0 | (VM) | |
# | | +------+ | |
# | | | | |
# | | +-+------+--+ |
# | | |eth1 | hss.eur |
# | virtual box | +--+---+ |
# | +------------------+ | virtual box |
# | | bridged network | host-only |
# | | | network |
# | | | 192.168.57/24 |
# | | | |
# | +--+---+ +--+-----+ |
# | |eth0 | |vboxnet1| |
# | +-+------+--+192.168.56.101 192.168.56.1+-+--------++ |
# | | eNB 0 +------+ virtual box +--------+ MME | |
# | | (VM) |eth1 +----------------+vboxnet0| S+P/GW | |
# | | +------+ host-only +--------+(execu. on | |
# | | | network |COMPUTER2) | |
# | | | 192.168.56/24 | | |
# | | LTE eNB 1 | | | |
# | | LTE UEs | | | |
# | +-----------+ +-----------+ |
# | |
# | |
# +---------------------------------------------------------------------------+
#
###########################################################
THIS_SCRIPT_PATH
=
$(
dirname
$(
readlink
-f
$0
))
...
...
@@ -124,8 +57,6 @@ control_c()
exit
$?
}
if
[
$#
-eq
1
]
;
then
declare
-x
CONFIG_FILE_DIR
=
$1
if
[
!
-d
$CONFIG_FILE_DIR
]
;
then
...
...
@@ -309,7 +240,6 @@ ip route flush cache
(
cd
$OPENAIRCN_DIR
/GTPV1-U/GTPUAH
;
make
;
cp
-f
./Bin/libxt_
*
.so /lib/xtables
;
insmod
$OPENAIRCN_DIR
/GTPV1-U/GTPUAH/Bin/xt_GTPUAH.ko
)
(
cd
$OPENAIRCN_DIR
/GTPV1-U/GTPURH
;
make
;
cp
-f
./Bin/libxt_
*
.so /lib/xtables
;
insmod
$OPENAIRCN_DIR
/GTPV1-U/GTPURH/Bin/xt_GTPURH.ko
)
echo
" Enabling forwarding"
bash_exec
"sysctl -w net.ipv4.ip_forward=1"
assert
"
`
sysctl
-n
net.ipv4.ip_forward
`
-eq 1"
$LINENO
...
...
@@ -345,6 +275,7 @@ bash_exec "sysctl -w net.ipv4.netfilter.ip_conntrack_max=10000"
iptables
-A
FORWARD
-m
state
--state
INVALID
-j
LOG
#iptables -I PREROUTING -t raw -i $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP -j LOG --log-level crit --log-ip-options --log-prefix "PREROUTING raw:"
#iptables -A OUTPUT -t filter -j LOG --log-level crit --log-ip-options --log-prefix "OUTPUT filter:"
#iptables -A OUTPUT -t mangle -j LOG --log-level crit --log-ip-options --log-prefix "OUTPUT mangle:"
...
...
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