From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 22 15:14:40 2009 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52900106566B for ; Wed, 22 Apr 2009 15:14:40 +0000 (UTC) (envelope-from rslaranjo@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 0E8358FC1D for ; Wed, 22 Apr 2009 15:14:39 +0000 (UTC) (envelope-from rslaranjo@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so8962yxb.13 for ; Wed, 22 Apr 2009 08:14:39 -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; bh=XSiByxBX6/G7ymD91EndYIqx/Vqc2UMg7TxyPzx4vI4=; b=Fz+sTvIoFWN9TKzeD100Vjf4c4P7oyQxfTDkUN82vzIWKuthMvrpwM324y07/Q2RxW H3FZw9JYb63kPD0mfi0z4nuC4DP4NAdIsHjRHvXhkyiyCwiEDceW8v33SSkrF5EP6tKJ Khb/u43zKyCwOfMxXKnJBMHExdXEn4soOX1Zs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vjxymIgUfSmdNyXWE2A9Eod3b46l8CwaKl0RCfjD4fggO96Z2haW2rn4NNz5duAD2k 5mZVwkk4S/mW/4TWrAP2GFaGaIddbI0GJMvWug8aaEx+Y4Sa5mLKjo3G+xI4Db9sMAjz y99Y0J120lXgOG+m+ShM7slzXQFgBJ2N+7zfw= MIME-Version: 1.0 Received: by 10.100.92.17 with SMTP id p17mr11018473anb.138.1240411602464; Wed, 22 Apr 2009 07:46:42 -0700 (PDT) Date: Wed, 22 Apr 2009 22:46:42 +0800 Message-ID: From: Rommel Laranjo To: freebsd-bugs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Bug: Changing Stateless Autoconfigured IPv6 Address to Static manually X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 15:14:40 -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 now success. But if I ping6 from Machine2 to may 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 automatically add this route after adding an IPv6 address with this prefix? Thanks, Romskie