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.



  • hello there.

    i know it's a old thread but it fits 100% my problem.

    ---cut---
    Aug 10 17:02:24 php-fpm 343 /services_dhcp_edit.php: Das Kommando '/usr/sbin/arp -d '192.168.0.199'' gab den Exitcode '1' zurück', das Ergebnis war 'arp: writing to routing socket: No such file or directory'
    Aug 10 17:02:24 check_reload_status Syncing firewall
    Aug 10 17:02:24 php-fpm 343 /services_dhcp_edit.php: Neuer Benachtichtung: pfSense stellt die Konfiguration wieder her /cf/conf/backup/config-1565448210.xml
    Aug 10 17:02:24 php-fpm 343 /services_dhcp_edit.php: pfSense stellt die Konfiguration wieder her /cf/conf/backup/config-1565448210.xml
    Aug 10 17:02:24 php-fpm 343 /services_dhcp_edit.php: XML Fehler: Undeclared entity error in Zeile 364 ind /conf/config.xml
    ---cut---

    i can't reserve a simple ipv4 with a mac. that is a real problem for me because this device must have the fix ip. i thought it was a special ip which caused this error but it isn't. it doesn't matter which ip i use, always the same error. :-(


  • Rebel Alliance Developer Netgate

    Probably the ü in the hostname caused that. Try only using plain ASCII (a-z, A-Z, numbers) and see if that works.



  • @jimp hell... such simple as this... it's to simple for me to find it my self... most of the time i can't find the easiest things... great! thx! ;) however... this shouldn't happen at all!


  • Rebel Alliance Developer Netgate

    Blame the developers of the XML standard which disallows such characters without special encoding. :-)



  • I thing that the arp cache timeout is the default which is 240 minutes . But the problem appears after 10-15 minutes without any traffic passing . Then i send a ping and connectivity is restored firstbankcard.com


Log in to reply