Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2012 23:33:36 +0400
From:      Mr Dandy <subbsd@gmail.com>
To:        Vlad Galu <dudu@dudu.ro>
Cc:        freebsd-net@freebsd.org
Subject:   Re: ipv6 host inaccessible via route -inteface without ndp pairs
Message-ID:  <201202252333.36403.subbsd@gmail.com>
In-Reply-To: <371110A7FCE442FA8189BEDF90DF6451@dudu.ro>
References:  <201202252213.50760.subbsd@gmail.com> <371110A7FCE442FA8189BEDF90DF6451@dudu.ro>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 25 February 2012 22:47:50 Vlad Galu wrote:
> > Hi
> > 
> 
> You might need to add ipv6_default_interface="re0" to /etc/rc.conf. After
> you do that, it will have ACCEPT_RTADV and DEFAULTIF set.

Thanks for informations.

Ok - looks like FreeBSD still not have rc.conf variable for controlling 
net.inet6.ip6.accept_rtadv

(ipv6_default_interface="re0") = ndp  -I re0

But that in my case I have seen on netstat correct information about default 
gw for ipv6 - I should in /etc/rc.d/routing change string from

ipv6_static_routes="default ${ipv6_static_routes}"
to
ipv6_static_routes="${ipv6_static_routes} default"

And however I all the same can't achieve working configuration IPv6 from the 
boot.  At present i have /etc/rc.conf related to ipv6:

ipv6_activate_all_interfaces="YES"
ipv6_static_routes="hetzner"
ipv6_route_hetzner="2a01:4f8:61:50c0::/59 -iface re0"
ipv6_default_interface="re0"
ifconfig_re0_ipv6="inet6 2a01:4f8:61:50c2::13/64"
ipv6_defaultrouter="2a01:4f8:61:50c0::1"
rtadvd_enable="YES"
rtadvd_interfaces="re0"

/etc/sysct.conf:
net.inet6.ip6.accept_rtadv=1

After reboot what i get: 

# sysctl -n net.inet6.ip6.accept_rtadv
1

# ndp -I
ND default interface = re0

# route get -inet6 default
   route to: ::
destination: ::
       mask: default
    gateway: 2a01:4f8:61:50c0::1
  interface: re0
      flags: <UP,GATEWAY,DONE,STATIC>
 recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
       0         0         0         0      1500         1         0 

# ping6 2a01:4f8:61:50c0::1
PING6(56=40+8+8 bytes) 2a01:4f8:61:50c2::13 --> 2a01:4f8:61:50c0::1
ping6: sendmsg: Operation not permitted
ping6: wrote 2a01:4f8:61:50c0::1 16 chars, ret=-1
^C
--- 2a01:4f8:61:50c0::1 ping6 statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss

?
It seems not a problem of configuration rc-scripts, something isn't perfectly 
in order with route table for -iface?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202252333.36403.subbsd>