From owner-freebsd-net@FreeBSD.ORG Sat Feb 25 18:35:59 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 E442A106564A for ; Sat, 25 Feb 2012 18:35:59 +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 669C88FC15 for ; Sat, 25 Feb 2012 18:35:59 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so151445bkc.13 for ; Sat, 25 Feb 2012 10:35:58 -0800 (PST) Received-SPF: pass (google.com: domain of subbsd@gmail.com designates 10.204.129.196 as permitted sender) client-ip=10.204.129.196; Authentication-Results: mr.google.com; spf=pass (google.com: domain of subbsd@gmail.com designates 10.204.129.196 as permitted sender) smtp.mail=subbsd@gmail.com; dkim=pass header.i=subbsd@gmail.com Received: from mr.google.com ([10.204.129.196]) by 10.204.129.196 with SMTP id p4mr972029bks.21.1330194958287 (num_hops = 1); Sat, 25 Feb 2012 10:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=mKWh8dTv/iq+VoOKoO8BNST8GRpm9Gr3Dsv+m0NinIc=; b=tQYRHrJ/emr6g1dO9h3kZtkklpGHDsFmoMd0YWec+iSEm2NoHlNL49mZLLJrTUQE4p V0JJurT9eaHil/XB54u+6sMm+hdJf1ra1vXxK7r9cWVDX/RYI0WcgTqt7IJNpEPC7ihE 9auaOJkDT5XbGw6QsQ2913mhMRaTQ/0vo6KD0= Received: by 10.204.129.196 with SMTP id p4mr768143bks.21.1330193614820; Sat, 25 Feb 2012 10:13:34 -0800 (PST) Received: from gizmo.my.domain (nat140-249-205-109.tvoe.tv. [109.205.249.140]) by mx.google.com with ESMTPS id ey8sm15102453bkb.1.2012.02.25.10.13.32 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 25 Feb 2012 10:13:33 -0800 (PST) From: Mr Dandy To: freebsd-net@freebsd.org Date: Sat, 25 Feb 2012 22:13:50 +0400 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201202252213.50760.subbsd@gmail.com> Subject: 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 18:36:00 -0000 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 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 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