From owner-freebsd-stable@FreeBSD.ORG Thu Dec 24 08:38:08 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B2B9106568B; Thu, 24 Dec 2009 08:38:08 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-px0-f190.google.com (mail-px0-f190.google.com [209.85.216.190]) by mx1.freebsd.org (Postfix) with ESMTP id 404178FC08; Thu, 24 Dec 2009 08:38:08 +0000 (UTC) Received: by pxi28 with SMTP id 28so5331722pxi.7 for ; Thu, 24 Dec 2009 00:38:07 -0800 (PST) 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=caedL7hv6QsAGepQhqt5W31GLnQoWkmroQhyBxyZe7U=; b=VYk7Fk55ROIbxpOC2K7V2BL0Y0I9NinZKPNjXL+acLGYd1A3qpgQI6KnpP+XlL8ENQ /fekRSdh5wod6bL4U1NATZoUnM8lq7sPSIkyb2lDl+VvATSBaVVVdQEukw8Bt+cKmWTU u41F+p92m0iln1hBU8TJ8WwiluX7EdZ6bx7KY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ngeM11l19XDpExuTOiHnFd3NbjO8AIBEXnzXaAGb8LBC/XQ6iVS/0+qn/aoVy8wyWE LmbUgXfrRfwdOdOvPbqPRq9vWoOwHdmCgc8lyedOmbsaE0xFvWb/DF/rJQOlhdQr/VAC FY2iIL1aMq4GghUzrGW5Z83d7stcuFKiPMBcs= MIME-Version: 1.0 Received: by 10.114.54.12 with SMTP id c12mr7741064waa.81.1261643887828; Thu, 24 Dec 2009 00:38:07 -0800 (PST) Date: Thu, 24 Dec 2009 00:38:07 -0800 Message-ID: From: Xin LI To: FreeBSD Stable , freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: Subject: Routing question (GRE packet vs normal traceroute)? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 08:38:08 -0000 Hi, A friend of mine has encountered some problem in his setup which consists a pair of GRE peer, one running on OpenBSD and another running FreeBSD 7.2-RELEASE; with 7.2-STABLE, there is no improvement over the situation. The problem we have observed seems to be related to GRE packet not being routed as observed, here is some details: - The FreeBSD box has one network interface connected to two (2) upstream network, with different IP and does not belong to the same subnet, say, one is 1.2.3.4/24 and another is 5.6.7.8/24 - The default gateway can be reached through the first IP address bound to the network interface; - An explicit route has been configured to the OpenBSD host, the gateway being used can be reached directly via the secondary (aliased 5.6.7.8/24) IP. - Both the default gateway and the explicit host route can reach the OpenBSD route. The problem they had is, while traceroute to the OpenBSD host can give the desired result, however, packets that is supposed to be transferred through the GRE tunnel, while they will be encapsulated into a GRE packet, the GRE packet itself won't go to the explicit host route, but end up going to the default gateway. The friend has configured his switch to "bounce" the packet back to the server by configuring a host route on L3 switch, and it seems that the FreeBSD box is able to route the GRE packet to its desired gateway this time. Any suggestions? Cheers, -- Xin LI http://www.delphij.net