From owner-freebsd-questions@FreeBSD.ORG Tue Oct 23 09:02:33 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA99C16A417 for ; Tue, 23 Oct 2007 09:02:33 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 799A113C48D for ; Tue, 23 Oct 2007 09:02:33 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by smtp.teledomenet.gr (Postfix, from userid 58) id 3C60714202D; Tue, 23 Oct 2007 12:02:23 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on smtp.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 Received: from iris (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id 44DE314202C; Tue, 23 Oct 2007 12:02:20 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Tue, 23 Oct 2007 12:05:09 +0300 User-Agent: KMail/1.9.7 References: <471D5D11.3090201@dreamchaser.org> In-Reply-To: <471D5D11.3090201@dreamchaser.org> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710231205.09703.nvass@teledomenet.gr> Cc: freebsd@dreamchaser.org Subject: Re: user ppp and PPPoE bridging X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2007 09:02:33 -0000 On Tuesday 23 October 2007 05:31:45 freebsd@dreamchaser.org wrote: > I'm attempting to change a DSL link from using PPPoE in the DSL modem > to doing PPPoE on 6.1, with the modem in bridging mode. > > I've put the DSL modem in bridging mode, and it brings up the link > properly -- or at least it reports it as up (DSL led steady; modem > status report shows it as up, rfc 1483. > > Using user ppp, when I attempt to establish the PPPoE connection, I > never get very far -- ppp dies when it tries to acquire carrier. I > don't understand this, as there isn't a carrier signal to acquire on > an ethernet. There is carrier on ethernet. Ethernet belongs to the CSMA/DA model where CS means carrier sense. > I tried disabling cd in ppp.conf but as noted in the doc, > it's required for a PPPoE connection and is forced on. > > Also, how do I know know which interface it is attempting to connect to? > The debug log shows it found five interfaces, but doesn't indicate which > one it is trying to connect to. It tries to use ed1 for PPPoE(set device PPPoE:ed1) Can you use the minimal configuration labelled pppoe from /usr/share/examples/ppp/ppp.conf.sample? The only things you have to change are: The ethernet interface it will try PPPoE. username and password. Is your ed1 connected to the modem directly? Or it goes through a switch? Can you try connecting your ed1 directly on your DSL modem's ethernet port? You might need a crossover cable to do this( http://en.wikipedia.org/wiki/Ethernet_crossover_cable) or not since these days many ethernet ports do this automatically. Please post also ifconfig and run tcpdump on ed1 during try. > [snip] > > ============ ppp.conf: =========== > > default: > set log all > set log -timer > ident user-ppp VERSION (built COMPILATIONDATE) > set redial 15 0 > set reconnect 15 10000 > isp: > set device PPPoE:ed1 > disable acfcomp protocomp > deny acfcomp > set mtu max 1492 > set mru max 1492 > enable mssfixup > set speed sync > enable lqr > set lqrperiod 5 > set ctsrts off > disable ipv6cp > set dial > set login > set timeout 0 > set authname xxxxxx > set authkey yyyyyy > add! default HISADDR > I dont'see anything wrong, but I may be wrong. The small sample configuration always worked for me. Why don't you use it as a starting point? Nikos