if_bridge with two subnets

Jay L. T. Cornwall jay at jcornwall.me.uk
Sun May 11 19:52:15 UTC 2008


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/


More information about the freebsd-net mailing list