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
canghaiwuhen
OpenXG-RAN
Commits
f29cddcf
Commit
f29cddcf
authored
Oct 30, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5947
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
df3f7647
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
targets/PROJECTS/GENERIC-LTE-EPC/networks.bash
targets/PROJECTS/GENERIC-LTE-EPC/networks.bash
+10
-2
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
+14
-2
No files found.
targets/PROJECTS/GENERIC-LTE-EPC/networks.bash
View file @
f29cddcf
...
...
@@ -271,6 +271,16 @@ clean_network() {
}
delete_sgi_vlans
()
{
for
i
in
5 6 7 8 9 10 11 12 13 14 15
do
delete_vlan_interface
$PGW_INTERFACE_NAME_FOR_SGI
.
$i
done
}
create_sgi_vlans
()
{
get_mac_router
...
...
@@ -292,8 +302,6 @@ create_sgi_vlans() {
set_interface_up
$PGW_INTERFACE_NAME_FOR_SGI
.
$i
"10.0."
$NET
".2"
24
done
}
...
...
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
View file @
f29cddcf
...
...
@@ -229,6 +229,8 @@ VARIABLES="
MME_IPV4_ADDRESS_FOR_S1_MME
\|\
MME_INTERFACE_NAME_FOR_S11_MME
\|\
MME_IPV4_ADDRESS_FOR_S11_MME
\|\
HSS_INTERFACE_NAME_FOR_S6A
\|\
HSS_IPV4_ADDRESS_FOR_S6A
\|\
SGW_INTERFACE_NAME_FOR_S11
\|\
SGW_IPV4_ADDRESS_FOR_S11
\|\
SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP
\|\
...
...
@@ -250,6 +252,7 @@ declare ENB_IPV4_NETMASK_FOR_S1_MME=$( echo $ENB_IPV4_ADDRESS_FOR_S1_MME
declare
ENB_IPV4_NETMASK_FOR_S1U
=
$(
echo
$ENB_IPV4_ADDRESS_FOR_S1U
|
cut
-f2
-d
'/'
)
declare
MME_IPV4_NETMASK_FOR_S1_MME
=
$(
echo
$MME_IPV4_ADDRESS_FOR_S1_MME
|
cut
-f2
-d
'/'
)
declare
MME_IPV4_NETMASK_FOR_S11_MME
=
$(
echo
$MME_IPV4_ADDRESS_FOR_S11_MME
|
cut
-f2
-d
'/'
)
declare
MME_IPV4_NETMASK_FOR_S6A
=
$(
echo
$MME_IPV4_ADDRESS_FOR_S6A
|
cut
-f2
-d
'/'
)
declare
SGW_IPV4_NETMASK_FOR_S11
=
$(
echo
$SGW_IPV4_ADDRESS_FOR_S11
|
cut
-f2
-d
'/'
)
declare
SGW_IPV4_NETMASK_FOR_S1U_S12_S4_UP
=
$(
echo
$SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP
|
cut
-f2
-d
'/'
)
declare
SGW_IPV4_NETMASK_FOR_S5_S8_UP
=
$(
echo
$SGW_IPV4_ADDRESS_FOR_S5_S8_UP
|
cut
-f2
-d
'/'
)
...
...
@@ -261,6 +264,7 @@ ENB_IPV4_ADDRESS_FOR_S1U=$( echo $ENB_IPV4_ADDRESS_FOR_S1U
MME_IPV4_ADDRESS_FOR_S1_MME
=
$(
echo
$MME_IPV4_ADDRESS_FOR_S1_MME
|
cut
-f1
-d
'/'
)
MME_IPV4_ADDRESS_FOR_S11_MME
=
$(
echo
$MME_IPV4_ADDRESS_FOR_S11_MME
|
cut
-f1
-d
'/'
)
SGW_IPV4_ADDRESS_FOR_S11
=
$(
echo
$SGW_IPV4_ADDRESS_FOR_S11
|
cut
-f1
-d
'/'
)
SGW_IPV4_ADDRESS_FOR_S6A
=
$(
echo
$SGW_IPV4_ADDRESS_FOR_S6A
|
cut
-f1
-d
'/'
)
SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP
=
$(
echo
$SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP
|
cut
-f1
-d
'/'
)
SGW_IPV4_ADDRESS_FOR_S5_S8_UP
=
$(
echo
$SGW_IPV4_ADDRESS_FOR_S5_S8_UP
|
cut
-f1
-d
'/'
)
PGW_IPV4_ADDRESS_FOR_S5_S8
=
$(
echo
$PGW_IPV4_ADDRESS_FOR_S5_S8
|
cut
-f1
-d
'/'
)
...
...
@@ -276,7 +280,8 @@ PGW_IPV4_ADDR_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI
# build_mme_spgw_vlan_network
#else
# clean_epc_vlan_network
# create_sgi_vlans
#create_sgi_vlans
delete_sgi_vlans
#fi
get_mac_router
...
...
@@ -319,7 +324,14 @@ trap control_c SIGINT
echo_success
"Resolving hss.eur"
HSS_IP
=
$(
get_ip hss.eur
)
echo_success
"HSS_IP:
$HSS_IP
"
MME_INTERFACE_NAME_FOR_S6A
=
`
ip route get
$HSS_IP
|
grep
$HSS_IP
|
cut
-d
' '
-f
3
`
HSS_ROUTE
=
$(
ip route get
$HSS_IP
|
grep
$HSS_IP
)
HSS_ROUTE_IS_LOCAL
=
`
echo
$HSS_ROUTE
|
cut
-d
' '
-f
1
`
if
[
"x
$HSS_ROUTE_IS_LOCAL
"
==
"xlocal"
]
;
then
MME_INTERFACE_NAME_FOR_S6A
=
`
ip route get
$HSS_IP
|
grep
$HSS_IP
|
cut
-d
' '
-f
4
`
else
MME_INTERFACE_NAME_FOR_S6A
=
`
ip route get
$HSS_IP
|
grep
$HSS_IP
|
cut
-d
' '
-f
3
`
fi
echo_success
"MME_INTERFACE_NAME_FOR_S1_MME :
$MME_INTERFACE_NAME_FOR_S1_MME
"
echo_success
"MME_INTERFACE_NAME_FOR_S6A :
$MME_INTERFACE_NAME_FOR_S6A
"
...
...
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