Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    ping 127.0.0.1 error sendto: can't assign requested address

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gbruyneel
      last edited by gbruyneel

      Hello,
      I have a netgate 3100 with the latest pfsense version (22.05). I have issue with the loopback interface. When I ping 127.0.0.1 or localhost I always get the error sendto:can't assign the requested address. The lo0 interface seems to be up and running:

      ifconfig -a
      lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
              options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
              inet6 ::1 prefixlen 128
              inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa
              inet 127.0.0.1 netmask 0xff000000
              group: lo
              nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
      

      But ping6 is working :

      ping6 localhost
      PING6 (56=40+8+8 bytes) ::1 --> ::1
      16 bytes from ::1, icmp_seq=0 hlim=64 time=0.330 ms
      ...
      --- localhost ping6 statistics ---
      4 packets transmitted, 4 packets received, 0.0% packet loss
      

      Then all services using the loopback IPv4 address (like unbound, freeradius etc...) are not working/responding.

      The only package I have installed are :
      bind 9.16_17
      openvpn-client-export 1.6_4
      Shellcmd 1.0.5_2
      System_Patches 2.0.6

      Can someone help me ?

      Thanks

      G 1 Reply Last reply Reply Quote 0
      • G
        gbruyneel @gbruyneel
        last edited by

        hello again,

        more strange thing: When I do :

        ifconfig lo0 down
        ifconfig lo0 up
        

        Then I get my ping back on 127.0.0.1 and localhost for about 40 loop and crash again with sendto error.

        and when i reset le lo0 again it comes ok and then crash etc....

        Is it a hardware issue ?

        Best regards

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Do you have some odd route?

          That error implies it's trying to source the ping from something unexpected.

          Steve

          G 1 Reply Last reply Reply Quote 0
          • G
            gbruyneel @stephenw10
            last edited by

            @stephenw10
            No routes seems to be OK:

            netstat -nr
            Routing tables
            
            Internet:
            Destination        Gateway            Flags     Netif Expire
            default            XX.XX.XX.XX        UGS     mvneta2
            10.10.100.0/24     link#2             U       mvneta1
            10.10.100.1        link#2             UHS         lo0
            XX.XX.XX.XX/26     link#8             U       mvneta2
            XX.XX.XX.XY.       link#8             UHS         lo0
            109.0.66.10        45:c2:8c:ae:a5:d7  UHS     mvneta2
            109.0.66.20        45:c2:8c:ae:a5:d7  UHS     mvneta2
            127.0.0.1          link#10            UH          lo0
            192.168.50.0/24    link#1             U       mvneta0
            192.168.50.10      link#1             UHS         lo0
            

            I have replace my WAN IP with XX.XX.XX.XX
            everything seems to be ok.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Hmm, what if you set a source IP like:

              [22.05-RELEASE][admin@3100.stevew.lan]/root: ping -S 192.168.18.1 localhost
              PING localhost (127.0.0.1) from 192.168.18.1: 56 data bytes
              64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.278 ms
              64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.089 ms
              64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.085 ms
              ^C
              --- localhost ping statistics ---
              3 packets transmitted, 3 packets received, 0.0% packet loss
              round-trip min/avg/max/stddev = 0.085/0.150/0.278/0.090 ms
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.