diff --git a/heartbeat/IPaddr2 b/heartbeat/IPaddr2 index 489826b81..c21ccc0c0 100755 --- a/heartbeat/IPaddr2 +++ b/heartbeat/IPaddr2 @@ -635,8 +635,9 @@ find_interface() { | grep " $ipaddr/$netmask" \ | cut -d ' ' -f2 \ | grep -v '^ipsec[0-9][0-9]*$'`" + local iface_altname="`$IP2UTIL -f inet link show dev $iface | grep "altname" | sed 's/^[[:space:]]*//; s/altname //g' | tr '\n' ' '`" - echo "$iface" + echo "$iface $iface_altname" return 0 }