LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2007, 02:28 PM   #1
addin
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
A strange USB NIC


Hello, I bought a new USB ethernet adapter, but it seems not to work so well with debian. This is pretty much how I connect everything.

Verizon phoneline<--->DSL modem (192.168.1.1)<--
->Dlink wireless router (192.168.7.1)------wireless to laptop(xp) 7.100
\
\ethernet cable to debian (192.168.7.101)


Here is the strange stuff. On debian, I can exchange files with the XP laptop at rate of 700kb/s or so, both upload and download. I think it is ok since the NIC based on USB1.1.

However, I almost CANNOT access any website! All what I was able to do is just to see the frontpage of google.com or other webpage whose size no bigger than 1k bytes. I could not download any file from a remote ftp. But I could upload files to the remote public ftp server. Anyone knows how to sovle it? BTW: I checked the USB NIC, it works fine with the windows XP laptop.

iptables
localhost:/home/addin# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination

hain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

-----------------------------------------------------------
localhost:/home/addin# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.7.1 0.0.0.0 UG 0 0 0 eth0


================================================
localhost:/home/addin# traceroute 64.233.161.147
traceroute to 64.233.161.147 (64.233.161.147), 30 hops max, 40 byte packets
1 192.168.7.1 (192.168.7.1) 6.095 ms 1.902 ms 1.702 ms
2 dslrouter (192.168.1.1) 2.865 ms 2.741 ms 2.508 ms
3 * * *
===============================
traceroute results from xp
Tracing route to od-in-f147_google_com [64.233.161.147]
over a maximum of 30 hops:

1 1 ms 1 ms 1 ms 192.168.7.1
2 2 ms 2 ms 2 ms dslrouter [192.168.1.1]
3 31 ms 29 ms 30 ms 10.28.1.1
4 30 ms 29 ms 30 ms so-1-1-0-0.CORE-RTR2.LYN.verizon-gni.net

Last edited by addin; 04-19-2007 at 02:30 PM.
 
Old 04-19-2007, 05:35 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Using ifconfig, do you see any errors or dropped packets? What about in the syslog, any strange errors from the kernel?
 
Old 04-20-2007, 09:20 AM   #3
addin
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you. syslog is fine, I used ifconfig and here is the result. So it is obvioulsy something wrong at RX. Is
there a way to dig into eth0 driver and see why it drops packet?


After transfered a 45MB file to the laptop in LAN
eth0 Link encap:Ethernet HWaddr 00:60:6E:AA:0E:A9
inet addr:192.168.7.101 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::260:6eff:feaa:ea9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19948 errors:0 dropped:0 overruns:0 frame:0
TX packets:36465 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1239726 (1.1 MiB) TX bytes:47820580 (45.6 MiB)

After trying to connect to www.cnn.com
eth0 Link encap:Ethernet HWaddr 00:60:6E:AA:0E:A9
inet addr:192.168.7.101 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::260:6eff:feaa:ea9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20127 errors:16 dropped:8 overruns:0 frame:8
TX packets:36552 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1272239 (1.2 MiB) TX bytes:47830710 (45.6 MiB)

Quote:
Originally Posted by MS3FGX
Using ifconfig, do you see any errors or dropped packets? What about in the syslog, any strange errors from the kernel?
 
Old 04-20-2007, 10:09 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It is strange that you aren't getting anything in the system logs, even though it is acknowledging there is an error occurring through ifconfig.

There may be a way to load the module with an optional debug parameter. Can you determine which driver the adapter is actually using? It sounds like this might be a driver issue, in which case you will obviously need to figure out which one is being used before you can research it further.
 
Old 04-20-2007, 12:20 PM   #5
addin
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
The driver should be drivers/net/usb/dm9601.c. It is only recently added to the snapshot of kernel 2.6.21-rc7-git4. I failed to compile that kernel, so I pick out the dm9601.c and put it in the 2.6.20. I just don't know why it works fine if a destination is within the local network.

To best of my knowledge, the driver dm9601.c is oringally written for Davicom products and people
later extended it to support another brand ZT6688 which is my USB NIC chip.

here is a copy of dm9601.c http://grmso.net:8090/blob/5130cc7eb...69c9730882459/

I checked
localhost:/var/log# grep "eth0" *
localhost:/var/log# grep "9601" *
and no error report. Is there a way to activate the debug mode so that I could find out what's going on with my USB NIC. Thanks for your time,really appreciate it.

Quote:
Originally Posted by MS3FGX
It is strange that you aren't getting anything in the system logs, even though it is acknowledging there is an error occurring through ifconfig.

There may be a way to load the module with an optional debug parameter. Can you determine which driver the adapter is actually using? It sounds like this might be a driver issue, in which case you will obviously need to figure out which one is being used before you can research it further.
 
Old 07-21-2007, 10:55 PM   #6
landrewsir
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by addin
The driver should be drivers/net/usb/dm9601.c. It is only recently added to the snapshot of kernel 2.6.21-rc7-git4. I failed to compile that kernel, so I pick out the dm9601.c and put it in the 2.6.20. I just don't know why it works fine if a destination is within the local network.

To best of my knowledge, the driver dm9601.c is oringally written for Davicom products and people
later extended it to support another brand ZT6688 which is my USB NIC chip.

here is a copy of dm9601.c http://grmso.net:8090/blob/5130cc7eb...69c9730882459/

I checked
localhost:/var/log# grep "eth0" *
localhost:/var/log# grep "9601" *
and no error report. Is there a way to activate the debug mode so that I could find out what's going on with my USB NIC. Thanks for your time,really appreciate it.
I have the same problem with. After I set the MTU to 1000, then I can download and brows from other computer. do you have got better solution?
 
Old 02-07-2008, 11:34 AM   #7
claudio4j
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
I have a similar issue, where I have posted to ubuntuforums http://ubuntuforums.org/showthread.php?p=4273220

Quote:
Originally Posted by addin View Post
Hello, I bought a new USB ethernet adapter, but it seems not to work so well with debian. This is pretty much how I connect everything....
...
 
Old 02-07-2008, 01:33 PM   #8
claudio4j
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
I have solved the issue, related to my post
http://ubuntuforums.org/showthread.php?t=688314
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A strange USB NIC addin Linux - Networking 1 04-22-2007 02:39 AM
Strange NIC problem cachemonet Linux - Hardware 1 05-17-2006 12:23 PM
_very_ strange problems with r8169 nic driver outwardlymobile Linux - Hardware 3 11-24-2004 03:41 PM
strange video/nic problems Mugatu Linux - Hardware 2 02-26-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration