How can i delete all ARP entries and disable Dynamic ARP.
I have made a script to make static arp entries
Code: Select all
cat arp.address | while read arps
do
ip=`echo $arps | awk '{print $2}'`
mac=`echo $arps | awk '{print $1}'`
arp -i eth0 -s $ip $mac
done
On a website i read that arp can be disabled and enabled like this ifconfig eth0 -arp. After executing this command when i run arp, it does nothing. Its like arp is turned off.
I dont want to disable arp, i just want to disable the Dynamic Entries of ARP, like ARP should not be able to get Dynamic Entry.
I tried the following script to delete all arp entries.
Code: Select all
arp -i eth0 | while read arps
do
ip=`echo $arps | awk {'print $1}'`
arp -i eth0 -d $ip
done