Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2016 08:55:17 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        zjef@mail2tor.com
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: =ping: sendto: Can't assign requested address= in fib spaces
Message-ID:  <CAOtMX2i2R=%2Bb86Lj7hkqeeph3aGQq81XY6rU8PYhUxs79DyE1w@mail.gmail.com>
In-Reply-To: <d183c56b9c2da63df2d856468a656499.squirrel@_>
References:  <1efbc304fc2208b7cb41f5ca208d2f81.squirrel@_> <CAOtMX2iXQm_RShgg1uFHAYeVtdFiGE9n3AnE=QnfgtjePDbBnw@mail.gmail.com> <d183c56b9c2da63df2d856468a656499.squirrel@_>

next in thread | previous in thread | raw e-mail | index | archive | help
That "Can't assign requested address" suggests that the problem might
have nothing to do with fibs.  Can you show us your "ifconfig" output?
 It would also help to know what local address ping is trying to
assign.  You can figure that out by doing "setfib 2 ktrace ping
8.8.8.8; kdump" and searching for "bind".  Once you know that, you can
try playing with ping's "-S" option to set different local addresses.

-Alan

On Tue, Sep 13, 2016 at 5:21 PM,  <zjef@mail2tor.com> wrote:
> Here is the nestat -rn output:
>
>
>
> setfib -2 netstat -rn
> Routing tables (fib: 2)
>
> Internet:
> Destination        Gateway            Flags     Netif Expire
> default            10.128.0.1         UGS        tun2
> 10.8.0.2           link#5             UH         tun1
> 10.9.0.2           link#4             UH         tun0
> 10.128.0.1         link#6             UH         tun2
> 127.0.0.1          link#2             UH          lo0
> 192.168.188.0/24   link#1             U          dwc0
>
> Internet6:
> Destination                       Gateway                       Flags
> Netif Expire
> ::/96                             ::1                           UGRS
>  lo0
> default                           2001:678:f0:1020::1           UGS
> tun2
> ::1                               link#2                        UH
>  lo0
> ::ffff:0.0.0.0/96                 ::1                           UGRS
>  lo0
> 2001:678:f0:1020::/64             link#6                        U
> tun2
> 2001:a61:51:f501::/64             link#1                        U
> dwc0
> fd6c:9bdf:37b4:5ef8::/64          link#4                        U
> tun0
> fd6c:9bdf:97b6:7ef7::/64          link#5                        U
> tun1
> fe80::/10                         ::1                           UGRS
>  lo0
> fe80::%dwc0/64                    link#1                        U
> dwc0
> fe80::%lo0/64                     link#2                        U
>  lo0
> fe80::%tun0/64                    link#4                        U
> tun0
> fe80::%tun1/64                    link#5                        U
> tun1
> fe80::%tun2/64                    link#6                        U
> tun2
> ff02::/16                         ::1                           UGRS
>  lo0
>
>
>
>> On Tue, Sep 13, 2016 at 4:41 PM,  <zjef@mail2tor.com> wrote:
>>> Hi,
>>>
>>> in r305382 on my router-box I see some issue with ICMP and UDP in IPv4
>>> in
>>> non-default fib spaces. PF is disabled. For example,
>>>
>>> UDP:
>>>
>>> setfib -2 host -vvv www.cisco.com 8.8.8.8
>>> Trying "www.cisco.com"
>>> ;; connection timed out; no servers could be reached
>>>
>>> setfib -2 host -6 www.cisco.com 2001:4860:4860::8888
>>> Using domain server:
>>> Name: 2001:4860:4860::8888
>>> Address: 2001:4860:4860::8888#53
>>> Aliases:
>>>
>>> www.cisco.com is an alias for www.cisco.com.akadns.net.
>>> ....
>>>
>>>
>>> ICMP:
>>>
>>> setfib -2 ping 8.8.8.8
>>> PING 8.8.8.8 (8.8.8.8): 56 data bytes
>>> ping: sendto: Can't assign requested address
>>> ping: sendto: Can't assign requested address
>>> ...
>>>
>>>
>>> setfib -2 ping6 www.cisco.com
>>> PING6(56=40+8+8 bytes) 2001:678:f0:1020:27:cb57:2682:767a -->
>>> 2a02:26f0:12:197::90
>>> 16 bytes from 2a02:26f0:12:197::90, icmp_seq=0 hlim=54 time=99.343 ms
>>> ...
>>>
>>>
>>> Also TCP in IPv4 is not affected:
>>>
>>> setfib -2 curl -o /tmp/index.html http://www.cisco.com
>>>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
>>> Current
>>>                                  Dload  Upload   Total   Spent    Left
>>> Speed
>>> 100 73038    0 73038    0     0  68094      0 --:--:--  0:00:01 --:--:--
>>> 68259
>>>
>>>
>>> In FreeBSD 11 the networking worked smoothly in fib spaces.
>>>
>>> Is it known problem?
>>>
>>> Thanks
>>>
>>> Jim
>>>
>>
>> What is the output of "setfib 2 netstat -rn"?
>> _______________________________________________
>> freebsd-net@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-net
>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2i2R=%2Bb86Lj7hkqeeph3aGQq81XY6rU8PYhUxs79DyE1w>