From owner-freebsd-net@FreeBSD.ORG Sat Feb 25 19:15:29 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 ADC3B106564A for ; Sat, 25 Feb 2012 19:15:29 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 362D38FC08 for ; Sat, 25 Feb 2012 19:15:28 +0000 (UTC) Received: by eekd17 with SMTP id d17so785252eek.13 for ; Sat, 25 Feb 2012 11:15:28 -0800 (PST) Received-SPF: pass (google.com: domain of dudu@dudu.ro designates 10.14.99.1 as permitted sender) client-ip=10.14.99.1; Authentication-Results: mr.google.com; spf=pass (google.com: domain of dudu@dudu.ro designates 10.14.99.1 as permitted sender) smtp.mail=dudu@dudu.ro; dkim=pass header.i=dudu@dudu.ro Received: from mr.google.com ([10.14.99.1]) by 10.14.99.1 with SMTP id w1mr4398851eef.49.1330197328096 (num_hops = 1); Sat, 25 Feb 2012 11:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dudu.ro; s=google; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:content-transfer-encoding :content-disposition; bh=FL96WquT8QqOSSOWWBj7jmiSkwEnX6MdsprbveyadNQ=; b=ceRzYeOfPUTMwER2VfBfP2QOpBTR0vxwk3lAoy0FCKokRsrGFsF17oIq3Sr01i659A 8/d/CUtj9Sbnde6mVKiuu+H6QV6kRKAM4X3COAbQioUZpNN7NGLfZJqr0fRvKyoN9Ku4 NUczOAjZL/41RoRhCBdYqdYzoLObz/Vp7wQa8= Received: by 10.14.99.1 with SMTP id w1mr3261990eef.49.1330195676272; Sat, 25 Feb 2012 10:47:56 -0800 (PST) Received: from LesPaul.local ([82.76.253.74]) by mx.google.com with ESMTPS id u11sm27451133eeb.1.2012.02.25.10.47.53 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 25 Feb 2012 10:47:55 -0800 (PST) Date: Sat, 25 Feb 2012 18:47:50 +0000 From: Vlad Galu To: Mr Dandy Message-ID: <371110A7FCE442FA8189BEDF90DF6451@dudu.ro> In-Reply-To: <201202252213.50760.subbsd@gmail.com> References: <201202252213.50760.subbsd@gmail.com> X-Mailer: sparrow 1.5 (build 1043.1) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Gm-Message-State: ALoCoQkTDx/IXyCj32+ZSRi6bUVxMy3R+vWjatpJ3Vkys2Z1n5DAHQiLXZwiE9GuluBrTOPSRygG 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:15:29 -0000 -- Good, fast and cheap: pick any two. On Saturday, February 25, 2012 at 6:13 PM, Mr Dandy wrote: > Hi > > I play with IPv6 on the Hezner hosting. According to > http://wiki.hetzner.de/index.php/Zusaetzliche_IP-Adressen/en information my > rc.conf have (FreeBSD 9.0-RELEASE/amd64): > --- > ipv6_activate_all_interfaces="YES" > ipv6_static_routes="hetzner" > ipv6_route_hetzner="2a01:4f8:61:50c0::/59 -iface re0" > ifconfig_re0_ipv6="inet6 2a01:4f8:61:50c2::13/64" > ipv6_defaultrouter="2a01:4f8:61:50c0::1" > ipv6_gateway_enable="YES" > -- > > Pictures after boot: > > # ifconfig re0 inet6 > re0: flags=8843 metric 0 mtu 1500 > options=389b > inet6 2a01:4f8:61:50c2::13 prefixlen 64 > inet6 fe80::224:21ff:fe2c:6943%re0 prefixlen 64 scopeid 0x1 > nd6 options=21 > > # route get -inet6 2a01:4f8:61:50c0::1 > route to: 2a01:4f8:61:50c0::1 > destination: 2a01:4f8:61:50c0:: > mask: ffff:ffff:ffff:ffe0:: > interface: re0 > flags: > recvpipe sendpipe ssthresh rtt,msec mtu weight expire > 0 0 0 0 1500 1 0 > > # route get -inet6 default > route: writing to routing socket: No such process > > # ping6 -c1 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 > > --- 2a01:4f8:61:50c0::1 ping6 statistics --- > 1 packets transmitted, 0 packets received, 100.0% packet loss > > - is inaccessible. > > This situation changes when ip/mac pairs already presents in NDP list (by ndp > -s pairs or static_ndp_pairs in /etc/rc.conf) > > # ndp -s 2a01:4f8:61:50c0::1 00:26:88:75:ed:06 > > ( I took MAC by registered the my ip in /59 network and touching > 2a01:4f8:61:50c0::1 by ping6 ) > > # route add -inet6 -host 2a01:4f8:61:50c0::/59 -iface re0 > add net 2a01:4f8:61:50c0::/59: gateway re0 > > # ping6 -c1 2a01:4f8:61:50c0::1 > PING6(56=40+8+8 bytes) 2a01:4f8:61:50c2::13 --> 2a01:4f8:61:50c0::1 > 16 bytes from 2a01:4f8:61:50c0::1, icmp_seq=0 hlim=64 time=2.341 ms > > --- 2a01:4f8:61:50c0::1 ping6 statistics --- > 1 packets transmitted, 1 packets received, 0.0% packet loss > round-trip min/avg/max/std-dev = 2.341/2.341/2.341/0.000 ms > > # route add -inet6 default 2a01:4f8:61:50c0::1 > add net default: gateway 2a01:4f8:61:50c0::1 > > # ping6 -c1 www.freebsd.org (http://www.freebsd.org) > PING6(56=40+8+8 bytes) 2a01:4f8:61:50c2::13 --> 2001:4f8:fff6::22 > 16 bytes from 2001:4f8:fff6::22, icmp_seq=0 hlim=54 time=163.879 ms > > --- red.freebsd.org (http://red.freebsd.org) ping6 statistics --- > 1 packets transmitted, 1 packets received, 0.0% packet loss > round-trip min/avg/max/std-dev = 163.879/163.879/163.879/0.000 ms > > All fine while ndp have cache: > > # ndp -a > Neighbor Linklayer Address Netif Expire S > Flags > fe80::226:88ff:fe75:ed06%re0 00:26:88:75:ed:06 re0 23h52m6s S R > 2a01:4f8:61:50c0::1 00:26:88:75:ed:06 re0 23h59m58s S R > 00:24:21:2c:69:43 re0 permanent R > fe80::224:21ff:fe2c:6943%re0 00:24:21:2c:69:43 re0 permanent R > > # ndp -d 2a01:4f8:61:50c0::1 > 2a01:4f8:61:50c0::1 (2a01:4f8:61:50c0::1) deleted > > # ping6 -c1 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 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. Also, see http://social.bitmand.com/post/1168584251/hetzner-freebsd-and-ipv6.