From owner-freebsd-questions Mon Dec 3 9:30: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hemi.metrotv.com (hemi.metrotv.com [66.100.208.35]) by hub.freebsd.org (Postfix) with SMTP id E25A237B416 for ; Mon, 3 Dec 2001 09:29:50 -0800 (PST) Received: (qmail 39572 invoked by uid 1009); 3 Dec 2001 17:32:22 -0000 Received: from powerstroke.metrotv.com (HELO ?192.168.1.43?) (66.100.208.34) by hemi.metrotv.com with SMTP; 3 Dec 2001 17:32:22 -0000 User-Agent: Microsoft-Entourage/9.0.1.3108 Date: Mon, 03 Dec 2001 11:30:48 -0600 Subject: Re: WAN routing question From: Eric Long To: Joe Clarke Cc: Message-ID: In-Reply-To: <20011203121913.Y49546-100000@shumai.marcuscom.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG on 12/3/01 11:21 AM, Joe Clarke at marcus@marcuscom.com wrote: > > > On Mon, 3 Dec 2001, Eric Long wrote: > >> I have a WAN routing question. First, the setup is the following: >> >> (using Savvis for internet access and the private link between our two >> offices located in different states) >> >> >> --- >> >> 192.168.1.0/24 LAN >> | >> -------------------------------- >> | 192.168.1.4 66.100.208.34 | FreeBSD 4.4-STABLE box in MN >> -------------------------------- >> | | >> | `----- INTERNET >> | >> | >> ------------------ >> | 192.168.1.1 | Savvis WAN Router in MN >> ------------------ >> | >> WAN >> | >> ------------------ >> | 192.168.2.1 | Savvis WAN Router in CA >> ------------------ >> | >> ------------------ >> | 192.168.2.4 | FreeBSD 4.4-STABLE box in CA >> ------------------ >> | >> 192.168.2.0/24 LAN >> >> >> --- >> >> I want to route internet traffic from the LAN in CA over the WAN link and >> through the Internet connection in MN. How should routing be done so that >> internet-bound traffic from the LAN in CA gets routed to the MN office and >> out ot the Internet? >> >> I'm to the point where I can ping workstations in CA from MN and vice versa, >> but am unclear as to how the routing should be configured so that >> Internet-bound traffic from CA gets routed to MN's Internet connection. > > Looks to me like you just want to create a static route for MN LAN in CA, > then put your default route in CA across the WAN link. This looks to be a > fairly simple configuration. If you wanted to spice it up, you could use > RIP, or some other routing protocol to propogate the LAN routes to both > locations. You could even have RIP advertise the default route, but you > might like to make the default route static. My CA FreeBSD box config: defaultrouter="192.168.2.1" At startup, I also do: /sbin/route add 192.168.1.0 192.168.2.1 This successfully routes any traffic bound for the MN LAN via the Savvis-supplied Lucent WAN router. As I said before, I can ping back and forth between both LAN's. Based on what you said, I have created a static route for the MN LAN in CA and put the default route in CA across the WAN link. I'm missing something because I can't ping anything on the Internet from CA (I can ping public IP's from the MN LAN). -Eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message