From owner-freebsd-questions@FreeBSD.ORG Sat Jan 12 05:00:34 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BD04C6AB for ; Sat, 12 Jan 2013 05:00:34 +0000 (UTC) (envelope-from freebsd@pki2.com) Received: from btw.pki2.com (btw.pki2.com [IPv6:2001:470:a:6fd::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7F77E375 for ; Sat, 12 Jan 2013 05:00:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by btw.pki2.com (8.14.5/8.14.5) with ESMTP id r0C50S6U025226 for ; Fri, 11 Jan 2013 21:00:28 -0800 (PST) (envelope-from freebsd@pki2.com) Subject: Kernel decision logic on ICMP redirect From: Dennis Glatting To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="ISO-8859-1" Date: Fri, 11 Jan 2013 21:00:28 -0800 Message-ID: <1357966828.85287.10.camel@btw.pki2.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-yoursite-MailScanner-Information: Dennis Glatting X-yoursite-MailScanner-ID: r0C50S6U025226 X-yoursite-MailScanner: Found to be clean X-MailScanner-From: freebsd@pki2.com X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2013 05:00:34 -0000 I have a network: NetA - GW1 --- GW2 - NetB |- GW3 - NetC HostFoo - | GW1 is a Cisco router running OSPF. GW2 is FreeBSD 9.1 running OSPF via Quagga, and is forwarding. GW3 is FreeBSD 9.1 connected to another network and is forwarding. GW2 has a static route pointing to NetC. HostFoo has a default route (only) to GW2 and can ping a host on NetC because it gets an ICMP redirect from GW2 (FreeBSD) to GW3. However, if HostFoo pings a a host on NetA it DOES NOT get a ICMP redirect from GW2. Looking through the kernel code, which is where I need help, it seems routes learned DYNAMIC, in this case GW2 via OSPF from GW1, are not routes for which redirects will be generated by GW2. Is that true? What is it I need to do to convenience GW2 to generate redirects for learned routes?