Re: 9.0-beta3 preferring ipv4 over ipv6 with ipv6_activate_all_interfaces="YES"

From: Thomas Steen Rasmussen <thomas_at_gibfest.dk>
Date: Fri, 14 Oct 2011 10:26:30 +0200
On 14-10-2011 10:09, Hiroki Sato wrote:
>  Thanks.  There is no problem with the source address selection. The
>  last questions are:
>
>  % route get -inet www.freebsd.org

[tykling_at_tykburk ~]$ route get -inet www.freebsd.org
   route to: red.freebsd.org
destination: default
       mask: default
    gateway: fitfw
  interface: re0
      flags: <UP,GATEWAY,DONE,STATIC>
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0

>  % route get -inet6 www.freebsd.org

[tykling_at_tykburk ~]$ route get -inet6 www.freebsd.org
   route to: red.freebsd.org
destination: ::
       mask: default
    gateway: fe80::20d:f0ff:fe8d:4d23%re0
  interface: re0
      flags: <UP,GATEWAY,DONE>
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0

>  % netstat -nrf inet6

[tykling_at_tykburk ~]$ netstat -nrf inet6
Routing tables

Internet6:
Destination                       Gateway                      
Flags      Netif Expire
::/96                             ::1                          
UGRS        lo0 =>
default                           fe80::20d:f0ff:fe8d:4d23%re0 
UG          re0
::1                               ::1                          
UH          lo0
::ffff:0.0.0.0/96                 ::1                          
UGRS        lo0
2002:d947:452:1::/64              link#5                       
U           re0
2002:d947:452:1:224:8cff:fe02:de01 link#5                       
UHS         lo0
fe80::/10                         ::1                          
UGRS        lo0
fe80::%re0/64                     link#5                       
U           re0
fe80::224:8cff:fe02:de01%re0      link#5                       
UHS         lo0
fe80::%fwe0/64                    link#6                       
U          fwe0
fe80::1e:8cff:feb6:377b%fwe0      link#6                       
UHS         lo0
fe80::%fwip0/64                   link#7                       
U         fwip0
fe80::21e:8c00:1b6:377b%fwip0     link#7                       
UHS         lo0
fe80::%em0/64                     link#12                      
U           em0
fe80::21b:21ff:fe32:fe80%em0      link#12                      
UHS         lo0
fe80::%lo0/64                     link#13                      
U           lo0
ff01::%re0/32                     fe80::224:8cff:fe02:de01%re0 
U           re0
ff01::%fwe0/32                    fe80::1e:8cff:feb6:377b%fwe0 
U          fwe0
ff01::%fwip0/32                   fe80::21e:8c00:1b6:377b%fwip0
U         fwip0
ff01::%em0/32                     fe80::21b:21ff:fe32:fe80%em0 
U           em0
ff01::%lo0/32                     ::1                          
U           lo0
ff02::/16                         ::1                          
UGRS        lo0
ff02::%re0/32                     fe80::224:8cff:fe02:de01%re0 
U           re0
ff02::%fwe0/32                    fe80::1e:8cff:feb6:377b%fwe0 
U          fwe0
ff02::%fwip0/32                   fe80::21e:8c00:1b6:377b%fwip0
U         fwip0
ff02::%em0/32                     fe80::21b:21ff:fe32:fe80%em0 
U           em0
ff02::%lo0/32                     ::1                          
U           lo0

>  % ndp -r

[tykling_at_tykburk ~]$ ndp -r
fe80::20d:f0ff:fe8d:4d23%re0 if=re0, flags=, pref=medium, expire=28m15s

>  I guess the second one returns "route: writing to routing socket: No
>  such process" on your box.  Is it correct?

No, it returns the route to red.freebsd.org / 2001:4f8:fff6::22 (which is
the default route of course).

Extra info:

[tykling_at_tykburk ~]$ telnet -6 www.freebsd.org 80 < /dev/null
Trying 2001:4f8:fff6::22...
Connected to red.freebsd.org.
Escape character is '^]'.
Connection closed by foreign host.

Thanks,

Thomas
Received on Fri Oct 14 2011 - 06:26:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC