Update subnet-down
This commit is contained in:
parent
c96b602174
commit
8555e14cda
@ -11,7 +11,7 @@ if [ -z "$nonMACChars" ]; then
|
|||||||
|
|
||||||
if echo $arpEntries | grep -q -E "at $SUBNET "; then
|
if echo $arpEntries | grep -q -E "at $SUBNET "; then
|
||||||
echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 -I {} echo "[ARP] Removing {} from the table..."
|
echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 -I {} echo "[ARP] Removing {} from the table..."
|
||||||
echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 arp -d
|
echo $arpEntries | grep -E "at 0?*$SUBNET0?* " | sed -r 's/^.+\((.+)\).+$/\1/g' | xargs -n1 -I {} arp -d {}
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# This subnet is an IP address
|
# This subnet is an IP address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user