Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!newshost.marcam.com!usc!cs.utexas.edu!swrinde!ringer.cs.utsa.edu!news.cais.net!news.structured.net!news.ATNET.NET!usenet From: jwshafto@atnet.net (John Shafto) Newsgroups: comp.unix.bsd.freebsd.misc Subject: BSD routing pains Date: Mon, 18 Sep 1995 01:34:41 GMT Organization: AT-NET Connections Lines: 55 Message-ID: <43iif4$h1d@ami.atnet.net> Reply-To: jwshafto@atnet.net NNTP-Posting-Host: pppe.atnet.net X-Newsreader: Forte Free Agent v0.55 Hello All, I have a bit of a problem with routing. I plan to purchase the O'Reilly book in the near future, and I have read everything I can find on the system. What I would like from this group is pointers to good documentation on the net or any tips. I have been lurking in this group for quite a while, but haven't caught a good conversation on routing tables yet. Here's the story: I am trying to setup a FreeBSD box as a gateway to the internet through a PPP connection. I have had great difficulty setting up the routing to work properly. Sometimes I get it, and other times things don't work for no reason I can see. Often the routing tables look right, but things just don't work. I have considered moving from routed to gated, but it doesn't seem like this should be necessary. I don't need external protocols or fancy protocol controls. Many times I cannot ping the PPP interface from my Windows machine. I can telnet in through the Ether, and ping the Ether Interface in the FBSD box fine. The routes are installed from the PPP interface to localhost, and from the remote side of the link to the PPP Interface. The remote side of the link is also the default route, but the FBSD machine will not route the packets. The kernel options are set (GATEWAY) (PPP) etc.. At times this works, but if I mess with routing at all, as I did to add virtual hosts for WWW, things just quit working. BTW, the virtual host thing worked fine (ifconfig ed0 inet #.#.#.# netmask 0xffffff00 alias). Another weird thing, if I add routes into /etc/gateways, such as: # Virtual Hosts to loopback host 205.199.7.3 gateway 127.0.0.1 metric 1 passive host 205.199.7.4 gateway 127.0.0.1 metric 1 passive # Dialin PPP interfaces to loopback host 205.199.7.8 gateway 127.0.0.1 metric 1 passive host 205.199.7.9 gateway 127.0.0.1 metric 1 passive # Networks net AT-NET gateway 205.199.6.66 metric 3 active Often some of the routes get added but others don't, at start up of routed (scratch, scratch). Any pointers? TIA, /* ::: John Shafto ::: JWShafto@atnet.net ::: N7YAO, I'll speak for anyone. AT-NET Connections, Inc. (509) 766-7253 I've got a piece of brain lodged in me head! */