From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 17:22:44 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3F8716A4CE for ; Tue, 1 Jun 2004 17:22:44 -0700 (PDT) Received: from davidfuchs.ca (domains1.davidfuchs.ca [216.113.197.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F0C943D45 for ; Tue, 1 Jun 2004 17:22:44 -0700 (PDT) (envelope-from david@davidfuchs.ca) Received: from [24.82.197.178] (helo=[127.0.0.1]) by davidfuchs.ca with asmtp (Exim 4.30) id 1BVJWP-000EpZ-Pv for freebsd-questions@freebsd.org; Tue, 01 Jun 2004 17:22:21 -0700 Message-ID: <40BD1DD2.5030806@davidfuchs.ca> Date: Tue, 01 Jun 2004 17:22:42 -0700 From: David Fuchs User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Static route between two machines. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 00:22:44 -0000 Hello, In a little test scenario to learn more about routing, I've come up with the folling setup consisting of two machines, directly connected via two separate interfaces on each machine: 172.16.100.10 <-------> 172.16.100.25 (fxp0) (ed0) Host ABC Host XYZ (fxp1) (ed1) 192.168.100.10 <------> 192.168.100.25 What I'm trying to do, is force all network traffic through the interfaces on the 172.16.100/24 subnet, as if the link between the two hosts over the 192.168.100/24 subnet did not exist. For example, if I were logged into host ABC and attempted to ping 192.168.100.25, I would like the echo request to be sent via fxp0 (and have the reply come back on fxp0, of course). I've tried doing this by setting up static routes on each host such as: Host ABC: route add -host 192.168.100.25 -interface fxp0 Host XYZ: route add -host 192.168.100.10 -interface ed0 The commands succeed, but the resulting routes don't work as I expected. If I tell tcpdump to listen for ICMP and try pinging 192.168.100.25 from host ABC, tcpdump shows that fxp0 (172.16.100.10) did, in fact, receive an echo request, but ed0 on the other end (also running tcpdump) never picks up that request. I'm not sure if the traffic is being dropped by fxp0 or not - tcpdump says that a request was made, after all, so should I assume this was sent over the wire as well? ed0 certainly never gave that impression. So this is where I'm stuck. Any help is greatly appreciated. If my question doesn't have an easy answer, would someone mind pointing me in the right direction? Thank-you, -David