From owner-freebsd-questions Fri Sep 22 23:23:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id D9D2437B424 for ; Fri, 22 Sep 2000 23:23:50 -0700 (PDT) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Fri, 22 Sep 2000 23:22:35 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id e8N6Ndc42627; Fri, 22 Sep 2000 23:23:39 -0700 (PDT) (envelope-from cjc) Date: Fri, 22 Sep 2000 23:23:39 -0700 From: "Crist J . Clark" To: Peter Chiu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: routing question Message-ID: <20000922232339.M367@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <4575727640.20000922213638@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <4575727640.20000922213638@yahoo.com>; from pccb@yahoo.com on Fri, Sep 22, 2000 at 09:36:38PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 22, 2000 at 09:36:38PM -0400, Peter Chiu wrote: > This is my current setup. > ADSL modem comes with 13 ips from 209.111.111.98-110 > > Firewall box has two NICs, one to ADSL modem (xl0) and another one > (vr0) to the HUB. > > > 209.111.111.98 209.111.111.99 > ADSL-->firewall box-->HUB-->wkst #1 > xl0 vr0 | 209.111.111.100 > +--->wkst #2 > > > In /etc/rc.conf, I do this > ifconfig_xl0="inet 209.111.111.98 netmask 255.255.255.240" > > It works and I can ping 209.111.111.98 from outside. > > However, I don't know how to route 209.111.111.99 to wkst #1. > And what should I put in ifconfig_vr0? Two problems with routing here. First, do you really have the 209.111.111.96/16 net? Assuming that 209.111.111.97 is being used for the IP of the modem, then 98-110 would be the other usable addresses on the net. If that is the case, I suppose you could bust it into two 3-bit nets. But the second problem is bigger. If you are going to be doing any routing, your modem (or the router behind it) would have to know that 209.111.111.99 needs to be routed through 209.111.111.98. Do you know if you can do that? You might be better off doing bridging. See bridge(4). In that case, you would not give vr0 an IP address at all. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message