mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
ethermultilink: send gratious arp instead of flushing arp cache
This commit is contained in:
parent
934d81ae4e
commit
2153eb179c
1 changed files with 4 additions and 2 deletions
|
@ -50,9 +50,11 @@ while(){
|
|||
echo bind bypass primary 0 $primary
|
||||
echo bind ether secondary 0 $new
|
||||
}
|
||||
# make switches aware of the new path
|
||||
echo flush > $net/arp
|
||||
|
||||
# do gratious arp on the new path
|
||||
for(ip in `{awk '$3=="4u" || $3=="6u" {print $1}' $net/ipselftab}){
|
||||
echo garp $ip > $net/arp || echo flush > $net/arp
|
||||
}
|
||||
old=$new
|
||||
}
|
||||
sleep 1
|
||||
|
|
Loading…
Reference in a new issue