how: 2 NIC cards - 1 subnet
m.seaman at infracaninophile.co.uk
Wed May 26 12:57:56 BST 2004
Content-Type: text/plain; charset=us-ascii
On Wed, May 26, 2004 at 10:41:18AM +0100, tom wrote:
> (sorry if this is dumb, its my first on this list)
> I have freebsd box with 2 NIC cards:
> one for the WAN (ADSL);
> one for the LAN.
> I can:
> assign each NIC with a different subnet -
> NIC1 192.168.1.1 netmask 255.255.255.0
> NIC2 10.0.1.1 netmask 255.255.255.0
> I cant assign each within the same subnet -
> NIC2 192.168.1.2 netmask 255.255.255.0
> I can supply all the sysctl and rc.conf and kernel settings
> (ipfw is on, end enable gateway etc) but there might be a
> one liner that sends me on my way ?
> many thanks
If you're trying to setup your FreeBSD box as a "filtering bridge"
then actually, you only need one IP address which you assign to one of
your NICs, and leave the other one without an IP address. You can
actually make the whole thing work without assigning any IP numbers to
the NICs on the machine at all. (Although in that case, the box won't
be much use *except* as a filtering bridge).
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the Ukfreebsd