ARP error



  • Hi All

    ARP error

    Running current release and getting this error

    /services_dhcp_edit.php: The command '/usr/sbin/arp -d '192.168.170.251'' returned exit code '1', the output was 'arp: writing to routing socket: Operation not permitted'
    

    New static host with ip 192.168.170.251 does not get new lease.

    Any help appreciated



  • What does the rest of the line say? The command works fine here.



  • Hi

    That is the full line in the system logs.

    I have added lines above and below

    Sep 2 10:13:10	dhcpleases		kqueue error: unkown
    Sep 2 10:13:10	dhcpleases		Could not deliver signal HUP to process because its pidfile (/var/run/dnsmasq.pid) does not exist, No such process.
    Sep 2 10:13:10	dhcpleases		/etc/hosts changed size from original!
    Sep 2 10:13:07	php-fpm	340	/services_dhcp_edit.php: The command '/usr/sbin/arp -d '192.168.170.251'' returned exit code '1', the output was 'arp: writing to routing socket: Operation not permitted'
    
    Thanks
    


  • Lines above only



  • I have combined this ticket with https://forum.netgate.com/topic/134238/issue-with-dnsamasq-when-adding-a-static-lease

    So this ticket can be closed



  • @dcolhoun said in ARP error:

    Sep 2 10:13:07 php-fpm 340 /services_dhcp_edit.php: The command '/usr/sbin/arp -d '192.168.170.251'' returned exit code '1', the output was 'arp: writing to routing socket: Operation not permitted'

    What is this interface 192.168.170.xxxx ?
    In the other thread I saw :

    /services_dhcp_edit.php: The command '/usr/sbin/arp -d '192.168.170.239'' returned exit code '1', the output was 'arp: writing to routing socket: No such file or directory'
    

    devices ...251 and 239 can't be arp'ed ...



  • I tried with .251. and then changed to 239, just to eliminate the ip as a factor. This is a static lease for a new VM. Why should arp be failing?



  • Well, by no means I'm an "interface" expert, but if arp complains about :
    @gertjan said in ARP error:

    arp: writing to routing socket: No such file or directory

    that that network (mounted on that interface) doesn't exists, or has serious troubles.


  • Rebel Alliance Developer Netgate

    It's trying to remove a static ARP entry for that IP address. Are you setting or removing the static ARP entry checkbox on the entry? (hint: You probably do not actually want static ARP)

    That error message is harmless though, it's basically saying "I can't remove that address from the ARP table because it isn't in the ARP table".



  • Humm, good to have a expert around ;)

    Harmless, or not, it seems a good thing to me to make arp happy here - and see if the dnsmasq errors go away also (the other thread).



  • This is an error in the system logs after adding a static DHCP lease. I am not doing it manually

    Last 2000 General Log Entries. (Maximum 2000)
    Sep 4 14:06:02 php-fpm /services_dhcp_edit.php: The command '/usr/sbin/arp -d '192.168.170.239'' returned exit code '1', the output was 'arp: writing to routing socket: No such file or directory'

    192.168.170.239 is the ip of the static lease I am adding


  • Rebel Alliance Developer Netgate

    Then ignore it as it's harmless. See my previous reply for the explanation.