how: 2 NIC cards - 1 subnet: needed NIC1 on WAN though ...

tom tomq at myrealbox.com
Wed May 26 15:21:02 BST 2004


thanks. I had to have 2 NIC cards
(although I didn't explain why - sorry),
because the WAN NIC is going thru a
wireless ethernet bridge which seems to reset each time
it sees a different MAC address.

cheers
 tom

Tom McHugh
MQL
tel: 07740 096 862

-----Original Message-----
From: freebsd-users-admin at uk.freebsd.org
[mailto:freebsd-users-admin at uk.freebsd.org] On Behalf Of Matthew Seaman
Sent: 26 May 2004 12:58
To: tom
Cc: freebsd-users at uk.freebsd.org
Subject: Re: how: 2 NIC cards - 1 subnet

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
>  tom

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).

See:

 
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/filtering-bridges/articl
e.html

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK





More information about the Ukfreebsd mailing list