Difference between revisions of "gratiutous ARP with arping"

From thelinuxwiki
Jump to: navigation, search
(Created page with "http://serverfault.com/questions/175803/how-to-broadcast-arp-update-to-all-neighbors-in-linux")
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
http://serverfault.com/questions/175803/how-to-broadcast-arp-update-to-all-neighbors-in-linux
+
to manually send a gratuitous ARP to the broadcast address, run...
 +
 
 +
# arping -U 192.168.100.50 -I eth1 -c 1
 +
 
 +
if you receive an error...
 +
 
 +
bind: Cannot assign requested address
 +
 
 +
then you need to enable non local ip binding
 +
 
 +
# echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
 +
 
 +
to make the setting permanent,
 +
 
 +
# echo "net.ipv4.ip_nonlocal_bind = 1" >> /etc/sysctl.conf
 +
 
 +
 
 +
== links ==
 +
 
 +
 
 +
[http://serverfault.com/questions/175803/how-to-broadcast-arp-update-to-all-neighbors-in-linux]
 +
 
 +
[[category:networking]]

Latest revision as of 07:40, 9 May 2014

to manually send a gratuitous ARP to the broadcast address, run...

# arping -U 192.168.100.50 -I eth1 -c 1

if you receive an error...

bind: Cannot assign requested address

then you need to enable non local ip binding

# echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind

to make the setting permanent,

# echo "net.ipv4.ip_nonlocal_bind = 1" >> /etc/sysctl.conf


links

[1]