Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 May 1999 17:16:20 +0200
From:      "Josef Belkovics" <belkovic@osu.cz>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   3c509,ep,fbsd3.1
Message-ID:  <000d01bea91d$0bff9ec0$436a71c3@cl106067.osu.cz>

next in thread | raw e-mail | index | archive | help
I am using fbsd 3.1 as ip+ipx router with 2x3c905 (xl,pci) + 4x3c509
(ep,isa) boards.
Ep boards many times stays in the state OACTIVE (tx is idle) which means
that router does not route. I help myself with the following script:

while sleep 5 ; do
  for i in ep0 ep1 ep2 ep3 ; do
    set X`ifconfig ${i} | grep OACTIVE`
    if [ X${2} != X ] ; then
      logger -t ifcon ${i}: ${2}                  (see syslog messages
below)
      ifconfig ${i} down ; ifconfig ${i} up
    fi
  done
done

It does not help bandwith limitation (exactly help but bound must be 1Mb):

ipfw pipe 1 config bw 50M queue 100
ipfw pipe 2 config bw  3M queue 100    (1M seems 'to solve' problem)
ipfw pipe 3 config bw 50M queue 100
ipfw pipe 4 config bw  3M queue 100
#
ipfw add 01000 pipe 1 ip from any to any in  via xl*
ipfw add 01100 pipe 2 ip from any to any in  via ep*
ipfw add 61000 pipe 3 ip from any to any out via xl*
ipfw add 61100 pipe 4 ip from any to any out via ep*

I know that the same problem have various boards&drivers under linux. My
3c509 are connected in this way:

May 26 05:01:16 se106012 /kernel: ep0 at 0x300-0x30f irq 7 on isa
May 26 05:01:16 se106012 /kernel: ep0: aui/utp/bnc[*AUI*] address
00:20:af:b7:5
May 26 05:01:16 se106012 /kernel: ep1 at 0x310-0x31f irq 10 on isa
May 26 05:01:16 se106012 /kernel: ep1: aui/utp/bnc[*UTP*] address
00:20:af:e1:2
May 26 05:01:16 se106012 /kernel: ep2 at 0x320-0x32f irq 11 on isa
May 26 05:01:16 se106012 /kernel: ep2: aui/utp/bnc[*AUI*] address
00:a0:24:31:b
May 26 05:01:16 se106012 /kernel: ep3 at 0x330-0x33f irq 12 on isa
May 26 05:01:16 se106012 /kernel: ep3: aui/utp/bnc[*UTP*] address
00:a0:24:31:b

ep0 => aui+fiber_optic_tranceiver => switch
ep1 => utp+fiber_optic_tranceiver => bridge (2x2Mb microwave connection)
ep2 => aui+fiber_optic_tranceiver => switch
ep3 => switch

Router runs 4 years. Before installation of switches it routes well.
Systat -vmstat 1 reports that p5/66 has enough capacity. I have raised
timer tick (HZ=1000) but error has improved only little. The most little
errors has ep1.

Where is bug? In ep driver or in switches? (Please do not advise to connect
3c509 boards back into hubs - it is too late.)

May 28 11:06:39 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:14:12 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:18:04 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:20:52 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:23:42 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:23:58 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:24:14 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:24:53 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:26:55 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:27:00 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:48:09 se106012 ifcon: ep3:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 11:51:50 se106012 ifcon: ep3:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 12:08:16 se106012 ifcon: ep3:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 12:33:06 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 12:34:02 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI
May 28 12:34:29 se106012 ifcon: ep0:
flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SI

Josef Belkovics
s+n administrator
Ostrava University




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000d01bea91d$0bff9ec0$436a71c3>