-
Notifications
You must be signed in to change notification settings - Fork 2
Networking
Nithish K Gnani edited this page Oct 27, 2022
·
5 revisions
Warning: Do not try any of these unless you know what exactly you intend to do. Trying some of these commands and tricks may lead to security risks.
- To see what your current ARP timeout is (default is 60 seconds)
cat /proc/sys/net/ipv4/neigh/ethX/gc_stale_time - To change the ARP timeout
echo _timeout_ > /proc/sys/net/ipv4/neigh/_ethX_/gc_stale_time
Here timeout is the new value (in seconds)of ARP timeout. Change the ethX to your interface's name.
Source
To avoid arp requests packets from being sent, you can manually add an arp entry:
-
arp -s _ipaddr_ _macaddr_
change the ipaddr and macaddr to the destinations IP address and MAC address.
Source