Date: Fri, 7 Jun 2002 17:47:54 -0500 (CDT) From: "admin" <lane@cd-solutions.net> To: freebsd-questions@freebsd.org Subject: How to automatically route a selected IP via ppp and all others via default route Message-ID: <200206072247.g57MlsD57466@joeandlane.com>
next in thread | raw e-mail | index | archive | help
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 <remote as/400 ip> <freebsd gateway ip>". 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206072247.g57MlsD57466>