[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

eth1 in router box stopped working



I've been using a P233MMX woody box with stock 2.4.18-i386 kernel as a router 
for a home network for a couple weeks.  Had IP masquerading working using 
shorewall (also with the IPTABLES rules from the IPmasq HOWTO, but ended up 
staying with shorewall).  Then out of the blue (I at least didn't change any 
networking settings), eth1 which is connected to the switch and the internal 
computers stopped transferring any data or connecting to any computers (See 
cat /proc/interrupts below).  Can't ping in either direction, router <--> 
client; the clients are isolated.  Router is still connected to the outside 
world.  I checked the ethernet cards by replacing the original 8139too eth1 
card with a epic100 SMC card, and by swapping the 3c59x eth0 into the eth1 
position, neither of which changed anything.

The Ethernet-HOWTO says that since CPU0 = 0 in /proc/interrupts, there is 
likely a hardware conflict.  I'm confused by the io nomenclature in /proc (ie 
b800-b81f), which is different than in the Ethernet-HOWTO.  So my questions 
are:

Does this look like a hardware conflict problem, or something else?
What should I try next?  There are added steps in the Ethernet-HOWTO for 
resolving hardware conflicts, but it would be nice to know whether this is 
the problem before rebuilding the kernel, adding printk() statements to the 
driver source code or other time-consuming attempts to resolve hardware 
conflicts.

Is there a simpler way of reloading the network modules then either rebooting 
or shutting down networking and unloading all the networking modules, if it 
turns out I should play around with the io= parameters?

Notes:  eth0 is connected to a DSL modem
eth1 to a switching hub and internal computers
Using isapnp, all irqs are being assigned automatically
"PnP OS" setting in bios is OFF.
Sound modules are loaded, but no printer modules or anything using the 
parallel port.
both ethernet cards are detected at boot
During these debugging outputs, epic100 = eth0 and 3c59x = eth1 (the culprit!)

I've included the output of the following commands, in order:
cat /proc/interrupts
cat /proc/pci
cat /proc/ioports
ifconfig -a
route -n
lsmod
dmesg

Thank you for any help, Levi


retro:~# cat /proc/interrupts
           CPU0       
  0:      48466          XT-PIC  timer
  1:       1323          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  5:          2          XT-PIC  MS Sound System
  8:          3          XT-PIC  rtc
 10:        126          XT-PIC  eth0
 12:          0          XT-PIC  eth1
 14:       7329          XT-PIC  ide0
 15:          0          XT-PIC  ide1
NMI:          0 
ERR:          0


retro:~# cat /proc/pci
PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: Silicon Integrated Systems [SiS] 5597 [SiS5582] (rev 2).
      Master Capable.  Latency=32.  
  Bus  0, device   1, function  0:
    ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev 1).
  Bus  0, device   1, function  1:
    IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 208).
      IRQ 11.
      Master Capable.  Latency=32.  
      I/O at 0xd000 [0xd00f].
  Bus  0, device  10, function  0:
    Ethernet controller: 3Com Corporation 3c595 100BaseTX [Vortex] (rev 0).
      IRQ 12.
      Master Capable.  Latency=248.  Min Gnt=3.Max Lat=8.
      I/O at 0xb800 [0xb81f].
  Bus  0, device  11, function  0:
    Ethernet controller: Standard Microsystems Corp [SMC] 83C170QF (rev 6).
      IRQ 10.
      Master Capable.  Latency=32.  Min Gnt=8.Max Lat=28.
      I/O at 0xb400 [0xb4ff].
      Non-prefetchable 32 bit memory at 0xe5800000 [0xe5800fff].
  Bus  0, device  19, function  0:
    VGA compatible controller: Silicon Integrated Systems [SiS] 5597/5598 VGA 
(rev 101).
      Prefetchable 32 bit memory at 0xe7000000 [0xe73fffff].
      Non-prefetchable 32 bit memory at 0xe5000000 [0xe500ffff].
      I/O at 0xb000 [0xb07f].

retro:~# cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0100-0101 : opl3sa2
0170-0177 : ide1
01f0-01f7 : ide0
0213-0213 : isapnp read
02f8-02ff : serial(set)
0300-0301 : mpu401
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(set)
0a79-0a79 : isapnp write
0cf8-0cff : PCI conf1
0e80-0e83 : WSS config
0e84-0e87 : MS Sound System
b000-b07f : Silicon Integrated Systems [SiS] 5597/5598 VGA
b400-b4ff : Standard Microsystems Corp [SMC] 83C170QF
  b400-b4ff : epic100
