From owner-freebsd-questions Mon Oct 4 7:26:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.portal2.com (ns1.portal2.com [203.85.226.193]) by hub.freebsd.org (Postfix) with SMTP id 52C2F15474 for ; Mon, 4 Oct 1999 07:26:39 -0700 (PDT) (envelope-from yusufg@outblaze.com) Received: (qmail 26376 invoked from network); 4 Oct 1999 14:25:26 -0000 Received: from yusufg.portal2.com (qmailr@203.85.226.249) by ns1.portal2.com with SMTP; 4 Oct 1999 14:25:26 -0000 Received: (qmail 3944 invoked by uid 500); 4 Oct 1999 14:26:33 -0000 Date: Mon, 4 Oct 1999 22:26:33 +0800 From: Yusuf Goolamabbas To: Bill Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Would like to mix static IP's and non-routable IP's on a LAN Message-ID: <19991004222633.A3845@outblaze.com> References: <19991004081357.27746.qmail@yusufg.portal2.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, The BSD box is currently being used as an internal routers (we have two WAN interfaces i.e pipes from two different ISP's and the BSD box which has two nics's allows us to get from one network to another) with appropiate settings in the ISP routers What I would like to do is somehow configure this box to act as a NAT box for various Windows boxen in the office. However, some people need static IP's. This BSD box has two NIC's. Each NIC is bound to the appropiate WAN interface (one is a /25 network and one is a /26 network) The Windows boxen are to be routed via the WAN interface on the /26 network fxp0 is bound to /25 network fxp1 is bound to /26 network Both have real routable IP addresses I configured the kernel with IPFIREWALL and IPDIVERT and made the appropiate changes in /etc/rc.conf natd_enable = "YES" natd_interface ="fxp0" Now, on my Windows boxen I am configuring them with network addresses 192.168.0.1 and gateway as the public address of fxp0 of the BSD box However, this isn't working since I can't ping out from the Windows boxen I have a feeling I am doing something incredibly stupid but I seem to be missing it The BSD boxen is 3.3-stable > Youll probabley need to describe your network in a bit more detail for a > more exact solution to your question, for now ill assume your using your > bsd box as a gateway with one ethernet card. Check out the man page for > ifconfig, what you probabley want to do is alias the additional subnets. > > example: ifconfig ed1 alias 192.168.1.1 > > Im assuming you already have your nic config'd with public address, the > netmask will default to whatever class address you enter, but if your going > to subnet your unregistered networks (cant think of a siduation you would > need to that for) do this... > > example: ifconfig ed1 alias 192.168.1.1 netmask 255.255.255.192 > > When your done you need to add the route to localhost.. > route add 192.168.1.1 127.0.0.1 > that should do it for you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message