From owner-freebsd-net@FreeBSD.ORG Mon May 4 00:22:48 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 AE3091065694 for ; Mon, 4 May 2009 00:22:48 +0000 (UTC) (envelope-from rslaranjo@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 666B88FC1D for ; Mon, 4 May 2009 00:22:48 +0000 (UTC) (envelope-from rslaranjo@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so2661493qwe.7 for ; Sun, 03 May 2009 17:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hiANVi8h5eooCtU/upqsagTYn+ycY+/yqAOIgp6nHfo=; b=S0vSRVRpZ/FGw+EUhCw9O4fjwZ/J3k7I9gWc4Lm5qSnx0mrUXLVIlQaAF+slEKaapk hi8ARSGvKD7V5YTig4bKymodZbap7A0dGuIXaLE11u0h3AM22gFtCEX1nSpNGuLELY55 3/fEkVYf354JA/gSICERWkToq5Q/2pQscOv/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=x1pA0QITjq143J1EQarZvnlC+SOHTGtFiKnB67WATTBxLJlQ/4gOcH4ieVU0Y7vgtP qtk/gIJv7wjh/VZGn6o2CVhXK9Dazito1rxo/LpE393m2eBTZc3LUkwRDZ3hBxVTw5Z0 sRQSqHHW77QPPToJOn+o3s1cnUxBmm9YDaFMw= MIME-Version: 1.0 Received: by 10.220.97.213 with SMTP id m21mr8447225vcn.27.1241396567442; Sun, 03 May 2009 17:22:47 -0700 (PDT) In-Reply-To: <52471.86.212.66.201.1241304184.squirrel@webmail.esigetel.fr> References: <52471.86.212.66.201.1241304184.squirrel@webmail.esigetel.fr> Date: Mon, 4 May 2009 08:22:47 +0800 Message-ID: From: Rommel Laranjo To: JASSAL Aman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Mon, 04 May 2009 00:22:49 -0000 Hello Jassal, Yes you are right, the problem will not occur if you put the ipv6 address at rc.conf and reboot. But, the problem I describe will occur only when if you change from Stateless IPv6 autoconfiguration to Static, without rebooting the machine. On Sun, May 3, 2009 at 6:43 AM, JASSAL Aman wrote= : > 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 autoconfigure= d > address to reconfigure your static address afterwards. > > The lines you will need are : > > ipv6_enable=3D"YES" > ipv6_network_interface=3D"em0" > ipv6_ifconfig_em0=3D"2001:db8:1234:abcd:20c:27ff:fe3d:63dd prefixlen 64" > ipv6_defaultrouter=3D"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 =E9crit : >> 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 su= re >> 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=3D0 >> >> >> 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:63d= d >> 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 anothe= r >> =A0IPv6 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 =A0 =A0 =A0 =A0 =A0 link#1 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0UC >> 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 routi= ng >> prefix after changing from IPv6 stateless autoconfiguration to static IP= v6 >> 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" >> >> > > >