Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
566dd7db
Commit
566dd7db
authored
Feb 04, 2014
by
gauthier
Browse files
bug fixes
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5020
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
66c402ee
Changes
3
Show whitespace changes
Inline
Side-by-side
targets/PROJECTS/GENERIC-LTE-EPC/start_lte-epc-vlan.bash
View file @
566dd7db
...
...
@@ -174,7 +174,7 @@ PGW_IPV4_ADDR_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI
clean_epc_vlan_network
build_mme_spgw_vlan_network
test_epc_vlan_network
#
test_epc_vlan_network
##################################################..
...
...
targets/PROJECTS/GENERIC-LTE-EPC/start_router.bash
View file @
566dd7db
...
...
@@ -160,20 +160,23 @@ bash_exec "modprobe 8021q"
for
i
in
5 6 7 8 9 10 11 12 13 14 15
do
ifconfig
$INTIF
.
$i
down
>
/dev/null 2>&1
sync
vconfig rem
$INTIF
.
$i
>
/dev/null 2>&1
sync
done
for
i
in
5 6 7 8 9 10 11 12 13 14 15
do
bash_exec
"vconfig add
$INTIF
$i
"
sync
NET
=
$((
$i
+
200
))
CIDR
=
'10.0.'
$NET
'.1/8'
bash_exec
"ip -4 addr add
$CIDR
broadcast 192.174.
$NET
.255
dev
$INTIF
.
$i
"
bash_exec
"ip -4 addr add
$CIDR
dev
$INTIF
.
$i
"
bash_exec
"iptables -A FORWARD -i
$EXTIF
-o
$INTIF
.
$i
-m state --state ESTABLISHED,RELATED -j ACCEPT"
bash_exec
"iptables -A FORWARD -i
$INTIF
.
$i
-o
$EXTIF
-m state --state NEW,ESTABLISHED,RELATED,INVALID -j ACCEPT"
bash_exec
"echo 1 > /proc/sys/net/ipv4/conf/
$INTIF
.
$i
/proxy_arp"
bash_exec
"echo 0 > /proc/sys/net/ipv4/conf/
$INTIF
.
$i
/rp_filter"
#assert " `sysctl -n net.ipv4.conf.$INTIF.$i.proxy_arp` -eq 1" $LINENO
#assert " `sysctl -n net.ipv4.conf.$INTIF.$i.rp_forward` -eq 0" $LINENO
#assert " `sysctl -n net.ipv4.conf.$INTIF.$i.rp_filter` -eq 0" $LINENO
done
for
i
in
5 6 7 8 9 10 11 12 13 14 15
do
...
...
targets/PROJECTS/GENERIC-LTE-EPC/utils.bash
View file @
566dd7db
...
...
@@ -647,7 +647,7 @@ clean_epc_vlan_network() {
ifconfig
$PGW_INTERFACE_NAME_FOR_SGI
.
$i
down
>
/dev/null 2>&1
vconfig rem
$PGW_INTERFACE_NAME_FOR_SGI
.
$i
>
/dev/null 2>&1
done
ip
link set
$PGW_INTERFACE_NAME_FOR_SGI
down
>
/dev/null 2>&1
#
ip link set $PGW_INTERFACE_NAME_FOR_SGI down > /dev/null 2>&1
}
build_openvswitch_network
()
{
...
...
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