Date: Thu, 5 Jul 2001 16:43:17 +0100 From: "Koster, K.J." <K.J.Koster@kpn.com> To: "'OpsyDopsy@netcabo.pt'" <OpsyDopsy@netcabo.pt> Cc: hardware@FreeBSD.ORG Subject: RE: Realtek 8139 problem... Message-ID: <59063B5B4D98D311BC0D0001FA7E452205FD9D2D@l04.research.kpn.com>
index | next in thread | raw e-mail
Dear JF,
Those RealTek cards are broken by design. Use Geocrawler to search the
mailing list archives on this subject, and you will from quite some
discussion.
Kees Jan
================================================
You are only young once,
but you can stay immature all your life.
> -----Original Message-----
> From: JF [mailto:OpsyDopsy@netcabo.pt]
> Sent: vrijdag 29 juni 2001 12:53
> To: hardware@FreeBSD.ORG
> Subject: Realtek 8139 problem...
>
>
> Heys, from -questions no one could find a solution for this
> problem... but
> then again I was probably posting to the wrong list :-/
>
> I've recently (2001/06/22) updated and rebuilt all my sources.
> I have a Realtek 8139 and am running IPFilter as a firewall
> (ipf.rules at the
> end)
> I aint connected to a LAN.
>
> Now the problem is that sometimes all my connections just
> start timing out,
> even though my cablemodem has a fixed clean signal.
> These timeouts happen randomly as far as I can tell and the
> only way to
> regain my connection is by powering the cable modem off and
> back on and
> running a restart DHCP client script that I will paste at the
> end of the mail.
>
> In windows these timeouts do not ocur.
> I have the same subnet mask in windows and in FBSD.
>
> Now, I cought something through syslogd that seems to be the
> start of the
> problem: Jun 29 12:34:11 <kern.crit> OpsyDopsy /kernel: pcm0:
> record overrun,
> dumping 176896 bytes
> I'll paste the whole log at the end of the mail.
>
> The renewals are beeing applyed correctly (log at the end of the mail)
> Besides this small problem the network works perfectly fine
> the rest of the
> time.
>
> I've cought something strange in a traceroute I made (the
> complete traceroute
> is at the end of the mail) that was the first hop the packs pass is a
> 10.22.255.254 address when this should be if I'm not mistaken
> my default
> gateway 213.22.3.254.
>
> I will also paste a netstat -rn and a dmesg hoping these
> extra infos will
> help.
>
> I just dont know why these timeouts happen and hope someone
> can help me.
>
> Thanks in advance for all your time.
>
> JF
>
> PS: I've already changed the NIC from a nearer to the lower
> part of the box
> slot to a higher one... syslogd keeps giving the same error.
>
>
>
> Netstat:
> bash-2.05# netstat -rn
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use
> Netif Expire
> default 213.22.3.254 UGSc 41 22 rl0
> 127.0.0.1 127.0.0.1 UH 0 0 lo0
> 213.22/22 link#1 UC 1 0
> rl0 =>
> 213.22.3.254 0:4:28:23:ec:54 UHLW 42 0
> rl0 71
>
> Internet6:
> Destination Gateway
> Flags
> Netif Expire
> ::1 ::1
> UH
> lo0
> fe80::%rl0/64 link#1
> UC
> rl0
> fe80::%lo0/64 fe80::1%lo0
> Uc
> lo0
> ff01::/32 ::1
> U
> lo0
> ff02::%rl0/32 link#1
> UC
> rl0
> ff02::%lo0/32 fe80::1%lo0
> UC
> lo0
>
>
> Traceroute:
> bash-2.05# traceroute telepac.pt
> traceroute to telepac.pt (194.65.3.20), 30 hops max, 40 byte packets
> 1 10.22.255.254 (10.22.255.254) 6.978 ms 9.164 ms 9.546 ms
> 2 212.113.164.10 (212.113.164.10) 9.738 ms 7.296 ms 8.648 ms
> 3 lpc-br01-porta1.netcabo.net (212.113.161.33) 9.650 ms
> 7.984 ms 7.433 ms
> 4 213.13.128.25 (213.13.128.25) 7.529 ms 8.652 ms 9.077 ms
> 5 lcatrt2.telepac.net (213.13.135.90) 8.180 ms 7.984 ms 10.577 ms
> 6 katrt3.telepac.net (213.13.135.242) 9.508 ms 16.839 ms
> 10.751 ms
> 7 tpone.telepac.pt (194.65.3.20) 10.487 ms * 8.656 ms
>
>
> DHCP Renewal:
> Jun 22 18:58:23 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST on rl0
> to 212.113.164.3 port 67
> Jun 22 18:58:23 <daemon.info> OpsyDopsy dhclient: DHCPACK
> from 212.113.164.3
> Jun 22 18:58:23 <daemon.info> OpsyDopsy dhclient: bound to
> 213.22.0.69 --
> renewal in 900 seconds.
>
>
> DHCP Restart Script:
> #!/bin/sh
> # Kill old DHCP process
> /bin/kill `cat /var/run/dhclient.pid`
> # Delete old DHCP IP address
> /sbin/ifconfig rl0 inet delete
> # Clear the old route
> /sbin/route -q flush -inet
> # Start new dhclient process
> /sbin/dhclient rl0
>
> Dmesg:
> Copyright (c) 1992-2001 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992,
> 1993, 1994
> The Regents of the University of California. All
> rights reserved.
> FreeBSD 4.3-STABLE #0: Fri Jun 22 15:43:46 WEST 2001
> root@OpsyDopsy.net.dhis.org:/usr/obj/usr/src/sys/PIII-650
> Timecounter "i8254" frequency 1193182 Hz
> CPU: Pentium III/Pentium III Xeon/Celeron (651.48-MHz 686-class CPU)
> Origin = "GenuineIntel" Id = 0x681 Stepping = 1
>
> Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR
,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
> real memory = 402636800 (393200K bytes)
> config> di sn0
> No such device: sn0
> Invalid command or syntax. Type `?' for help.
> config> di lnc0
> No such device: lnc0
> Invalid command or syntax. Type `?' for help.
> config> di ie0
> No such device: ie0
> Invalid command or syntax. Type `?' for help.
> config> di fe0
> No such device: fe0
> Invalid command or syntax. Type `?' for help.
> config> q
> avail memory = 388390912 (379288K bytes)
> Preloaded elf kernel "kernel" at 0xc034d000.
> Preloaded userconfig_script "/boot/kernel.conf" at 0xc034d09c.
> VESA: v3.0, 4096k memory, flags:0x1, mode table:0xc02e7462 (1000022)
> VESA: NVidia
> Pentium Pro MTRR support enabled
> md0: Malloc disk
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
> pci0: <PCI bus> on pcib0
> pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at
> device 1.0 on pci0
> pci1: <PCI bus> on pcib1
> pci1: <NVidia GeForce DDR graphics accelerator> at 0.0 irq 11
> isab0: <Intel 82371AB PCI to ISA bridge> at device 4.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel PIIX4 ATA33 controller> port 0xd800-0xd80f at
> device 4.1 on
> pci0ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 4.2 irq 9
> chip1: <Intel 82371AB Power management controller> port
> 0xe800-0xe80f at
> device
> 4.3 on pci0
> pcm0: <Creative EMU10K1> port 0xd000-0xd01f irq 5 at device
> 10.0 on pci0
> rl0: <RealTek 8139 10/100BaseTX> port 0xb400-0xb4ff mem
> 0xc5800000-0xc58000ff
> irq 10 at device 11.0 on pci0
> rl0: Ethernet address: 00:00:b4:c2:2d:28
> miibus0: <MII bus> on rl0
> rlphy0: <RealTek internal media interface> on miibus0
> rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> atapci1: <Promise ATA66 controller> port
> 0x9800-0x983f,0xa000-0xa003,0xa400-0xa407,0xa800-0xa803,0xb000
> -0xb007 mem
> 0xc5000000-0xc501ffff irq 5 at device 14.0 on pci0
> ata2: at 0xb000 on atapci1
> ata3: at 0xa400 on atapci1
> orm0: <Option ROMs> at iomem 0xc0000-0xc97ff,0xcc000-0xcd7ff on isa0
> fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6
> drq 2 on isa0
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: model IntelliMouse, device ID 3
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem
> 0xa0000-0xbffff on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
> sio0: type 16550A
> sio1 at port 0x2f8-0x2ff irq 3 on isa0
> sio1: type 16550A
> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
> ppc0: FIFO with 16/16/9 bytes threshold
> ppi0: <Parallel I/O> on ppbus0
> lpt0: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> IP Filter: v3.4.16 initialized. Default = pass all, Logging = enabled
> ad4: 19541MB <Maxtor 92041U4> [39703/16/63] at ata2-master UDMA66
> acd0: CD-RW <PLEXTOR CD-R PX-W1610A> at ata0-master using PIO4
> acd1: CDROM <SAMSUNG CD-ROM SC-152B> at ata1-master using PIO4
> Mounting root from ufs:/dev/ad4s3a
> pcm0: record overrun, dumping 176896 bytes
> ·1
>
> IPF.Rules:
> #Pass in on loopback device
> pass in quick on lo0
>
> #Block unroutable packages
> block in quick on rl0 from 192.168.0.0/16 to any
> block in quick on rl0 from 172.16.0.0/12 to any
> block in quick on rl0 from 10.0.0.0/8 to any
> block out quick on rl0 from 192.168.0.0/16 to any
> block out quick on rl0 from 172.16.0.0/12 to any
> block out quick on rl0 from 10.0.0.0/8 to any
>
> #Block from possible spoofs
> block in quick on rl0 from 127.0.0.0/8 to any
> block in quick on rl0 from 0.0.0.0/8 to any
> block out quick on rl0 from 127.0.0.0/8 to any
> block out quick on rl0 from 0.0.0.0/8 to any
>
> #Services: smtp, web, portmap, syslogd, lpd, X
> block in log first quick on rl0 proto tcp from any to any
> port = 25
> block in log first quick on rl0 proto tcp from any to any
> port = 80
> block in log first quick on rl0 proto tcp/udp from any to any
> port = 111
> block in log first quick on rl0 proto udp from any to any
> port = 514
> block in log first quick on rl0 proto tcp from any to any
> port = 515
> block in log first quick on rl0 proto tcp from any to any
> port = 6000
>
> block in log first quick on rl0 proto tcp from any to any
> port = 4000
> block in log first quick on rl0 proto tcp from any to any port =
> submission
> block in log first quick on rl0 proto udp from any to any
> port = bootpc
>
> #Pass all out
> pass out quick on rl0 proto tcp from any to any keep state
> pass out quick on rl0 proto icmp from any to any keep state
>
> #Pass in for some ICMP types
> pass in quick on rl0 proto icmp from any to any icmp-type
> echo keep state
> pass in quick on rl0 proto icmp from any to any icmp-type
> echorep keep state
> pass in quick on rl0 proto icmp from any to any icmp-type
> unreach keep state
> pass in quick on rl0 proto icmp from any to any icmp-type
> squench keep state
> pass in quick on rl0 proto icmp from any to any icmp-type
> timex keep state
>
> #Pass in for ftpd, sshd and dhis
> pass in quick on rl0 proto tcp from any to any port = ftp
> flags S
> keep s
> tate keep frags
> pass in quick on rl0 proto tcp from any to any port =
> ftp-data flags S
> keep s
> tate keep frags
> pass in quick on rl0 proto tcp from any to any port = ssh
> flags S
> keep s
> tate keep frags
> pass in quick on rl0 proto udp from any to any port =
> 58800
> keep s
> tate keep frags
>
> #Block the rest
> block in log first quick proto tcp from any to any
> block in log first quick proto udp from any to any
> block in log first quick proto icmp from any to any
>
>
> Problem syslogd logs:
>
> Everything seems fine here:
>
> Jun 25 08:42:31 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 212.113.164.3 port 67
> Jun 25 08:42:31 <daemon.info> OpsyDopsy dhclient: DHCPACK
> from 212.113.164.3
> Jun 25 08:42:31 <daemon.info> OpsyDopsy dhclient: bound to
> 213.22.0.69 --
> renewal in 900 seconds.
>
>
> Source of problem I think:
>
> Jun 25 08:48:07 <kern.crit> OpsyDopsy /kernel: pcm0: record
> overrun, dumping
> 177408 bytes
>
>
> DHClient trying to regain connection and failing:
>
> Jun 25 08:57:31 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 212.113.164.3 port 67
> Jun 25 08:57:58 <daemon.info> OpsyDopsy last message repeated 3 times
> Jun 25 08:58:53 <daemon.info> OpsyDopsy last message repeated 2 times
> Jun 25 09:00:27 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 212.113.164.3 port 67
> Jun 25 09:01:31 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 212.113.164.3 port 67
> Jun 25 09:03:31 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 212.113.164.3 port 67
> Jun 25 09:03:31 <daemon.err> OpsyDopsy dhclient: send_packet:
> No route to host
> Jun 25 09:05:16 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 212.113.164.3 port 67
> Jun 25 09:08:13 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 212.113.164.3 port 67
> Jun 25 09:09:09 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 255.255.255.255 port 67
> Jun 25 09:09:52 <daemon.info> OpsyDopsy last message repeated 2 times
> Jun 25 09:10:21 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 255.255.255.255 port 67
> Jun 25 09:10:32 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 255.255.255.255 port 67
> Jun 25 09:12:28 <daemon.info> OpsyDopsy last message repeated 5 times
> Jun 25 09:12:32 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 6
> Jun 25 09:12:38 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 13
> Jun 25 09:12:51 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 10
> Jun 25 09:13:01 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 13
> Jun 25 09:13:14 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 15
> Jun 25 09:13:29 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 4
> Jun 25 09:13:34 <daemon.info> OpsyDopsy dhclient: No
> DHCPOFFERS received.
> Jun 25 09:13:34 <daemon.info> OpsyDopsy dhclient: No working
> leases in
> persistent database - sleeping.
>
>
> After running the script:
>
> Jun 25 09:54:01 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 21
> Jun 25 09:54:01 <daemon.info> OpsyDopsy dhclient: DHCPOFFER
> from 192.168.100.1
> Jun 25 09:54:03 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 255.255.255.255 port 67
> Jun 25 09:54:03 <daemon.info> OpsyDopsy dhclient: DHCPACK
> from 192.168.100.1
> Jun 25 09:54:04 <user.notice> OpsyDopsy dhclient: New IP
> Address(rl0):
> 192.168.100.18
> Jun 25 09:54:04 <user.notice> OpsyDopsy dhclient: New Subnet
> Mask (rl0):
> 255.255.255.192
> Jun 25 09:54:04 <user.notice> OpsyDopsy dhclient: New
> Broadcast Address(rl0):
> 192.168.100.63
> Jun 25 09:54:04 <user.notice> OpsyDopsy dhclient: New
> Routers: 192.168.100.1
> Jun 25 09:54:04 <daemon.info> OpsyDopsy dhclient: bound to
> 192.168.100.18 --
> renewal in 5 seconds.
> Jun 25 09:54:05 <daemon.info> OpsyDopsy dhclient: Listening on
> BPF/rl0/00:00:b4:c2:2d:28
> Jun 25 09:54:05 <daemon.info> OpsyDopsy dhclient: Sending on
> BPF/rl0/00:00:b4:c2:2d:28
> Jun 25 09:54:05 <daemon.info> OpsyDopsy dhclient: Sending on
> Socket/fallback/fallback-net
> Jun 25 09:54:05 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 255.255.255.255 port 67
> Jun 25 09:54:05 <daemon.info> OpsyDopsy dhclient: DHCPNAK
> from 10.22.255.254
> Jun 25 09:54:05 <daemon.info> OpsyDopsy dhclient:
> DHCPDISCOVER on rl0 to
> 255.255.255.255 port 67 interval 3
> Jun 25 09:54:05 <daemon.info> OpsyDopsy dhclient: DHCPOFFER
> from 10.22.255.254
> Jun 25 09:54:07 <daemon.info> OpsyDopsy dhclient: DHCPREQUEST
> on rl0 to
> 255.255.255.255 port 67
> Jun 25 09:54:07 <daemon.info> OpsyDopsy dhclient: DHCPACK
> from 10.22.255.254
> Jun 25 09:54:07 <user.notice> OpsyDopsy dhclient: New IP
> Address(rl0):
> 213.22.0.69
> Jun 25 09:54:07 <user.notice> OpsyDopsy dhclient: New Subnet
> Mask (rl0):
> 255.255.252.0
> Jun 25 09:54:07 <user.notice> OpsyDopsy dhclient: New
> Broadcast Address(rl0):
> 213.22.3.255
> Jun 25 09:54:07 <user.notice> OpsyDopsy dhclient: New
> Routers: 213.22.3.254
> Jun 25 09:54:07 <daemon.info> OpsyDopsy dhclient: bound to
> 213.22.0.69 --
> renewal in 900 seconds.
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hardware" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59063B5B4D98D311BC0D0001FA7E452205FD9D2D>