b800-b81f : 3Com Corporation 3c595 100BaseTX [Vortex]
  b800-b81f : 00:0a.0
d000-d00f : Silicon Integrated Systems [SiS] 5513 [IDE]
  d000-d007 : ide0
  d008-d00f : ide1

retro:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:E0:29:24:01:EA  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:83 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:5840 (5.7 KiB)  TX bytes:3580 (3.4 KiB)
          Interrupt:10 Base address:0xb400 

eth1      Link encap:Ethernet  HWaddr 00:A0:24:99:F6:17  
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 b)  TX bytes:2486 (2.4 KiB)
          Interrupt:12 Base address:0xb800 

gre0      Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          NOARP  MTU:1476  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5918 (5.7 KiB)  TX bytes:5918 (5.7 KiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:216.138.229.80  P-t-P:216.138.192.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1450  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:1320 (1.2 KiB)  TX bytes:928 (928.0 b)

tunl0     Link encap:IPIP Tunnel  HWaddr   
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

retro:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
216.138.192.1   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         216.138.192.1   0.0.0.0         UG    0      0        0 ppp0

retro:~# lsmod
Module                  Size  Used by    Tainted: P  
ip_nat_irc              2368   0  (unused)
ip_conntrack_irc        2496   0  (unused)
ppp_deflate            38912   0  (autoclean)
bsd_comp                3936   0  (autoclean)
nfsd                   65600   8  (autoclean)
lockd                  47296   1  (autoclean) [nfsd]
sunrpc                 58260   1  (autoclean) [nfsd lockd]
apm                     9148   1  (autoclean)
ppp_async               6464   1  (autoclean)
af_packet              11784   3  (autoclean)
ppp_generic            18920   3  (autoclean) [ppp_deflate bsd_comp ppp_async]
slhc                    4480   1  (autoclean) [ppp_generic]
ipt_unclean             6720   0  (unused)
ipt_tos                  480   0  (unused)
ipt_tcpmss               928   0  (unused)
ipt_state                608  21 
ipt_owner               1088   0  (unused)
ipt_multiport            640   0  (unused)
ipt_mark                 480   0  (unused)
ipt_mac                  672   0  (unused)
ipt_limit                960   0  (unused)
ipt_TOS                 1024  12 
ipt_TCPMSS              2304   0  (unused)
ipt_REJECT              2784   2 
ipt_REDIRECT             736   1 
ipt_MIRROR              1024   0  (unused)
ipt_MASQUERADE          1216   1 
ipt_MARK                 736   0  (unused)
ipt_LOG                 3136   0  (unused)
ip_queue                5140   0  (unused)
ip_nat_ftp              2944   0  (unused)
iptable_mangle          2112   1 
iptable_filter          1728   1 
iptable_nat            12884   3  [ip_nat_irc ipt_REDIRECT ipt_MASQUERADE 
ip_nat_ftp]
ip_conntrack_ftp        3232   0  (unused)
ip_conntrack           12972   4  [ip_nat_irc ip_conntrack_irc ipt_state 
ipt_REDIRECT ipt_MASQUERADE ip_nat_ftp iptable_nat ip_conntrack_ftp]
ip_tables              10528  22  [ipt_unclean ipt_tos ipt_tcpmss ipt_state 
ipt_owner ipt_multiport ipt_mark ipt_mac ipt_limit ipt_TOS ipt_TCPMSS 
ipt_REJECT ipt_REDIRECT ipt_MIRROR ipt_MASQUERADE ipt_MARK ipt_LOG 
iptable_mangle iptable_filter iptable_nat]
ipip                    6080   0  (unused)
ip_gre                  7936   0  (unused)
opl3sa2                 7840   0  (unused)
ad1848                 20768   0  [opl3sa2]
mpu401                 18816   0  [opl3sa2]
isa-pnp                27752   0  [opl3sa2 ad1848]
sound                  53836   0  [opl3sa2 ad1848 mpu401]
soundcore               3556   6  [sound]
3c59x                  24872   1 
epic100                13092   1 
mii                     1056   0  [epic100]
rtc                     5816   0  (autoclean)
ide-disk                6560   3  (autoclean)
ide-probe-mod           7968   0  (autoclean)
ide-mod               129740   3  (autoclean) [ide-disk ide-probe-mod]
ext3                   56192   2  (autoclean)
jbd                    35032   2  (autoclean) [ext3]
unix                   13348  10  (autoclean)

retro:~# dmesg
Linux version 2.4.18-386 (herbert@gondolin) (gcc version 2.95.4 20011002 
(Debian prerelease)) #2 Sun Apr 14 10:38:08 EST 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000007f00000 (usable)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 32512
zone(0): 4096 pages.
zone(1): 28416 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=Linux ro root=302
Initializing CPU#0
Detected 233.030 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 465.30 BogoMIPS
Memory: 123428k/130048k available (895k kernel code, 6236k reserved, 233k 
data, 192k init, 0k highmem)
Dentry-cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Before vendor init, caps: 008001bf 00000000 00000000, vendor = 0
Intel Pentium with F0 0F bug - workaround enabled.
CPU: After vendor init, caps: 008001bf 00000000 00000000 00000000
CPU:     After generic, caps: 008001bf 00000000 00000000 00000000
CPU:             Common caps: 008001bf 00000000 00000000 00000000
CPU: Intel Pentium MMX stepping 03
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
PCI: PCI BIOS revision 2.10 entry at 0xf04e0, last bus=0
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router SIS [1039/0008] at 00:01.0
Disabling direct PCI/PCI transfers.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
devfs: v1.10 (20020120) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT 
SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
Linux IP multicast router 0.06 plus PIM-SM
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 2616 blocks [1 disk] into ram disk... 
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\done.
Freeing initrd memory: 2616k freed
VFS: Mounted root (cramfs filesystem).
Freeing unused kernel memory: 192k freed
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Journalled Block Device driver loaded
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller on PCI bus 00 dev 09
PCI: Found IRQ 11 for device 00:01.1
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SiS5597
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:pio
hda: Maxtor 7540 AV, ATA DISK drive
hdb: FUJITSU MPD3043AT, ATA DISK drive
hdc: CDU5211, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 1055020 sectors (540 MB) w/32KiB Cache, CHS=1046/16/63, DMA
hdb: 8448300 sectors (4326 MB) w/512KiB Cache, CHS=8940/15/63, UDMA(33)
Partition check:
 /dev/ide/host0/bus0/target0/lun0: [PTBL] [523/32/63] p1 p2
 /dev/ide/host0/bus0/target1/lun0: [PTBL] [525/255/63] p1
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding Swap: 124956k swap-space (priority -1)
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,2), internal journal
Real Time Clock Driver v1.10e
epic100.c:v1.11 1/7/2001 Written by Donald Becker <becker@scyld.com>
  http://www.scyld.com/network/epic100.html
  (unofficial 2.4.x kernel port, version 1.11+LK1.1.12, Jan 18, 2002)
