From owner-freebsd-questions Fri Dec 8 15:46:28 2000 From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 15:46:24 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by hub.freebsd.org (Postfix) with ESMTP id 1687437B401 for ; Fri, 8 Dec 2000 15:46:23 -0800 (PST) Received: from fwd05.sul.t-online.com by mailout05.sul.t-online.com with smtp id 144XDa-0008Qr-00; Sat, 09 Dec 2000 00:46:22 +0100 Received: from icg-pc202.hofheim.icg-online.de (06192901197-0001@[217.1.128.135]) by fmrl05.sul.t-online.com with esmtp id 144XDO-1Hza5oC; Sat, 9 Dec 2000 00:46:10 +0100 Received: from icg_pc204 (icg-pc204.hofheim.icg-online.de [10.1.2.204]) by icg-pc202.hofheim.icg-online.de (8.9.3/8.9.3) with SMTP id BAA48097; Sat, 9 Dec 2000 01:04:40 +0100 (CET) (envelope-from Usselmann.M@icg-online.de) Message-Id: <200012090004.BAA48097@icg-pc202.hofheim.icg-online.de> From: "Manfred Usselmann" To: "questions@freebsd.org" Cc: "Philipp Reichmuth" Date: Sat, 09 Dec 2000 00:44:40 +0100 Reply-To: "Manfred Usselmann" Priority: Normal X-Mailer: PMMail 2000 Standard (2.10.2010) For Windows NT (4.0.1381;6) In-Reply-To: <1988.001208@bonn.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: DSL/PPPoE problem X-Sender: 06192901197-0001@t-dialin.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 8 Dec 2000 23:42:44 +0100, Philipp Reichmuth wrote: >-----BEGIN PGP SIGNED MESSAGE----- > >Hello there! > >I'm currently having trouble installing DSL under FreeBSD >4.2-RELEASE. >Actually, it's German Telekom T-DSL, using PPPoE. I've posted it to >the German lists already, as some of you will probably have noticed. > >The DSL cabling is OK. This is the ppp.conf file section: >- - - -----8< snip >8----- >tdsl: > allow users user1 user2 user3 > set device PPPoE:ep1 # ep1 is the NIC I use for PPPoE. > set MTU 1492 > set MRU 1492 > set dial > set crtscts off > set speed sync > accept lqr > disable deflate > disable pred1 > disable vjcomp > disable acfcomp > disable protocomp > set log Phase LCP IPCP CCP Warning Error Alert Lots Of Crap > set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0 > add default HISADDR > set login > set authname array_of_numbers@t-online.de > set authkey dontlookatme > set server /some/socket 0700 > nat enable yes > nat same_ports yes >- - - -----8< snip >8----- > >Netgraph is compiled into the kernel. > >When I call "ppp tdsl" and give it a "dial" command, I get chucked >out >after five seconds because there's no carrier. Doing "set cd off" >doesn't help because the man page says I need a carrier for PPPoE. >It's rather nicely deterministic, however: after "set cd N" I get >chucked out after N seconds. How cute. > >So I guess something's wrong on the PPPoE layer. The tutorial I was >using contains some nice protocol dumps from the PPPoE layer; the guy >who made them says he did it using tcpdump(1); however, I can't think >of an interface to dump with tcpdump, as tun0 is out of the question >and ep1 doesn't work because it's not configured for TCP/IP, which >ought not to be necessary because I won't be talking IP to my ep1. So >basically, I don't know what to dump, unless I start to wriggle >around >with Netgraph. The solution I'd think of would be to hang an ng_bpf >node between the ng_pppoe node created by PPP and the ng_ether node >that represents my ep1. This doesn't work, however, because I can't >hang nodes between other nodes; I can just disconnect nodes from >other >nodes and reconnect them to third nodes. As soon as I disconnect the >ng_pppoe node, it gets shut down automatically which is a nice thing >but which doesn't help me at all. When I create a new pppoe node, PPP >won't use it, and when I start PPP without creating a new pppoe node, >PPP complains quite correctly about ep1:'s orphan hook being used by >the ng_bpf node, which he's quite right about. Now I'm quite new to >Netgraph, but I haven't got a clue what I could do to get a dump from >the PPPoE layer. > >Is there anything else that could be wrong? How do I tcpdump the >PPPoE >layer? Am I just an idiot or is this difficult? > >The machine I'm using is not spectacular. It's an ancient 486 >DX4/133, >with an NE2000 and a 3COM 3c509 as NICs. The 3COM, like so many >3COMs, >gets mirrored as ep0 and ep1, ep0 is a shadow adapter that does >nothing except linger on the bus and confuse the PnP code, while ep1 >is the actual adapter. This is in the problem list as kernel/18200, >but I don't think that's the fault. The ep1 gets auto-configured by >PnP to IRQ 9, but since there is no graphics adapter in the machine, >that probably doesn't hurt. > >Anyhow, what can I do about the DSL problem? Any suggestions? Thanks >in advance. Do you have 'ifconfig_ep1="up mtu 1492"' in rc.conf? Did you test that the NIC is really working (DOS Bootdisk with 3Com utility)? Has the ADSL modem really established a connection to the DSL service at the Telekom? Manfred -- ________________________________________________________________________ Manfred Usselmann usselmann.m@icg-online.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message