From owner-freebsd-net Wed Feb 21 2:50:40 2001 Delivered-To: freebsd-net@freebsd.org Received: from brunel.uk1.vbc.net (brunel.uk1.vbc.net [194.207.2.8]) by hub.freebsd.org (Postfix) with ESMTP id 43AFE37B401 for ; Wed, 21 Feb 2001 02:50:33 -0800 (PST) (envelope-from jcv@vbc.net) Received: from localhost (jcv@localhost) by brunel.uk1.vbc.net (8.11.0/8.11.0) with ESMTP id f1LAo5n64174; Wed, 21 Feb 2001 10:50:09 GMT X-Authentication-Warning: brunel.uk1.vbc.net: jcv owned process doing -bs Date: Wed, 21 Feb 2001 10:50:05 +0000 (GMT) From: Jean-Christophe Varaillon X-Sender: jcv@brunel.uk1.vbc.net To: John Hay Cc: freebsd-net@FreeBSD.ORG Subject: Re: - RISCom card: lcp illegal conf-req in state initial - In-Reply-To: <200102201936.f1KJaJj91966@zibbi.icomtek.csir.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks for your prompt repply. > > I am actualy trying to establish the communication between a cisco router > > and my Free BSD machine. > > > > +-------+ +---------------+ > > | cisco |serial interface | FreeBSD 4.1 | > > | 3600 +-------------------+ | > > | | RISCom | | > > +-------+ card +---------------+ > > x.x.x.145 x.x.x.146 > > > > I beleive that the router is correclty configured but NOT the FreeBSD > > machine. I am using a PCI card, I configured it this way in my kernel called ZEBRA: "device sr0 at pci? port 0x300 irq 3 iomem 0xd0000" "pseudo-device sppp" The irq 3 is unique, it is not used by any other device in this kernel. > 2. That the cisco is providing a clock. The sr driver configure the card > to expect a clock and it won't work without it. NETGRAPH does not exist in this kernel, therfore I specified "encaps ppp" on the cisco config, and it also provides a clock of 2 Mhz. > > sr1: Down event, taking interface down. > > ... > > sr1: Down event, taking interface down. > > sr1: Down event, taking interface down. > > sr1: lcp illegal conf-req in state initial > > ... > > sr1: lcp illegal conf-req in state initial > > sr1: lcp illegal conf-req in state initial > > This is a bug in the state machine of sppp. I have fixed it in -current, > but haven't merged it into stable yet. Is this may disturb the communication between the cisco and the RISCom card ? > You can also enable the debug flag in ifconfig, then you will see the > ppp packets, that should also help debuging the problem. From this debug information, I think that we can see that the card does not receive the clock signal from the cisco. When we see that "magic 0x54ef40a0", does it correspond to what we call magic number ? sr0: lcp close(initial) sr0: lcp open(initial) sr0: phase establish sr0: lcp up(starting) sr0: lcp output sr0: lcp TO(req-sent) rst_counter = 10 sr0: lcp output sr0: lcp TO(req-sent) rst_counter = 9 sr0: lcp output sr0: lcp TO(req-sent) rst_counter = 8 sr0: lcp output sr0: lcp TO(req-sent) rst_counter = 7 sr0: lcp output sr0: lcp TO(req-sent) rst_counter = 6 sr0: lcp output sr0: lcp TO(req-sent) rst_counter = 5 sr0: lcp output sr0: lcp input(req-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp input(ack-sent): sr0: lcp parse opts: magic sr0: lcp parse opt values: magic 0x54ef40a0 send conf-ack sr0: lcp output sr0: lcp TO(ack-sent) rst_counter = 4 sr0: lcp output sr0: lcp TO(ack-sent) rst_counter = 3 sr0: lcp output sr0: lcp TO(ack-sent) rst_counter = 2 sr0: lcp output sr0: lcp TO(ack-sent) rst_counter = 1 sr0: lcp output sr0: lcp TO(ack-sent) rst_counter = 0 sr0: phase dead sr0: lcp down(stopped) sr0: phase establish sr0: lcp up(starting) sr0: lcp output sr0: Down event, taking interface down. sr0: lcp close(req-sent) sr0: lcp output sr0: lcp TO(closing) rst_counter = 2 sr0: lcp output sr0: lcp TO(closing) rst_counter = 1 sr0: lcp output sr0: lcp TO(closing) rst_counter = 0 sr0: phase dead sr0: lcp down(closed) sr0: Down event, taking interface down. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message