From owner-freebsd-questions Thu Feb 6 8: 7:18 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EF7A37B401 for ; Thu, 6 Feb 2003 08:07:17 -0800 (PST) Received: from hypernet.hyper.net (hypernet.hyper.net [193.218.1.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A5FD43F3F for ; Thu, 6 Feb 2003 08:07:09 -0800 (PST) (envelope-from dxoch@escape.gr) Received: from escape.gr (bus.hyper.gr [193.218.2.30]) by hypernet.hyper.net (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id h16GKVR16336; Thu, 6 Feb 2003 18:20:32 +0200 Message-ID: <3E428805.E3FB85CC@escape.gr> Date: Thu, 06 Feb 2003 18:06:29 +0200 From: Jim Xochellis Organization: ESCAPE Services X-Mailer: Mozilla 4.78 (Macintosh; U; PPC) X-Accept-Language: en,fr,el MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Setting ppp in an FreeBSD 4.7 router Content-Type: text/plain; charset=UTF-8 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 Hi List I have a FreeBSD 4.7(i386) Release box and I am trying to make it run as a router. My outer interface is ppp and seems that is not working correctly. The interface definitions inside the rc.conf file are the following: ... network_interfaces="ppp0 rl0 lo0" ifconfig_rl0="inet 111.111.111.111 mtu 1500 netmask 255.255.255.240" ifconfig_rl0_alias0="inet 192.168.3.1 mtu 1500 netmask 255.255.255.0" ifconfig_ppp0="inet 222.222.222.222 333.333.333.333 mtu 1500 netmask 255.255.255.252" hostname="XXX.YYY.ZZZ" defaultrouter="333.333.333.333" ... And I start pppd from the rc.local file like this: /usr/sbin/pppd /dev/cuaa0 115200 222.222.222.222:333.333.333.333 noauth persist netmask 255.255.255.252 When I boot the router and try to connect through the outer interface (ping) I get "no route to host", but when I try "route add default 333.333.333.333" the ppp seems to run ok. On the other hand, adding "route add default 333.333.333.333" to my rc.local file does not solve the problem. The same rc.conf and rc.local files have been used in my old FreeBSD 4.2(i386) router with no problem at all. What am I doing wrong? Is rc.local the correct place to start the pppd? Any suggestions? Thank you very much for your time Jim Xochellis Escape Information Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message