From fcb6595b6e8a8ed017cceedc0a83e53fb534ab6a Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Thu, 20 Nov 2003 22:54:19 +0000 Subject: [PATCH] need to ping gateway to populate arp table --- ipmitool/src/bmcautoconf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmitool/src/bmcautoconf.sh b/ipmitool/src/bmcautoconf.sh index 6c9e052..46d18db 100755 --- a/ipmitool/src/bmcautoconf.sh +++ b/ipmitool/src/bmcautoconf.sh @@ -129,7 +129,7 @@ fi # Default Route MAC Address # (ping it first to populate arp table) -$PING -q -c1 >/dev/null 2>&1 +$PING -q -c1 $DEF_ROUTE_IP >/dev/null 2>&1 DEF_ROUTE_MAC=$( $ARP -an -i $IFACE | grep "$DEF_ROUTE_IP[^0-9]" | awk '{ print $4 }' ) if [ X$DEF_ROUTE_MAC = X ]; then echo "Unable to determine default route MAC address"