Subject: Re: NAT, DHCP, and Cable Modems
To: Jeff Flowers <jeffrey@jeffreyf.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 06/10/2002 22:30:02
On Mon, Jun 10, 2002 at 04:10:41PM +0000, Jeff Flowers wrote:
> I currently connect to the Internet via a cable modem using DHCP. My
> wife's computer uses a modem and connects via Earthlink. Because of
> excessive telephone line noise, she wants me to hook her computer up
> to the cable modem so that she will have a better connection.
> 
> I know that I could simply get a Linksys route/hub but it seems to me
> that it would be cheaper (and more fun!) to get a couple of extra
> network cards and have my NetBSD box supply her access using NAT.
> 
> I know that none of this is original and I have a basic understanding
> of what NAT does. What I am not sure of is how this will all play out
> with DHCP in the mix, since I do not have a static IP address. Is
> there anything special to do in this kind of situation?

Not really, expect maybe resync ipf (ipf -y) each time you get an address.
dhclient should have hooks to run user commands on such events.

> 
> Also, how long can a crossover ethernet cable be?

In full-duplex I've used one more than 100m long at 100Mbs. There was a cisco
at each end; you may have issue if you use 2 cheap NICs ...

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--