PCI: Found IRQ 10 for device 00:0b.0
epic100(00:0b.0): MII transceiver #3 control 3000 status 7809.
epic100(00:0b.0): Autonegotiation advertising 01e1 link partner 0001.
eth0: SMSC EPIC/100 83c170 at 0xb400, IRQ 10, 00:e0:29:24:01:ea.
PCI: Found IRQ 12 for device 00:0a.0
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
00:0a.0: 3Com PCI 3c595 Vortex 100baseTx at 0xb800. Vers LK1.1.16
00:0a.0: Overriding PCI latency timer (CFLT) setting of 32, new value is 248.
isapnp: Scanning for PnP cards...
isapnp: Card 'OPL3-SA3 Sound Board'
isapnp: 1 Plug & Play card detected total
ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
ad1848: No ISAPnP cards found, trying standard ones...
opl3sa2: Activated ISA PnP card 0 (active=1)
opl3sa2: chipset version = 0x4
opl3sa2: Found OPL3-SA3 (YMF715E or YMF719E)
opl3sa2: 1 PnP card(s) found.
GRE over IPv4 tunneling driver
IPv4 over IPv4 tunneling driver
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack (1016 buckets, 8128 max)
kjournald starting.  Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,65), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.1
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
PPP BSD Compression module registered
PPP Deflate Compression module registered



Reply to: