From owner-freebsd-net@FreeBSD.ORG Sat May 2 23:00:00 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 10B8D1065672 for ; Sat, 2 May 2009 23:00:00 +0000 (UTC) (envelope-from aman.jassal@esigetel.fr) Received: from mail.esigetel.fr (venus.esigetel.fr [192.134.106.8]) by mx1.freebsd.org (Postfix) with ESMTP id 935658FC1B for ; Sat, 2 May 2009 22:59:59 +0000 (UTC) (envelope-from aman.jassal@esigetel.fr) Received: by mail.esigetel.fr (Postfix, from userid 65534) id 1B1E5108B8; Sun, 3 May 2009 00:43:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on venus.esigetel.avon X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=unavailable version=3.1.8 Received: from localhost (localhost [127.0.0.1]) by mail.esigetel.fr (Postfix) with ESMTP id 8B3B4108B7; Sun, 3 May 2009 00:43:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at esigetel.fr Received: from mail.esigetel.fr ([127.0.0.1]) by localhost (venus.esigetel.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id y1DSz3oXK7rZ; Sun, 3 May 2009 00:43:04 +0200 (CEST) Received: from webmail.esigetel.fr (neo.ecampus.avon [192.168.106.14]) by mail.esigetel.fr (Postfix) with ESMTP id 4EF1410872; Sun, 3 May 2009 00:43:04 +0200 (CEST) Received: from 86.212.66.201 by webmail.esigetel.fr with HTTP; Sun, 3 May 2009 00:43:04 +0200 (CEST) Message-ID: <52471.86.212.66.201.1241304184.squirrel@webmail.esigetel.fr> In-Reply-To: References: Date: Sun, 3 May 2009 00:43:04 +0200 (CEST) From: "JASSAL Aman" To: "Rommel Laranjo" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-net@freebsd.org Subject: Re: 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 23:00:00 -0000 Hello M.Laranjo The Kame stack for IPv6 should be working fine, whether you use stateless autoconfiguration or static configuration. Since you want to use static configuration, my suggestion would be to modify the /etc/rc.conf file so that your static configuration is loaded everytime at boot. That way, you don't have to suppress the autoconfigured address to reconfigure your static address afterwards. The lines you will need are : ipv6_enable="YES" ipv6_network_interface="em0" ipv6_ifconfig_em0="2001:db8:1234:abcd:20c:27ff:fe3d:63dd prefixlen 64" ipv6_defaultrouter="2001:db8:1234:abcd::1" This should work. Please try to ping6 your router to see if everything is working as it's supposed to. About your last question, I'm not 100% sure, but I don't think FreeBSD will autoconfigure a route if you just add a static ipv6 address on your interface... Unless you use a routing daemon like routed. Kind regards Aman Jassal Le Sam 2 mai 2009 21:59, Rommel Laranjo a écrit : > 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 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >