Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2001 10:50:05 +0000 (GMT)
From:      Jean-Christophe Varaillon <jcv@vbc.net>
To:        John Hay <jhay@icomtek.csir.co.za>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: - RISCom card: lcp illegal conf-req in state initial -
Message-ID:  <Pine.BSF.4.10.10102211031380.63938-100000@brunel.uk1.vbc.net>
In-Reply-To: <200102201936.f1KJaJj91966@zibbi.icomtek.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <conf-req id=0x1f len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(req-sent) rst_counter = 10
sr0: lcp output <conf-req id=0x20 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(req-sent) rst_counter = 9
sr0: lcp output <conf-req id=0x21 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(req-sent) rst_counter = 8
sr0: lcp output <conf-req id=0x22 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(req-sent) rst_counter = 7
sr0: lcp output <conf-req id=0x23 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(req-sent) rst_counter = 6
sr0: lcp output <conf-req id=0x24 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(req-sent) rst_counter = 5
sr0: lcp output <conf-req id=0x25 len=10 05-06-7d-be-bb-d1>
sr0: lcp input(req-sent): <conf-req id=0x2d len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x2d len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x2e len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x2e len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x2f len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x2f len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x30 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x30 len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x31 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x31 len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x32 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x32 len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x33 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x33 len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x34 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x34 len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x35 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x35 len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x36 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x36 len=10 05-06-54-ef-40-a0>
sr0: lcp input(ack-sent): <conf-req id=0x37 len=10 05-06-54-ef-40-a0>
sr0: lcp parse opts:  magic 
sr0: lcp parse opt values:  magic 0x54ef40a0  send conf-ack
sr0: lcp output <conf-ack id=0x37 len=10 05-06-54-ef-40-a0>
sr0: lcp TO(ack-sent) rst_counter = 4
sr0: lcp output <conf-req id=0x26 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(ack-sent) rst_counter = 3
sr0: lcp output <conf-req id=0x27 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(ack-sent) rst_counter = 2
sr0: lcp output <conf-req id=0x28 len=10 05-06-7d-be-bb-d1>
sr0: lcp TO(ack-sent) rst_counter = 1
sr0: lcp output <conf-req id=0x29 len=10 05-06-7d-be-bb-d1>
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 <conf-req id=0x2a len=10 05-06-7d-be-bb-d1>
sr0: Down event, taking interface down.
sr0: lcp close(req-sent)
sr0: lcp output <term-req id=0x2b len=4>
sr0: lcp TO(closing) rst_counter = 2
sr0: lcp output <term-req id=0x2c len=4>
sr0: lcp TO(closing) rst_counter = 1
sr0: lcp output <term-req id=0x2d len=4>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10102211031380.63938-100000>