Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
38742b81
Commit
38742b81
authored
Jan 23, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@4933
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
71dacb1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
6 deletions
+32
-6
openair-cn/SCRIPTS/start_lte-epc-ovs.bash
openair-cn/SCRIPTS/start_lte-epc-ovs.bash
+32
-6
No files found.
openair-cn/SCRIPTS/start_lte-epc-ovs.bash
View file @
38742b81
...
...
@@ -28,12 +28,13 @@ THIS_SCRIPT_PATH=$(dirname $(readlink -f $0))
source
$THIS_SCRIPT_PATH
/utils.bash
###########################################################
test_command_install_package
"gccxml"
"gccxml"
"--force-yes"
test_command_install_package
"vconfig"
"vlan"
test_command_install_package
"gccxml"
"gccxml"
"--force-yes"
test_command_install_package
"vconfig"
"vlan"
test_command_install_package
"iptables"
"iptables"
test_command_install_package
"ip"
"iproute"
test_command_install_package
"iperf"
"iperf"
test_command_install_package
"ip"
"iproute"
test_command_install_script
"ovs-vsctl"
"
$OPENAIRCN_DIR
/SCRIPTS/install_openvswitch1.9.0.bash"
test_command_install_script
"tunctl"
"uml-utilities"
test_command_install_script
"tunctl"
"uml-utilities"
if
[
!
-d
/usr/local/etc/freeDiameter
]
then
cd
$OPENAIRCN_DIR
/S6A/freediameter
&&
./install_freediameter.sh
...
...
@@ -152,8 +153,8 @@ else
fi
ping
-c
1 hss.eur
||
{
echo
"hss.eur does not respond to ping"
>
&2
;
exit
;
}
ping
-c
1 router.eur
||
{
echo
"router.eur does not respond to ping"
>
&2
;
exit
;
}
ping
-c
1 hss.eur
>
/dev/null
||
{
echo
"hss.eur does not respond to ping"
>
&2
;
exit
;
}
ping
-c
1 router.eur
>
/dev/null
||
{
echo
"router.eur does not respond to ping"
>
&2
;
exit
;
}
IP_ROUTER
=
`
python
-c
'import socket; print socket.gethostbyname("router.eur")'
`
export
MAC_ROUTER
=
`
ip neigh show |
grep
$IP_ROUTER
|
cut
-d
' '
-f5
|
tr
-d
':'
`
...
...
@@ -245,6 +246,31 @@ bash_exec "ifconfig $ENB_INTERFACE_NAME_FOR_S1_MME $ENB_IP_ADDRESS_FOR_S1_MME ne
bash_exec
"ifconfig
$ENB_INTERFACE_NAME_FOR_S1U
promisc up"
bash_exec
"ifconfig
$ENB_INTERFACE_NAME_FOR_S1U
$ENB_IP_ADDRESS_FOR_S1U
netmask
`
cidr2mask
$ENB_IP_NETMASK_FOR_S1U
`
promisc up"
## TEST
iperf
--bind
$MME_IP_ADDRESS_FOR_S1_MME
-u
-s
2>&1
>
/dev/null &
iperf
--bind
$ENB_IP_ADDRESS_FOR_S1_MME
-u
--num
1K
-c
$MME_IP_ADDRESS_FOR_S1_MME
2>&1 |
grep
-i
WARNING
>
/dev/null
if
[
$?
-eq
0
]
;
then
echo_error
"NETWORK ERROR CONFIGURATION (openvswitch) between ENB and MME control plane"
pkill iperf 2>&1
>
/dev/null
exit
1
else
echo_success
"NETWORK TEST SUCCESS (openvswitch) between ENB and MME control plane"
fi
pkill iperf 2>&1
>
/dev/null
iperf
--bind
$SGW_IP_ADDRESS_FOR_S1U_S12_S4_UP
-u
-s
2>&1
>
/dev/null &
iperf
--bind
$ENB_IP_ADDRESS_FOR_S1U
-u
--num
1K
-c
$SGW_IP_ADDRESS_FOR_S1U_S12_S4_UP
2>&1 |
grep
-i
WARNING
>
/dev/null
if
[
$?
-eq
0
]
;
then
echo_error
"NETWORK ERROR CONFIGURATION (openvswitch) between ENB and S-GW user plane"
pkill iperf 2>&1
>
/dev/null
exit
1
else
echo_success
"NETWORK TEST SUCCESS (openvswitch) between ENB and S-GW user plane"
fi
pkill iperf 2>&1
>
/dev/null
##################################################
# del bridge between SPGW and Internet
##################################################
...
...
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