From owner-freebsd-questions Fri Jun 7 15:48:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 5452537B400 for ; Fri, 7 Jun 2002 15:48:37 -0700 (PDT) Received: from user-1120gf9.dsl.mindspring.com ([66.32.65.233] helo=joeandlane.com) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17GSX6-0003Ef-00 for freebsd-questions@freebsd.org; Fri, 07 Jun 2002 15:48:36 -0700 Received: (from nobody@localhost) by joeandlane.com (8.11.6/8.11.6) id g57MlsD57466; Fri, 7 Jun 2002 17:47:54 -0500 (CDT) (envelope-from lane@cd-solutions.net) Date: Fri, 7 Jun 2002 17:47:54 -0500 (CDT) Message-Id: <200206072247.g57MlsD57466@joeandlane.com> From: "admin" To: freebsd-questions@freebsd.org Subject: How to automatically route a selected IP via ppp and all others via default route X-Mailer: NeoMail 1.25 X-IPAddress: 209.60.15.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 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 I'm running Freebsd 4.5 as a gateway for NT, Windows 98, and an AS/400. Freebsd handles dhcp, dns, nat, etc. From time to time I have to connect my AS/400 to remote sites. This works fine as long as the site is on the internet. But when I have to dial out (using ppp on Freebsd) I cannot connect the AS/400 to the remote site. I *can* connect to the remote site directly from Freebsd and I *can* connect from the Windoze boxes *after* I type "route add ". As I said, Freebsd handles dhcp. It assigns addresses in the range 192.168.1.5 to 192.168.1.200 using netmask 255.255.255.0. From the windoze boxes I can use IPCONFIG or WINIPCFG to verify the ip address and the netmask. In all cases they correspond with /var/db/dhcpd.leases and in all cases I have unfettered access to the internet via my freebsd gateway (who lives at 192.168.1.1). dhcp uses static configuration for the AS/400 because he wants to be a dhcp server but not a client. I am able to connect to internet sites using telnet and ftp from the AS/400. The ppp.conf script is vanilla, except for these two lines, which seem to be required for the particular connection that is troubling me: add 192.168.27.27 HISADDR add 192.168.28.1 HISADDR His router is 192.168.28.1 and the target sysmem is at 192.168.27.27. It seems like the Windows boxes have to be reminded that the default route is the same route they should take for this particular address. Unfortunately there is no clear way to remind the AS/400 that he should do the same. I appreciate any suggestions that you may have. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message