Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2000 14:55:33 -0700 (PDT)
From:      Dan Busarow <dan@dpcsys.com>
To:        "Unice, Kyle" <kyle.unice@intel.com>
Cc:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Newbie net config question
Message-ID:  <Pine.BSF.3.96.1000915144511.26814B-100000@java.dpcsys.com>
In-Reply-To: <A7675204C322D411820600A0C96B7BF5783611@ORSMSX36>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 15 Sep 2000, Unice, Kyle wrote:
> Questions:
> 1. Is there some kindoff document for FreeBSD 4.1 on how to do this?

Possibly, but it is extremely easy so a document isn't really necessary.

> 2. Should the IP Gateway for my local net (192.168.x.x) have a gateway
> address of 192.168.x.y that is the IP address of my internal network nic on
> the gateway or should the gateway for both nics be set to my ISPs gateway?

Let's use some real number to make it clear.

Internal network, 192.168.1.0/24
External network, 206.16.184.0/24

All changes (other than rc.firewall) go in /etc/rc.conf

You don't need the firewall stuff to get the network up so you
may want to set 

firewall_enable="NO" at first.

Change NIC types to suite and these are the lines required to
setup a gateway machine.

network_interfaces="fxp0 fxp1 lo0"
ifconfig_fxp0="inet 206.16.184.7  netmask 255.255.255.0"
ifconfig_fxp1="inet 192.168.1.1 netmask 255.255.255.0"
defaultrouter="206.16.184.1"
gateway_enable="NO"

That's it.  Reboot and you'll have a working gateway.

Hosts on the internal network should use 192.168.1.1 for
their default gateway.

Dan
-- 
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82



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?Pine.BSF.3.96.1000915144511.26814B-100000>