From owner-freebsd-net@FreeBSD.ORG Sat Mar 5 19:18:10 2011 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 39749106564A for ; Sat, 5 Mar 2011 19:18:10 +0000 (UTC) (envelope-from fredan@fredan.se) Received: from mail.fredan.se (mail.fredan.se [77.105.235.102]) by mx1.freebsd.org (Postfix) with ESMTP id 00D198FC13 for ; Sat, 5 Mar 2011 19:18:09 +0000 (UTC) Received: from [77.105.232.43] (port=53489 helo=fredan-pc.localnet) by mail.fredan.se with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1PvwS5-00047P-LR for freebsd-net@freebsd.org; Sat, 05 Mar 2011 19:43:41 +0100 From: fredrik danerklint Organization: fredan To: FreeBSD Net Date: Sat, 5 Mar 2011 19:43:41 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.35-27-generic; KDE/4.6.0; x86_64; ; ) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201103051943.41917.fredan@fredan.se> Subject: ifconfig lo1 down 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, 05 Mar 2011 19:18:10 -0000 Hi, I would like to know what is the differents between ip4 and ip6 for this command. First: #ifconfig lo1 lo1: flags=8049 metric 0 mtu 16384 options=3 inet xx.xx.xx.2 netmask 0xffffffff inet6 2a03:xxxx:xxxx::xxxx:xx02 prefixlen 128 nd6 options=3 $ ping xx.xx.xx.2 PING xx.xx.xx.2 (xx.xx.xx.2): 56 data bytes 64 bytes from xx.xx.xx.2: icmp_seq=0 ttl=64 time=0.012 ms 64 bytes from xx.xx.xx.2: icmp_seq=1 ttl=64 time=0.010 ms ^C and $ ping6 2a03:xxxx:xxxx::xxxx:xx02 PING6(56=40+8+8 bytes) 2a03:xxxx:xxxx::xxxx:xx02 --> 2a03:xxxx:xxxx::xxxx:xx02 16 bytes from 2a03:xxxx:xxxx::xxxx:xx02, icmp_seq=0 hlim=64 time=0.053 ms 16 bytes from 2a03:xxxx:xxxx::xxxx:xx02, icmp_seq=1 hlim=64 time=0.032 ms ^C Now we run this command: # ifconfig lo1 down and trying to ping again: $ ping xx.xx.xx.2 PING xx.xx.xx.2 (xx.xx.xx.2): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ^C --- xx.xx.xx.2 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss works as expected (and this is what I want) but this command, however: $ ping6 2a03:xxxx:xxxx::xxxx:xx02 PING6(56=40+8+8 bytes) 2a03:xxxx:xxxx::xxxx:xx02 --> 2a03:xxxx:xxxx::xxxx:xx02 16 bytes from 2a03:xxxx:xxxx::xxxx:xx02, icmp_seq=0 hlim=64 time=0.048 ms 16 bytes from 2a03:xxxx:xxxx::xxxx:xx02, icmp_seq=1 hlim=64 time=0.033 ms 16 bytes from 2a03:xxxx:xxxx::xxxx:xx02, icmp_seq=2 hlim=64 time=0.032 ms ^C --- 2a03:xxxx:xxxx::xxxx:xx02 ping6 statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.032/0.038/0.048/0.007 ms My question is why is it not the same behavior of ip6 as of ip4? -- //fredan