From owner-freebsd-net@FreeBSD.ORG Sat Feb 25 19:33:21 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4337106566C for ; Sat, 25 Feb 2012 19:33:21 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4B79E8FC20 for ; Sat, 25 Feb 2012 19:33:20 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so171503bkc.13 for ; Sat, 25 Feb 2012 11:33:20 -0800 (PST) Received-SPF: pass (google.com: domain of subbsd@gmail.com designates 10.204.129.220 as permitted sender) client-ip=10.204.129.220; Authentication-Results: mr.google.com; spf=pass (google.com: domain of subbsd@gmail.com designates 10.204.129.220 as permitted sender) smtp.mail=subbsd@gmail.com; dkim=pass header.i=subbsd@gmail.com Received: from mr.google.com ([10.204.129.220]) by 10.204.129.220 with SMTP id p28mr3602939bks.8.1330198400118 (num_hops = 1); Sat, 25 Feb 2012 11:33:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=4x3VXkqRsdPVn7VHQk5YwYf8hKdePjUSyXn6gG0IAgk=; b=kOEVz20Cy5V6vyxR+nL12uXQwpQ6F4rWkmQerd1Ym9zR39DAO7YXRq30SS7/BCN0Fn OuIhVhoihNErcawu2Bh44rkUrXPsdzQ0H/dkLZhSyN8isnhfcnGMBG7E/yezd/zGG+V5 M+NgTmIOz8oPRCPQOdhezoydfSJB7Q9iwjRIc= Received: by 10.204.129.220 with SMTP id p28mr2972921bks.8.1330198399997; Sat, 25 Feb 2012 11:33:19 -0800 (PST) Received: from gizmo.my.domain (nat140-249-205-109.tvoe.tv. [109.205.249.140]) by mx.google.com with ESMTPS id jc4sm15364489bkc.7.2012.02.25.11.33.18 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 25 Feb 2012 11:33:19 -0800 (PST) From: Mr Dandy To: Vlad Galu Date: Sat, 25 Feb 2012 23:33:36 +0400 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <201202252213.50760.subbsd@gmail.com> <371110A7FCE442FA8189BEDF90DF6451@dudu.ro> In-Reply-To: <371110A7FCE442FA8189BEDF90DF6451@dudu.ro> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201202252333.36403.subbsd@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: ipv6 host inaccessible via route -inteface without ndp pairs X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2012 19:33:22 -0000 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: 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?