Commit 943eb8c0 authored by gauthier's avatar gauthier
Browse files

bug same network ip addresses

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5432 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent da24d54b
......@@ -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"
}
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