Date: Fri, 22 Sep 2000 23:23:39 -0700 From: "Crist J . Clark" <cjclark@reflexnet.net> To: Peter Chiu <pccb@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: routing question Message-ID: <20000922232339.M367@149.211.6.64.reflexcom.com> In-Reply-To: <4575727640.20000922213638@yahoo.com>; from pccb@yahoo.com on Fri, Sep 22, 2000 at 09:36:38PM -0400 References: <4575727640.20000922213638@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000922232339.M367>