bridge with access on both interfaces

Michael W. Oliver michael at gargantuan.com
Tue Dec 23 10:23:57 PST 2003


On Wed, Dec 24, 2003 at 04:38:32AM +1100, Ian Smith wrote:
> Hello net crew,

[...]

> In short, ifconfig appears unwilling to have two NICs covering the same
> /24.  Can this be set up?  I'm also at a bit of a loss with the routing,
> so inside packets to the bridge box (ie unbridged packets) are responded
> to on the same interface, and outside unbridged packets go only to/from
> the gw.  Some tcpdumps on both in and outside interfaces suggest an ARP
> response problem also, perhaps; no responses on the inside iface at all.

You can't have two interfaces within the same IP subnet, with the same
mask, on one box.  What you can do is configure the primary interface
with the /24 mask, and then configure the other interface with a /32
mask.  This is the same process that you would use to put two (or more)
addresses from the same IP subnet on a single interface.

Regarding the other stuff, if a particular service is configured to
listen on any interface (noted by the "*.*" under "Local Address" in a
netstat listing), then it should be available via either interface of
the bridge, assuming that the bridge is configured correctly (sysctl's
and such).

What are your /etc/rc.conf settings with regards to the bridge
configuration?

-- 
Mike
perl -e 'print unpack("u","88V]N=&%C=\"!I;F9O(&EN(&AE861E<G,*");'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20031223/d83b1f8f/attachment.bin


More information about the freebsd-net mailing list