Commit e6337546 authored by Lionel Gauthier's avatar Lionel Gauthier

Depending on OS version, need to do ifconfig up

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5057 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 3e87928e
...@@ -140,6 +140,7 @@ rotate_log_file () { ...@@ -140,6 +140,7 @@ rotate_log_file () {
NEWLOGFILE=$1.$TIMESTAMP NEWLOGFILE=$1.$TIMESTAMP
mv $1 $NEWLOGFILE mv $1 $NEWLOGFILE
cat /dev/null > $1 cat /dev/null > $1
sync
nohup gzip -f -9 $NEWLOGFILE & nohup gzip -f -9 $NEWLOGFILE &
fi fi
} }
...@@ -387,6 +388,8 @@ build_enb_vlan_network() { ...@@ -387,6 +388,8 @@ build_enb_vlan_network() {
sync sync
bash_exec "vconfig add $ENB_INTERFACE_NAME_FOR_S1_MME 1" bash_exec "vconfig add $ENB_INTERFACE_NAME_FOR_S1_MME 1"
sync sync
bash_exec "ifconfig $ENB_INTERFACE_NAME_FOR_S1_MME.1 up"
sync
bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1_MME/$ENB_IPV4_NETMASK_FOR_S1_MME dev $ENB_INTERFACE_NAME_FOR_S1_MME.1" bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1_MME/$ENB_IPV4_NETMASK_FOR_S1_MME dev $ENB_INTERFACE_NAME_FOR_S1_MME.1"
else else
echo_fatal "BAD INTERFACE NAME FOR ENB S1-MME $ENB_INTERFACE_NAME_FOR_S1_MME"' (waiting for ethx)' echo_fatal "BAD INTERFACE NAME FOR ENB S1-MME $ENB_INTERFACE_NAME_FOR_S1_MME"' (waiting for ethx)'
...@@ -399,6 +402,8 @@ build_enb_vlan_network() { ...@@ -399,6 +402,8 @@ build_enb_vlan_network() {
sync sync
bash_exec "vconfig add $ENB_INTERFACE_NAME_FOR_S1U 2" bash_exec "vconfig add $ENB_INTERFACE_NAME_FOR_S1U 2"
sync sync
bash_exec "ifconfig $ENB_INTERFACE_NAME_FOR_S1U.2 up"
sync
bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1U/$ENB_IPV4_NETMASK_FOR_S1U dev $ENB_INTERFACE_NAME_FOR_S1U".2 bash_exec "ip -4 addr add $ENB_IPV4_ADDRESS_FOR_S1U/$ENB_IPV4_NETMASK_FOR_S1U dev $ENB_INTERFACE_NAME_FOR_S1U".2
sync sync
else else
...@@ -478,6 +483,8 @@ build_mme_spgw_vlan_network() { ...@@ -478,6 +483,8 @@ build_mme_spgw_vlan_network() {
sync sync
bash_exec "vconfig add $MME_INTERFACE_NAME_FOR_S1_MME 1" bash_exec "vconfig add $MME_INTERFACE_NAME_FOR_S1_MME 1"
sync sync
bash_exec "ifconfig $MME_INTERFACE_NAME_FOR_S1_MME.1 up"
sync
bash_exec "ip -4 addr add $MME_IPV4_ADDRESS_FOR_S1_MME/$MME_IPV4_NETMASK_FOR_S1_MME dev $MME_INTERFACE_NAME_FOR_S1_MME.1" bash_exec "ip -4 addr add $MME_IPV4_ADDRESS_FOR_S1_MME/$MME_IPV4_NETMASK_FOR_S1_MME dev $MME_INTERFACE_NAME_FOR_S1_MME.1"
else else
echo_fatal "BAD INTERFACE NAME FOR SGW S1-MME $MME_INTERFACE_NAME_FOR_S1_MME"' (waiting for ethx)' echo_fatal "BAD INTERFACE NAME FOR SGW S1-MME $MME_INTERFACE_NAME_FOR_S1_MME"' (waiting for ethx)'
...@@ -490,6 +497,8 @@ build_mme_spgw_vlan_network() { ...@@ -490,6 +497,8 @@ build_mme_spgw_vlan_network() {
sync sync
bash_exec "vconfig add $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP 2" bash_exec "vconfig add $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP 2"
sync sync
bash_exec "ifconfig $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2 up"
sync
bash_exec "ip -4 addr add $SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP/$SGW_IPV4_NETMASK_FOR_S1U_S12_S4_UP dev $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2" bash_exec "ip -4 addr add $SGW_IPV4_ADDRESS_FOR_S1U_S12_S4_UP/$SGW_IPV4_NETMASK_FOR_S1U_S12_S4_UP dev $SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP.2"
sync sync
else else
...@@ -591,6 +600,8 @@ build_mme_spgw_vlan_network() { ...@@ -591,6 +600,8 @@ build_mme_spgw_vlan_network() {
sync sync
bash_exec "vconfig add $PGW_INTERFACE_NAME_FOR_SGI $i" bash_exec "vconfig add $PGW_INTERFACE_NAME_FOR_SGI $i"
sync sync
bash_exec "ifconfig $PGW_INTERFACE_NAME_FOR_SGI.$i up"
sync
# configure vlan interface # configure vlan interface
#CIDR=$NETWORK'.'$i'/24' #CIDR=$NETWORK'.'$i'/24'
base=200 base=200
......
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