From owner-freebsd-stable@FreeBSD.ORG Sun Nov 28 12:35:44 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B1CA16A4CF for ; Sun, 28 Nov 2004 12:35:44 +0000 (GMT) Received: from iscan1.intra.oki.co.jp (okigate.oki.co.jp [202.226.91.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B65443D41 for ; Sun, 28 Nov 2004 12:35:42 +0000 (GMT) (envelope-from yamamoto436@oki.com) Received: from aoi.bmc.oki.co.jp (localhost.localdomain [127.0.0.1]) by iscan1.intra.oki.co.jp (8.9.3/8.9.3) with SMTP id VAA27312 for ; Sun, 28 Nov 2004 21:35:40 +0900 Received: (qmail 27341 invoked from network); 28 Nov 2004 21:35:41 +0900 Received: from tulip.bmc.oki.co.jp (172.19.234.100) by aoi.bmc.oki.co.jp with SMTP; 28 Nov 2004 21:35:41 +0900 Received: from localhost (tulip [172.19.234.100]) by tulip.bmc.oki.co.jp (8.13.1/8.12.11) with ESMTP id iASCZedN022730; Sun, 28 Nov 2004 21:35:40 +0900 (JST) (envelope-from yamamoto436@oki.com) Date: Sun, 28 Nov 2004 21:35:40 +0900 (JST) Message-Id: <20041128.213540.74733833.yamamoto436@oki.com> To: glebius@freebsd.org From: Hideki Yamamoto In-Reply-To: <20041122081250.GA49670@cell.sick.ru> References: <20041121.003425.41664309.yamamoto436@oki.com> <20041122081250.GA49670@cell.sick.ru> X-Mailer: Mew version 3.3 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: pppoe server option X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 12:35:44 -0000 Hi, From: Gleb Smirnoff Subject: Re: pppoe server option Date: Mon, 22 Nov 2004 11:12:50 +0300 Message-ID: <20041122081250.GA49670@cell.sick.ru> > On Sun, Nov 21, 2004 at 12:34:25AM +0900, Hideki Yamamoto wrote: > H> I have found a problem about PPPoE parameter in /etc/rc.network. > H> When setting the following lines in /etc/rc.conf, pppoe server does not > H> work well. The string "service-pppoe" is an entry in > H> /etc/ppp/ppp.conf for PPPoE server. > H> > H> pppoed_enable="YES" # Run the PPP over Ethernet daemon. > H> pppoed_provider="service-pppoe" # Provider and ppp(8) config file entry. > H> pppoed_interface="fxp0" # The interface that pppoed runs on. > H> > H> In /etc/rc.network, 'pppoed_provider' is passed into pppoe with -p > H> option. After booting os, pppoe arguments are as follows: > H> > H> pppoed ... -p service-pppoe fxp0 > H> > H> But this option does not work. We should use -l instead of -p like > H> this: > H> > H> pppoed ... -l service-pppoe fxp0 > H> > H> To use -l, I think the line 822 in /etc/rc.network should be modified. > H> > H> < 822 pppoed_flags="${pppoed_flags} -p ${pppoed_provider}" > H> > H> > 822 pppoed_flags="${pppoed_flags} -l ${pppoed_provider}" > H> > H> After modifying the above line, pppoed server works well. > H> But is this modification correct? > > No. > > -l switch configures label in ppp.conf > -p swicth configures provider name which is announced in Ethernet. Thank you for your reply. I think comment statement in /etc/defaults/rc.conf should be changed because the current comment means '-l'. Otherwise we should change /etc/rc.network. Don't you think so? -------------- /etc/defaults/rc.conf ---------- pppoed_provider="service-pppoe" # Provider and ppp(8) config file entry. ----------------------------------------------- > -- > Totus tuus, Glebius. > GLEBIUS-RIPN GLEB-RIPE ----------------------------------------------------------------- Hideki YAMAMOTO | Broadband Media Solutions Department | E-mail: yamamoto436@oki.com Broadband Media Company | Tel: +81-48-420-7012 Oki Electric Industry Co., Ltd. | FAX: +81-48-420-7016