From owner-freebsd-questions Mon Dec 11 15:38:24 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 15:38:17 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from spitfire.velocet.net (spitfire.velocet.net [209.167.225.66]) by hub.freebsd.org (Postfix) with ESMTP id BF4A737B400 for ; Mon, 11 Dec 2000 15:38:16 -0800 (PST) Received: from david.thecafe.ca (H160.C192.tor.velocet.net [216.138.192.160]) by spitfire.velocet.net (Postfix) with SMTP id 1176119A133 for ; Mon, 11 Dec 2000 18:38:15 -0500 (EST) From: David Reply-To: ddavid@ican.net To: freebsd-questions@freebsd.org Subject: RE: PPPoE: Waiting for carrier Date: Mon, 11 Dec 2000 18:39:16 -0500 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Message-Id: <00121118391600.00329@david.thecafe.ca> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >tun0: Phase: deflink: dial -> carrier >tun0: Debug: Waiting for carrier >message repeats * cd value >tun0: Phase: deflink: Disconnected! >What I'm looking for is advice maybe on checking packet type errors >(like the fellow above had), or how to explain to BellSouth tech >support what I mean when I ask whether or not I need to request a >"service". After you have checked your settings and done some testing of the connection, and you still get a "waiting for carrier and disconnected, ask him why and when the system will be back up so you can log on. >Hints about what worked for others, or how to find more >info on what happens after dial -> carrier. Your carrier is your ISP, seems from what you have posted that your ISP is not responding. To test out the connection try this: Taken from the article mentioned by Drew: # /usr/sbin/ppp ppp ON myhost> set log +debug (<-- this will fill your log's with lot of info on whats happening) ppp ON myhost> show physical Name: deflink State: closed Device: N/A Link Type: interactive Connect Count: 0 Queued Packets: 0 Phone Number: N/A Defaults: Device List: "PPPoE:eth0" Characteristics: sync, cs8, no parity, CTS/RTS off CD check delay: device specific Connect time: 0:00:00 0 octets in, 0 octets out Overall 0 bytes/sec ppp ON myhost> dial ppp ON myhost> Ppp ON myhost> ppp ON myhost> Example 2. A first run of ppp. "Note how the first P of the ppp prompt becomes capitalized, indicating that the LCP phase was successfully completed. The next phase, authentication, fails, since you have not provided a username and password yet." (A Link Control Protocol (LCP) for establishing, configuring, and testing the data-link connection.) "If this first P fails to become capitalized, you need to look at /var/log/ppp.log and figure out what went wrong. Since debugging output was activated with set log +debug above, there should be lots of information there. Sift through the file and pinpoint the exact point of failure. I try to give some starting points in the Errors section below." At this point if everything works as expected, then go on and try with papchap enabled: ( again from tutorial) "You have completed the failed ppp run above, now you should be able to go all the way, get authenticated and connected. This is what we do in example 3. " # /usr/bin/ppp papchap ppp on myhost> set log +debug ppp ON myhost> dial ppp ON myhost> Ppp ON myhost> PPp ON myhost> PPP ON myhost> Example 3. A completed run of ppp. "Note how the three Ps of the prompt are now capitalized, indicating that you have successfully completed the LCP phase (first P), you are successfully authenticated (second P), and your machine was assigned an IP address (third P). This constitutes the complete PPP connection process, and your machine is now online." >What I'm looking for is advice maybe on checking packet type errors >(like the fellow above had), or how to explain to BellSouth tech >support what I mean when I ask whether or not I need to request a >"service". After you have checked your settings and done some testing of the connection, and you still get a "waiting for carrier and disconnected, ask him why and when the system will be back up so you can log on. >Also, where can I learn >what the ppp.conf stuff really means (other than the manpage) instead >of blindly copying stuff into ppp.conf? What better place to look to find out what the options are for. Manpage that is. Here's my rc.conf and my ppp.conf, also taken from the tutorial: network_interfaces="lo0 ed0 ed1" # List of network interfaces (or "auto"). ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. ifconfig_ed0="up" # Sample alias entry. ifconfig_ed1="inet 192.168.0.1 netmask 255.255.255.0" # Sample IPX address family entry. # # If you have any sppp(4) interfaces above, you might also want to set # the following parameters. Refer to spppcontrol(8) for their meaning. sppp_interfaces="" # List of sppp interfaces. #sppp_interfaces="isp0" # example: sppp over ISDN #spppconfig_isp0="authproto=chap myauthname=foo myauthsecret='top secret' hisauthname=some-gw hisauthsecret='another secret'" # User ppp configuration. ppp_enable="YES" # Start user-ppp (or NO). ppp_mode="ddial" # Choice of "auto", "ddial", "direct" or "dedicated". # For details see man page for ppp(8). Default is auto. ppp_nat="NO" # Use PPP's internal network address translation or NO. ppp_profile="papchap" # Which profile to use from /etc/ppp/ppp.conf. # # ppp.conf: PPPOE configuration # default: #PPP over Ethernet set device PPPoE:ed0 set speed sync set mru 1492 set mtu 1492 disable acfcomp protocomp deny acfcomp set ctsrts off set redial 5 # monitor line quality enable lqr # log just a bit set log phase tun # insert default route upon connection add default HISADDR # download /etc/resolv.conf enable dns papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set authname ****** set authkey ****** Mucho "cruft" removed compared to some of the other PPPoE examples I have come across. This works quite well for me, the exception being my ISP of coarse. Which too my disapointment, is not working as well as I was hoping they would. As you will notice in my rc.conf file I have not given my ed0 an IP address, as I have found most of the "other" tutorials have suggested, but as below, some of them do not understand why you need to give one in any case. >---------- ppp.conf ------------- >########################################################### >## ppp.conf for pppoe connection > >default: > ># PPP over Ethernet > set device PPPoE:ed1 # Nothing for service > set speed sync > set mru 1492 > set mtu 1492 > set ctsrts off > set redial 15 28800 > set reconnect 15 28800 > set cd 60 > set dial > set login > enable lqr > add default HISADDR > enable dns > set timeout 10 ># set ifaddr 10.0.0.1/0 10.0.0.2/0 #Don't understand this > set log connect async sync lqm id0 hdlc debug phase tun chat >lcp ipcp ccp tcp/ip physical command > >papchap: > > set authname username@bellsouth.net Bellsouth requires full email > set authkey ************ Password removed Hope this all helps with those PPPoE blue's..... David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message