Depending on OS version, need to do ifconfig up

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5058 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Lionel Gauthier
2014-02-10 13:27:15 +00:00
parent e633754613
commit 2e10d532c5
@@ -3,8 +3,8 @@
#############################################################
#Setting the EXTERNAL and INTERNAL interfaces for the network
#############################################################
declare EXTIF="eth0"
declare INTIF="eth3"
declare EXTIF="eth1"
declare INTIF="eth2"
IPTABLES=/sbin/iptables
DEPMOD=/sbin/depmod
@@ -169,6 +169,7 @@ done
for i in 5 6 7 8 9 10 11 12 13 14 15
do
bash_exec "vconfig add $INTIF $i"
bash_exec "ifconfig $INTIF.$i up"
sync
NET=$(( $i + 200 ))
CIDR='10.0.'$NET'.1/8'