Thanks Mike! (and everyone else who replied!)
It's ALMOST working....  I've got my other machines coming up with network
access, but they don't seem to resolve DNS.  I tried assigning DNS servers
manually (the same ones that I use for my FreeBSD machine) (that led
them to time out) and i've tried
leaving them blank(instant failure).  Is there something else that I need
to set up?

Thanks guys-

On Fri, 31 Jan 2003, Mike Meyer wrote:

> In <188996853.1044039149@[]>, Thaddeus Quintin <[EMAIL PROTECTED]> typed:
> > 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...
> >
> > Where I get confused is how configure my network cards.  Do I need a new IP
> > prefix for the inner network?
> That's one way to solve it. You need two subnets.
> > If the FreeBSD is a gateway, technically each NIC is connected to a
> > different subnet, right?
> Right. In fact, FreeBSD gets upset if they aren't connected to
> different subnets.
> > The card that will connect to the hub will need a Static IP address,
> > since nothing is there to give an IP address.
> Right.
> > Does each NIC know of the other, or are the routing tables separate?
> NICs don't have routing tables. The system has a routing table, and
> knows about both nics.
> > 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.
> Call the dc0 side of the FreeBSD box subnet 0. Call the ep0 side
> subnet 1 . Let's use the same prefix (192.168) for all the subnets,
> and set up for 256 subnets of 256 hosts.
> The dlink is, so it's already right for subnet 0. Give the
> dc0 the IP address of Or let dchp assign it to any value
> on
> Ep1 is on subnet 1, so lets make it host 1, and give it the address of
> The other hosts on subnet 1 must have addresses on
> 192.168.1. Their default router will be
> The netmask for dc0, ep1 and all hosts on subnet 1 is
> The dlink will need to know that the route to 192.168.1 is via
> Without knowing details on it, I can't say how to set
> things up to give it that information.
> I also note that my dlink - a cable/DSL router - only understands
> 192.168.0 addresses. If that's the case, you'll have to subnet
> 192.168.0, not 192.168. as I just demonstrated. That would look like
> dc0 being, ep1 being, other on subnet 1
> having last bytes greater than 130, and everybody having a netmask of
>       <mike
> --
> Mike Meyer <[EMAIL PROTECTED]>  
> Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to