From owner-freebsd-net@FreeBSD.ORG Fri Nov 14 11:14:03 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAEEE16A4CE for ; Fri, 14 Nov 2003 11:14:03 -0800 (PST) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1322B43FBF for ; Fri, 14 Nov 2003 11:14:00 -0800 (PST) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (ydhsbkam@news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.12.10/8.12.10) with ESMTP id hAEJDiSi23725575; Fri, 14 Nov 2003 22:13:44 +0300 (MSK) Date: Fri, 14 Nov 2003 22:13:44 +0300 (MSK) From: Maxim Konovalov To: Jim Xochellis In-Reply-To: <2F1F5F98-16AB-11D8-B2D7-003065C4E486@escape.gr> Message-ID: <20031114221030.E70547@news1.macomnet.ru> References: <2F1F5F98-16AB-11D8-B2D7-003065C4E486@escape.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: net@freebsd.org Subject: Re: ip-up script of pppd no triggered X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2003 19:14:04 -0000 On Fri, 14 Nov 2003, 16:02+0200, Jim Xochellis wrote: > Hi list, > > I have also posted this mail to the freebsd-questions list a few days > ago, but I had no luck. Hence, I decided to try this list too, which > probably is the most appropriate for my problem. > > I need to persuade pppd to call its ip-up script in order to add a > non-default route as soon as the link is up and running. Unfortunately > it seems that my ip-up script is not being called. The mode of the file > is rwxr-xr-x and the owner root:wheel. I am calling the pppd from > inside a "/usr/local/etc/rc.d/ppp.sh" script by using the following > command: > "/usr/sbin/pppd /dev/cuaa0 115200 A.A.A.A:B.B.B.B noauth persist > netmask 255.255.255.252" > > I have read all the chapter #18 of the handbook, but I haven't found > anything about the ip-up script. On the contrary the PPPD(8) man page > claims that the /etc/ppp/ip-up is executed when the link is available > for sending and receiving IP packets. My link becomes available for > sending/receiving IP packets, but ip-up is never executed. Any ideas > why? > By the way, I am using kernel PPP, (on ppp0) if it makes any difference. > > Am I doing something wrong? Did you look at /usr/share/examples/pppd/ip-up.sample ? ip-up worked for me six months ago. -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org