From owner-freebsd-net@FreeBSD.ORG Thu Sep 7 14:10:33 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B20416A4E6 for ; Thu, 7 Sep 2006 14:10:33 +0000 (UTC) (envelope-from julienabeille@yahoo.fr) Received: from web26604.mail.ukl.yahoo.com (web26604.mail.ukl.yahoo.com [217.146.176.54]) by mx1.FreeBSD.org (Postfix) with SMTP id 27D1043D4C for ; Thu, 7 Sep 2006 14:10:20 +0000 (GMT) (envelope-from julienabeille@yahoo.fr) Received: (qmail 92001 invoked by uid 60001); 7 Sep 2006 14:10:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=eGyDhNvA9WPpsAUr/Gt/iw5ROYRd3eLvV661mRzK4NzDzdNRnOXDIy12z1U4Iqz5JssztARqBDPblwubwlPp1jXH1IOTLG57poK+EzwTd3I+flrXzFJSJ95GMNJ+P1SBgqA8hgSJ1RfAFIS5dQa377VM8O/opkWIfjRm0KiJG+I= ; Message-ID: <20060907141019.91998.qmail@web26604.mail.ukl.yahoo.com> Received: from [195.37.70.39] by web26604.mail.ukl.yahoo.com via HTTP; Thu, 07 Sep 2006 14:10:19 GMT Date: Thu, 7 Sep 2006 14:10:19 +0000 (GMT) From: =?iso-8859-1?q?Julien=20Abeill=E9?= To: John Hay , freebsd-net@freebsd.org In-Reply-To: <20060907100944.GA68587@zibbi.meraka.csir.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re : ipv6 host routes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?iso-8859-1?q?Julien=20Abeill=E9?= List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2006 14:10:33 -0000 Hi John, I use v6 hosts routes on FreeBSD 4.11. The main purpose for me is through i= pv6 in ipv6 tunnels, so it is different. I tried to install host routes as you do:=20 In your case rtr2 and rtrg seem to be on the same prefix. In this case the = prefix route is enough, but if you want to add a host route, indeed the rou= te command does not work: If i do not add a host route, but use the prefix route, the machine sending= traffic (rtrg) will make a neighbor sollicitation, then get a neighbor adv= , and add the entry in the routing table with the correct interface and the= correct gateway MAC address (rtr2 MAC address). If i add a host route, I have the same entry excepty that the gateway MAC a= ddress is my MAC address (rtrg) To solve that, I do not add a route with route, but: add the v6 address of = the destination in /etc/hosts, then: ndp -s . Then the route is correctly a= dded to the routing table. I hope it works for you and you have the MAC address of the destination but= still I find the behavior of the route command in this case strange. Best regards, Julien =20 ----- Message d'origine ---- De : John Hay =C0 : freebsd-net@freebsd.org Cc : gnn@freebsd.org Envoy=E9 le : Jeudi, 7 Septembre 2006, 12h09mn 44s Objet : Re: ipv6 host routes Ok, I still have no joy adding an IPv6 route. Can anybody tell me what I do wrong? What I understand from the route(8) man page is that this command should work: route add -inet6 rtr2 rtrg -interface Where rtr2 is the destination address and rtrg is my address on the interface that rtr2 is connected to. I have the following lines in my /etc/hosts file: 2001:4200:7000:15:202:6fff:fe22:9547 rtrg 2001:4200:7000:15:202:6fff:fe41:1927 rtr2 When I do the route add command the kernel prints this message: nd6_rtrequest: bad gateway value: ath0 Ifconfig of the interface looks ok to me:=20 ifconfig ath0 ath0: flags=3D8843 mtu 1500 inet6 fe80::202:6fff:fe22:9547%ath0 prefixlen 64 scopeid 0x3 inet6 2001:4200:7000:15:202:6fff:fe22:9547 prefixlen 64 inet6 2001:4200:7000:15:: prefixlen 64 anycast ether 00:02:6f:22:95:47 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect= ) status: associated ssid koppiemesh channel 149 bssid 02:02:6f:22:95:47 authmode OPEN privacy OFF txpowmax 24 bmiss 7 burst bintval 100 After the route add, this new entry arrived in the routing table according to: netstat -rnf inet6 2001:4200:7000:15:202:6fff:fe41:1927 2001:4200:7000:15:202:6fff:fe22:9547 U= HS ath0 I looked with ndp -a, but nothing was added there. Anybody got any ideas? This is the last part of getting olsrd to work properly on FreeBSD using IPv6. John --=20 John Hay -- John.Hay@meraka.csir.co.za / jhay@FreeBSD.org _______________________________________________ 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"