Subject: Second network card?
To: None <netbsd-help@NetBSD.ORG>
From: =?iso-8859-2?Q?Mitja_Mu=BEeni=E8?= <mitja.muzenic@campus.fe.uni-lj.si>
List: netbsd-help
Date: 04/15/2002 01:54:57
Hello everybody!


I've ran into a brick wall when installing a second NIC in my 386 box
running NetBSD 1.5.2 and slightly modified GENERIC_TINY kernel.

The short version is that whatever NIC is detected first during boot works
OK but the other one doesn't seem to work, specifically it doesn't reply to
ping or be able to ping others or even itself.

Long story follows:

This is dmesg excerpt:

ep0 at isa0 port 0x200-0x20f irq 5: 3Com 3C509 Ethernet
ep0: address 00:a0:24:f1:ad:cf, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT (default 10baseT)
ep1 at isa0 port 0x300-0x30f irq 10: 3Com 3C509 Ethernet
ep1: address 00:50:04:3f:f1:71, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep1: 10baseT, 10base2 (default 10baseT)

HW seems ok.

papak# ifconfig -a
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:a0:24:f1:ad:cf
        media: Ethernet 10baseT
        inet 10.0.1.99 netmask 0xffffff00 broadcast 10.0.1.255
ep1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:50:04:3f:f1:71
        media: Ethernet 10baseT
        inet 10.0.1.97 netmask 0xffffff00 broadcast 10.0.1.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33228
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500

Whenever I ping from my Windows box 10.0.1.99 everything is OK. But when I
ping 10.0.1.97 no joy.
tcpdump -i ep1 sees some traffic and even ping requests, but has a lot of
dropped packets (e.g. 10111 packets received by filter 9225 packets dropped
by kernel).

I've tried to swap the NIC's (IRQ, port) and ep0 always works no matter
which physical card is attached to it. I even tried with a we0 or we1 card -
if it gets detected before ep0, it will work (and ep0 not), otherwise ep0
works and we* not.

I believe I don't have any filtering running.

papak# ipf -D
IP Filter: not initialized
papak# Apr 15 01:24:08 papak /netbsd: IP Filter: not initialized

Interesting that even ping 10.0.1.97 from netbsd box doesn't work.

papak# ping 10.0.1.97
^C
papak# ping 10.0.1.99
PING papak.tm-69-115.cable.telemach.net (10.0.1.99): 56 data bytes
64 bytes from 10.0.1.99: icmp_seq=0 ttl=255 time=8.566 ms
64 bytes from 10.0.1.99: icmp_seq=1 ttl=255 time=17.445 ms
^C
----papak.tm-69-115.cable.telemach.net PING Statistics----
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 8.566/13.005/17.445/6.278 ms


Am I missing anything obvious? Could I solve anything by moving to
netbsd-current?


Any help will be greatly appreciated.


Regards,


Mitja Muzenic