Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2003 18:52:30 -0500
From:      Thaddeus Quintin <tq101100@ohio.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   A twisted home network
Message-ID:  <188996853.1044039149@[192.168.0.2]>
In-Reply-To: <3E3B05AD.90805@attbi.com>
References:   <3E3B05AD.90805@attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
There's plenty of information on how to install two network cards (done 
that), how to enable a FreeBSD box to run as a gateway, do NAT, DHCP, etc. 
However, I'm having a mental block with how the cards should be configured.

Here's how I want my network setup-
CABLE MODEM-> D-link DI-701 Residential Gateway->
FreeBSD NIC dc0 -> FreeBSD NIC ep1 -> hub -> other computers...

I'd like to leave the D-Link in place, since it has a built-in firewall and 
I'm not ready to start testing out my rules for ipfw.  The D-Link assigns 
IP addresses Dynamically, or I can specify them statically.  By default, 
the D-link has an IP address of 192.168.0.1 and the IP pool goes up from 
there.

Where I get confused is how configure my network cards.  Do I need a new IP 
prefix for the inner network?  If the FreeBSD is a gateway, technically 
each NIC is connected to a different subnet, right?  The card that will 
connect to the hub will need a Static IP address, since nothing is there to 
give an IP address.  Does each NIC know of the other, or are the routing 
tables separate?

This seems like a simple problem, but I've been scouring the handbook, 
freebsd diary, and the man pages, but I can't find any good examples.

Thanks a bunch!
Thaddeus

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?188996853.1044039149>