Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#! /bin/bash
ip neigh | while read -r i
do
if [ `echo "$i" | cut -d " " -f 5` == FAILED ]
then
ip neigh replace `echo "$i" | cut -d " " -f 1-3` nud none
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment