From owner-freebsd-questions@FreeBSD.ORG Sat Oct 20 17:09:50 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 0E5CD16A46C for ; Sat, 20 Oct 2007 17:09:50 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 7755813C457 for ; Sat, 20 Oct 2007 17:09:25 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from [85.172.12.169] (helo=localhost.my.domain) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1IjHpA-000G3u-4X; Sat, 20 Oct 2007 21:09:20 +0400 To: "Babek Ismayilov" References: <574134ea0710192200m2ded2a58oee8c259cb0a977f0@mail.gmail.com> From: Boris Samorodov Date: Sat, 20 Oct 2007 21:12:22 +0400 In-Reply-To: <574134ea0710192200m2ded2a58oee8c259cb0a977f0@mail.gmail.com> (Babek Ismayilov's message of "Sat\, 20 Oct 2007 10\:00\:27 +0500") Message-ID: <66132889@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: PPPoE config FreeBSD. Need help 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: Sat, 20 Oct 2007 17:09:50 -0000 On Sat, 20 Oct 2007 10:00:27 +0500 Babek Ismayilov wrote: > i need to configure PPPoE in FreeBSD 6.2. > I tested but it didn't work out. I'm want to show you the result of the > command: > web# ppp > Working in interactive mode > Using interface: tun0 > ppp ON web> dial Internet > ppp ON web> ping box.az > Warning: ping: Invalid command > Warning: ping: Failed 1 > ppp ON web> > ppp ON web> pppd > Warning: pppd: Invalid command > Warning: pppd: Failed 1 > ppp ON web> quit > web# pppd There is a very good diagnostic file /var/log/ppp.log . You may populate it by the needed info. (Hint: man ppp) > Here is rc.conf > rc.conf > # -- sysinstall generated deltas -- # Fri Oct 19 16:25:38 2007 > # Created: Fri Oct 19 16:25:38 2007 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > #defaultrouter="172.16.200.1" > hostname="web.pronet" > ifconfig_rl0="inet 172.16.200.201 netmask 255.255.255.0" > inetd_enable="YES" > linux_enable="YES" > sshd_enable="YES" > usbd_enable="YES" > ppp_interface="rl1" > ppp_enable="YES" > ppp_mode="ddial" > ppp_nat="NO" > ppp_profile="primus" > network_interfaces="rl1 lo0" > ifconfig_rl1="inet 10.0.0.1 netmask 255.255.255.0" Where did you get info for rl0, rl1 interface? Why did you disable rl0 interface with "network_interfaces="? (Hint: there is no need for _PPPoE_ in any those ip-addresses) > ppp.conf Is it a copy-n-paste problem that you don't have a space before commands? I.e.: ----- default: set log Phase Chat LCP IPCP CCP tun command ----- > ################################################################# > # PPP Sample Configuration File > # Originally written by Toshiharu OHNO > # Simplified 5/14/1999 by wself@cdrom.com > # > # See /usr/share/examples/ppp/ for some examples > # > # $FreeBSD: src/etc/ppp/ppp.conf,v 1.10 2004/11/19 17:12:56 obrien Exp $ > ################################################################# > default: > set log Phase Chat LCP IPCP CCP tun command > ident user-ppp VERSION (built COMPILATIONDATE) > # Ensure that "device" references the correct serial port > # for your modem. (cuad0 = COM1, cuad1 = COM2) > # > set device PPPoE:rl1 > set speed 115200 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ > \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" > set timeout 180 # 3 minute idle timer (the default) > enable dns # request DNS info (for resolv.conf) > papchap: > # > # edit the next three lines and replace the items in caps with > # the values which have been assigned by your ISP. > # > primus: > set authname pronet > set authkey 3060683 > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > add default HISADDR # Add a (sticky) default route > added there lines to GENERIC: The needed modules should have been loaded automagically. > # Enables PPPoE > options NETGRAPH > options NETGRAPH_SOCKET > options NETGRAPH_PPPOE > But still didnt work out. > Please give some advice. Please take a look at /usr/share/examples/ppp.conf.sample. There is a good example. Just two labels and a some ten commands. Insert your values and get your PPPoE. HTH and WBR -- bsam