bug same network ip addresses
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5432 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user