From owner-freebsd-stable@FreeBSD.ORG Mon Nov 22 08:12:56 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 1085F16A4CE for ; Mon, 22 Nov 2004 08:12:56 +0000 (GMT) Received: from relay.bestcom.ru (relay.bestcom.ru [217.72.144.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 443A143D48 for ; Mon, 22 Nov 2004 08:12:55 +0000 (GMT) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (root@cell.sick.ru [217.72.144.68]) by relay.bestcom.ru (8.13.1/8.12.9) with ESMTP id iAM8Cq6A011401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 22 Nov 2004 11:12:53 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id iAM8CpUh049746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 22 Nov 2004 11:12:52 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id iAM8CpgY049745; Mon, 22 Nov 2004 11:12:51 +0300 (MSK) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@freebsd.org using -f Date: Mon, 22 Nov 2004 11:12:50 +0300 From: Gleb Smirnoff To: Hideki Yamamoto Message-ID: <20041122081250.GA49670@cell.sick.ru> References: <20041121.003425.41664309.yamamoto436@oki.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20041121.003425.41664309.yamamoto436@oki.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20041013, clamav-milter version 0.75l on 127.0.0.1 X-Virus-Status: Clean 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: Mon, 22 Nov 2004 08:12:56 -0000 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. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE