From owner-freebsd-net@FreeBSD.ORG Sat May 2 20:30:36 2009 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 21208106568D for ; Sat, 2 May 2009 20:30:36 +0000 (UTC) (envelope-from rslaranjo@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id D143D8FC15 for ; Sat, 2 May 2009 20:30:35 +0000 (UTC) (envelope-from rslaranjo@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so2307026qwe.7 for ; Sat, 02 May 2009 13:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=65lVaWqMlbtV8mKkuP5LND8TlnJ9VQtTSiC5Zc+1cM8=; b=eUeLF+0Z8hhk1WQeTE6xL9jC9/nDKGu39+QbP9qOPuEc0iOh1MrsvvH4ibxX8IEd16 8j3u281NaACqaSS0HJWsBM2kWWr+0gmbkhJxL8EgClmtxvmjMbc32EZ9vUFtJEdsudT6 twkvrLhTpU1xvx/QUYay4UhN9on+0paMOcWbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Cp+MaZGcbNANgF6ayuvbTCaImaY4AqvKX8whGqKS285y+0riEjwTRXWHy99p/x62oL dP7jueq3GfWCyap503OwwwGlW3K65+D/bSOs0EgIs21hf04BvR0fgjqhLiXtC1mCTxaC wo8zUOY+8xJEa6qA6o6unW5xQRpQH54XRmJo0= MIME-Version: 1.0 Received: by 10.220.93.10 with SMTP id t10mr6921369vcm.107.1241294364692; Sat, 02 May 2009 12:59:24 -0700 (PDT) Date: Sun, 3 May 2009 03:59:24 +0800 Message-ID: From: Rommel Laranjo To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Freebsd failed to create routing prefix 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, 02 May 2009 20:30:36 -0000 Hello everyone, I need help. My box(Machine1) by default will perform IPv6 stateless autoconfiguration and I need to change this autoconfigured address to static manually without restarting. Here are the steps I follow but I sure I missed something cause I was unsuccessful of doing it. 1. I disabled sysctl knob to stop receiving rtadv # sysctl -w net.inet6.ip6.accept_rtadv=0 2. I then removed the autoconfigured ipv6 address from the interface # ifconfig em0 inet6 2001:db8:1234:abcd:20c:27ff:fe3d:63dd delete 3. I removed the default ipv6 route since I will replace with another route # route delete -inet6 default 4. I then added the autoconfigured ipv6 address back to the interface to make it static # ifconfig em0 inet6 2001:db8:1234:abcd:20c:27ff:fe3d:63dd prefixlen 64 up 5. I added the new default ipv6 route # route add -inet6 default 2001:db8:1234:abcd::1 At this point I pinged 2001:db8:1234:abcd:20c:27ff:fe3d:63dd from another IPv6 box (Machine2) with IPv6 address of the same prefix (2001:db8:1234:abcd:215:d3ff:fe4f:acaf) but with no success. But if I ping6 from Machine2 to my router 2001:db8:1234:abcd::1 I am successfull. I tried to check IPv6 route information from Machine1 thru netstat -rnf inet6 but have not found this entry: 2001:db8:1234:abcd::/64 link#1 UC em0 I hope someone could shed light on how to put this route into my ipv6 routing table. Is this a bug in FreeBSD not to automatically add a routing prefix after changing from IPv6 stateless autoconfiguration to static IPv6 address ? Thanks, Romskie