From 943eb8c0a97605d6fd1e0c3b1d91c6ddd6cd3030 Mon Sep 17 00:00:00 2001
From: Lionel Gauthier <lionel.gauthier@eurecom.fr>
Date: Wed, 25 Jun 2014 15:33:41 +0000
Subject: [PATCH] bug same network ip addresses

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5432 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash b/targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash
index 34956f7b6b..388b720a92 100755
--- a/targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash
+++ b/targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash
@@ -251,7 +251,8 @@ set_interface_up() {
 get_mac_router() {
     ping -c 1 router.eur > /dev/null || { echo_fatal "router.eur does not respond to ping" >&2 ; }
     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 ':'`
+    export MAC_ROUTER=`ip neigh show | grep $IP_ROUTER' ' | cut -d ' '  -f5 | tr -d ':'`
+    echo_success "ROUTER IP  ADDRESS= $IP_ROUTER"
     echo_success "ROUTER MAC ADDRESS= $MAC_ROUTER"
 }
 
-- 
GitLab