Skip to content

Instantly share code, notes, and snippets.

@Thermi
Last active June 22, 2017 12:33
Show Gist options
  • Save Thermi/c806a3929b91e720c1b2d3e99036b36f to your computer and use it in GitHub Desktop.
Save Thermi/c806a3929b91e720c1b2d3e99036b36f to your computer and use it in GitHub Desktop.
#! /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