FreeBSD routing between 2 interfaces

Greg 'groggy' Lehey grog at FreeBSD.org
Tue Sep 30 19:00:46 PDT 2003


On Tuesday, 30 September 2003 at 21:33:43 -0400, freebsd at killersolutions.com wrote:
> Dear FreeBSD users,
>
> I urgenly need to connect 192.168.1.* network to the internet. What
> am I doing wrong?

You're assuming it's possible.  It's not.  Addresses in the range
192.168.x.x are explicitly not routed.  See RFC 1918
(http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1918.html) for further
details.

You're not very clear about your router, but I assume it does NAT for
you: to connect an RFC 1918 network to the Internet, you need to use
some form of Network Address Translation (NAT).  Theoretically, you'd
need to do the same at the junction between the 192.168.0.x and
192.168.1.x networks, though you might be able to fake things by
choosing 23 bit net masks.  If this doesn't mean anything to you,
don't ask.  

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.
NOTE: Due to the currently active Microsoft-based worms, I am limiting
all incoming mail to 131,072 bytes.  This is enough for normal mail,
but not for large attachments.  Please send these as URLs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20031001/d31f2db9/attachment.bin


More information about the freebsd-questions mailing list