From ddfccf438fefe89fad356e9010874ac7c78813e5 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 6 Mar 2009 18:10:37 -0800 Subject: Specify source address with arping since we no longer require an IP address on the actual interface. --- scripts/keepalived/vyatta-show-vrrp.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl index 0e8e2909..25e71bb4 100755 --- a/scripts/keepalived/vyatta-show-vrrp.pl +++ b/scripts/keepalived/vyatta-show-vrrp.pl @@ -121,8 +121,10 @@ sub get_master_info { my $master_file = Vyatta::Keepalived::get_master_file($intf, $group); my $arp_file = "$master_file.arp"; + my $source_ip = (vrrp_get_config($intf, $group))[0]; - system("/usr/bin/arping -c1 -f -I $intf $vip > $arp_file"); + # arping doesn't seem to work for vlans, maybe we should skip it if vlan? + system("/usr/bin/arping -c1 -f -I $intf -s $source_ip $vip > $arp_file"); my $arp_mac = parse_arping($arp_file); if ( ! -f $master_file) { -- cgit v1.2.3