ipv6 host inaccessible via route -inteface without ndp pairs
Mr Dandy
subbsd at gmail.com
Sat Feb 25 19:33:22 UTC 2012
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?
More information about the freebsd-net
mailing list