Commit 566dd7db authored by Lionel Gauthier's avatar Lionel Gauthier

bug fixes

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5020 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 66c402ee
...@@ -174,7 +174,7 @@ PGW_IPV4_ADDR_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI ...@@ -174,7 +174,7 @@ PGW_IPV4_ADDR_FOR_SGI=$( echo $PGW_IPV4_ADDR_FOR_SGI
clean_epc_vlan_network clean_epc_vlan_network
build_mme_spgw_vlan_network build_mme_spgw_vlan_network
test_epc_vlan_network #test_epc_vlan_network
##################################################.. ##################################################..
......
...@@ -160,20 +160,23 @@ bash_exec "modprobe 8021q" ...@@ -160,20 +160,23 @@ bash_exec "modprobe 8021q"
for i in 5 6 7 8 9 10 11 12 13 14 15 for i in 5 6 7 8 9 10 11 12 13 14 15
do do
ifconfig $INTIF.$i down > /dev/null 2>&1
sync
vconfig rem $INTIF.$i > /dev/null 2>&1 vconfig rem $INTIF.$i > /dev/null 2>&1
sync sync
done
for i in 5 6 7 8 9 10 11 12 13 14 15
do
bash_exec "vconfig add $INTIF $i" bash_exec "vconfig add $INTIF $i"
sync sync
NET=$(( $i + 200 )) NET=$(( $i + 200 ))
CIDR='10.0.'$NET'.1/8' 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 $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 "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 1 > /proc/sys/net/ipv4/conf/$INTIF.$i/proxy_arp"
bash_exec "echo 0 > /proc/sys/net/ipv4/conf/$INTIF.$i/rp_filter" 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 done
for i in 5 6 7 8 9 10 11 12 13 14 15 for i in 5 6 7 8 9 10 11 12 13 14 15
do do
......
...@@ -647,7 +647,7 @@ clean_epc_vlan_network() { ...@@ -647,7 +647,7 @@ clean_epc_vlan_network() {
ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i down > /dev/null 2>&1 ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i down > /dev/null 2>&1
vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1 vconfig rem $PGW_INTERFACE_NAME_FOR_SGI.$i > /dev/null 2>&1
done 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() { build_openvswitch_network() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment