Re: - RISCom card: lcp illegal conf-req in state initial -

2001-02-21 Thread Jean-Christophe Varaillon


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 0xd"
"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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



user PPP HDLC errors

2001-02-21 Thread George Fedorenko

Hi, all

I have a lot of such messages in my log file.
What do they mean? Is it a harware problem?

( PPP is in MP mode. FreeBSD 4.0R)

Feb 18 16:54:51 smtp ppp[58]: tun0: Phase: 1: HDLC errors -> FCS: 2, ADDR: 0, COMD: 0, 
PROTO: 0 
Feb 18 16:55:52 smtp ppp[58]: tun0: Phase: 1: HDLC errors -> FCS: 3, ADDR: 0, COMD: 0, 
PROTO: 0 
Feb 18 16:56:53 smtp ppp[58]: tun0: Phase: 1: HDLC errors -> FCS: 2, ADDR: 0, COMD: 0, 
PROTO: 0 
Feb 18 16:58:55 smtp ppp[58]: tun0: Phase: 1: HDLC errors -> FCS: 3, ADDR: 0, COMD: 0, 
PROTO: 0 
Feb 18 16:59:57 smtp ppp[58]: tun0: Phase: 1: HDLC errors -> FCS: 3, ADDR: 0, COMD: 0, 
PROTO: 0 
Feb 18 17:00:58 smtp ppp[58]: tun0: Phase: 1: HDLC errors -> FCS: 7, ADDR: 0, COMD: 0, 
PROTO: 0 

-- 
George Fedorenko

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



Re: maximum number of routes?

2001-02-21 Thread Jonathan Lemon

In article 
[EMAIL PROTECTED]> you 
write:
>Hi
>
>how could i modify the amount of the maximum routes that freebsd allow?

Add more memory.
--
Jonathan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



Re: maximum number of routes?

2001-02-21 Thread Jasper Wallace

On Tue, 20 Feb 2001, Ingo Flaschberger wrote:

> Hi
>
> how could i modify the amount of the maximum routes that freebsd allow?
>
> i have seen, that with more memory i could use more routes.
> some results from me:
> ram   routes
> 128mb 75k
> 196mb 110k
> 256mb 150k
>
> is it possible to modify the maximum ammount and does it make sense?
> i would need that for some routers speaking bgp.
> 120k routes with 128mb ram would be nice, if possible.
>
> currently, adding more routes than supportet ends with:
> extern# route add 20.0.0.0/24 10.0.0.1
> route: writing to routing socket: No buffer space available
> add net 20.0.0.0: gateway 10.0.0.1: routing table overflow

Add this to your kernel config. file:

# 1/2 RAM for the kernel - lets us have full routes.
options VM_KMEM_SIZE_SCALE="(2)"

See also /usr/include/machine/vmparam.h

Unfortunatly freebsd's kernel memory managment stuff dosn't dynamicly resize,
i'm pretty sure NetBSD's does, so you might like to take a look at that too.

-- 
Internet Vision  Internet Consultancy   Tel: 020 7589 4500
60 Albert Court& Web developmentFax: 020 7589 4522
Prince Consort Road   [EMAIL PROTECTED]
London SW7 2BE   http://www.ivision.co.uk/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



Re: sysctl -w net.link.ether.inet.log_arp_wrong_iface=0 not working

2001-02-21 Thread Luigi Rizzo

> I updated the source and rebuilt a 4.2-stable machine this past weekend.
> 
> sysctl -w net.link.ether.inet.log_arp_wrong_iface=0 is located in rc.conf
> 
> and running that on the command line shows it's value to be 0 however, i
> still receive messages like this.
> 
> Anyone know why this sysctl variable stoped working?

it seems that i nuked it by mistake in a previous commit.
Just committed a fix -- thanks for the report

luigi

> Feb 21 09:48:22 bsd1 /kernel: arp: 209.16.228.140 is on fxp0 but got reply
> from 00:10:4b:99:7f:
> 6e on rl0
> 
> TIA
> 
> Peter Brezny
> SysAdmin Services Inc.
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-net" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



PPP from Win2K to FreeBSD

2001-02-21 Thread Eugene Radchenko

Hi people!

I cannot get FreeBSD's PPP to work with Win2K dialout network connection.
It connects and configures OK (as far as I can say from logs and ipconfig)
but (almost) no packets manage to get across the link. From
Win95/Win98/WinME/FreeBSD all work fine.

I wonder if somebody has encountered  this problem and would be able to
offer some advice?

Thank you in advance
Eugene


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



Would you tell me how to write a timer in FreeBSD user space ?

2001-02-21 Thread chunan . li

Hi

I am newbie. Would you tell me how to write a timer in FreeBSD user space ?

Br.

Li ChunAn


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



sysctl -w net.link.ether.inet.log_arp_wrong_iface=0 not working

2001-02-21 Thread Peter Brezny

I updated the source and rebuilt a 4.2-stable machine this past weekend.

sysctl -w net.link.ether.inet.log_arp_wrong_iface=0 is located in rc.conf

and running that on the command line shows it's value to be 0 however, i
still receive messages like this.

Anyone know why this sysctl variable stoped working?

Feb 21 09:48:22 bsd1 /kernel: arp: 209.16.228.140 is on fxp0 but got reply
from 00:10:4b:99:7f:
6e on rl0

TIA

Peter Brezny
SysAdmin Services Inc.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message



Re: - RISCom card: lcp illegal conf-req in state initial -

2001-02-21 Thread Julian Elischer

Jean-Christophe Varaillon wrote:
> 
> Thanks for your prompt repply.
> 

> > > This is what dmesg | grep sr1 shows:
> > > 
> > > sr1: Adapter 0, port 1.
> > > sr1 XXX: driver didn't set ifq_maxlen
> > > sr1: transmit failed, ST0 80, ST1 48, ST3 0f, DSR 01.
> > > ...
> > > sr1: transmit failed, ST0 80, ST1 48, ST3 0f, DSR 01.
> > > sr1: transmit failed, ST0 80, ST1 48, ST3 0f, DSR 01.

I have seen this problem before with one model of sr card.

the driver seemed unable to be able to drive that model of card..
john hay ([EMAIL PROTECTED]) may be you best bet. (CC'd)



-- 
  __--_|\  Julian Elischer
 /   \ [EMAIL PROTECTED]
(   OZ) World tour 2000-2001
---> X_.---._/  
v

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message