From owner-freebsd-net@FreeBSD.ORG Sun May 11 19:52:14 2008 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 E17A01065670 for ; Sun, 11 May 2008 19:52:14 +0000 (UTC) (envelope-from jay@jcornwall.me.uk) Received: from vps1.jcornwall.me.uk (vps1.jcornwall.me.uk [193.227.111.74]) by mx1.freebsd.org (Postfix) with ESMTP id AC32C8FC13 for ; Sun, 11 May 2008 19:52:14 +0000 (UTC) (envelope-from jay@jcornwall.me.uk) Received: from [82.70.152.17] (cobra.home.jcornwall.me.uk [82.70.152.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by vps1.jcornwall.me.uk (Postfix) with ESMTP id C2FC95201CF; Sun, 11 May 2008 20:54:05 +0100 (BST) Message-ID: <48274E6D.9060704@jcornwall.me.uk> Date: Sun, 11 May 2008 20:52:13 +0100 From: "Jay L. T. Cornwall" User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: "H.fazaeli" References: <4825EF8D.1050304@jcornwall.me.uk> <4826EB42.104@sepehrs.com> In-Reply-To: <4826EB42.104@sepehrs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: if_bridge with two subnets 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: Sun, 11 May 2008 19:52:15 -0000 H.fazaeli wrote: > The bridge works as it should: It receives packets from > XX.XX.XXX.YYY on the interface connected to the switch, and > forwards them on the interface connected to the gateway. > > The problem is that forwarding between subnets is the responsibility > of your switch. The switch does its job, but since the two clients are > not on the same IP subnet, they can not reach each other w/o the help of > an intermediate router. Perhaps I am mixing up two separate networking concepts. On a machine configured to act as a gateway, I would expect a single interface with more than one subnet to route packets correctly across those subnets. That may not be how it works in practice. If it does not work, I would question why not. If it does work then I would expect the same behaviour on each of a bridge's constituent interfaces? -- Jay L. T. Cornwall http://www.jcornwall.me.uk/