LinuxQuestions.org
Visit Jeremy's Blog.
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 09-19-2005, 08:43 AM   #1
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
Networking w/D-link card


I haven't used Linux since Redhat 7, but I decided to give Fedora Core 4 a try. Installation went fine. The only problem is that I cannot access the network (either my home LAN or the internet). I can ping my machine via LOCALHOST, my ip address or machine name with no problem. I cannot ping my router or anything past it. This same setup works fine under Windows 2000. My nic is a D-Link DFE-530TX+. Below is the output from ifconfig, route and the ping of my router. My machine is 192.168.1.101, my router is 192.168.1.1 and my DNS is correct in /etc/resolve.conf


Quote:
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:05:5D:CE:1D:A5
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::205:5dff:fece:1da5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:14 Base address:0x1000


route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0


PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.101 icmp_seq=1 Destination Host Unreachable
From 192.168.1.101 icmp_seq=2 Destination Host Unreachable
From 192.168.1.101 icmp_seq=3 Destination Host Unreachable
 
Old 09-20-2005, 02:31 AM   #2
cigarstub
Member
 
Registered: Sep 2005
Posts: 145

Rep: Reputation: 15
So you can't connect to the NET with Fedora but can with Windows. I think that your ethernet card has a physical problem or its driver has. Also, the ip you gave are what you see behind the net mask, the world may see a different address for your router which usually begins with 255. I tried to ping the ping 192.168.1.1:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=0 ttl=254 time=0.540 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=0.521 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=0.504 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=0.504 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=254 time=0.505 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=254 time=0.505 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=254 time=0.504 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=254 time=0.504 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=254 time=0.505 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=254 time=0.503 ms

--- 192.168.1.1 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9000ms
rtt min/avg/max/mdev = 0.503/0.509/0.540/0.025 ms, pipe 2

This is surely not the address of your router.
 
Old 09-20-2005, 08:00 AM   #3
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
No, 192.168.1.1 is the address of the router (gateway) for my home LAN. The 192.168.x.x is an internat address assignment that is not available for the internet, so every LAN could have that same address.
 
Old 09-20-2005, 09:49 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
It's certainly strange that you can't ping the router. You could try running a packet sniffer like tcpdump to see if there is any traffic, but I am not sure what to look for in this situation.

The D-Link linux support page looks a bit ominous:

http://support.dlink.com/faq/view.as...eneral%20Linux

There are two revision versions of your card which seem to need some strange driver. Does 'lspci' give any useful information about the hardware?
 
Old 09-20-2005, 11:02 AM   #5
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
I agree that the D-link support page is strange! Anyway, lspci reports the following:
Quote:
00:10.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
I left off the other devices it reports.

tcpdump says the following:
Quote:
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
10:24:44.907234 arp who-has 192.168.1.1 tell 192.168.1.101
10:24:44.907249 arp who-has 192.168.1.1 tell 192.168.1.101
10:24:44.907252 arp who-has 192.168.1.1 tell 192.168.1.101
10:24:44.907256 arp who-has 192.168.1.1 tell 192.168.1.101
10:24:56.905410 arp who-has 192.168.1.1 tell 192.168.1.101
.
.
.
192.168.1.1 is my default gateway (router) and 192.168.1.101 is my machine.
 
Old 09-20-2005, 05:56 PM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Any flashing lights to say if data is getting to the router?

Only thing I can think of is that router is set to ignore this IP address for some reason. In range reserved for DHCP clients maybe? You could try some different (widely spaced) IP addresses or set your PC up to use DHCP.

Or check the settings on the router - is this some linksys/netgear/whatever box with a web interface?
 
Old 09-20-2005, 07:03 PM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Post /etc/resolv.conf
route -n should look something like;
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
Whats this
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0

Last edited by comprookie2000; 09-20-2005 at 07:08 PM.
 
Old 09-21-2005, 12:13 AM   #8
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by maroonbaboon
Any flashing lights to say if data is getting to the router?

Only thing I can think of is that router is set to ignore this IP address for some reason. In range reserved for DHCP clients maybe? You could try some different (widely spaced) IP addresses or set your PC up to use DHCP.

Or check the settings on the router - is this some linksys/netgear/whatever box with a web interface?
The address for the machine and the router are the same as I'm using when running Windows 2000 on it with no problem.

No blinking lights on the router when trying to access it with Linux.
 
Old 09-21-2005, 12:17 AM   #9
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by comprookie2000
Post /etc/resolv.conf
route -n should look something like;
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
Whats this
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
My /etc/resolv.conf shows the correct address for the DNS machines.

I do not know what 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 is. I'l try changing it to 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo and see what happens, although I have no problem pinging the localhost.
 
Old 09-21-2005, 12:37 AM   #10
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I also wondered about the entry in the routing table, but it looked harmless. Anyway the PC just claims to be broadcasting on the network for 192.168.1.1 and not getting any reply. I can't think of any network config problem that would cause this behaviour.

There are two drivers in the kernel for the Realtek 8139 chip, called 8139 and 8139too. Have you checked which you are using. Maybe try the other instead?

I assume that you set up both linux and w2k to use a static IP address?

Otherwise I am right out of suggestions
 
Old 09-21-2005, 07:49 AM   #11
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by maroonbaboon
There are two drivers in the kernel for the Realtek 8139 chip, called 8139 and 8139too. Have you checked which you are using. Maybe try the other instead?
How would I check which driver it uses, and go about changing it?

Quote:
Originally posted by maroonbaboon
I assume that you set up both linux and w2k to use a static IP address?
Yes, I am dual booting with GRUB2 and both are set up with the same static addresses.

I have to say THANKS! to everyone here for all the help. Even though the problem has not been solved, I do appreciate the help.
 
Old 09-21-2005, 08:34 AM   #12
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
To find out the drivers in use, run 'lsmod'. which shows all loaded modules and dependencies. To try changing ethernet driver first shut down interface (ifdown eth0) then rmmod <module name> to unload a module, then modprobe <module name> to load a new one. Finally 'ifup eth0'.

There may also be an 'alias eth0' line in /etc/modules.conf showing the network driver to be used.

The two 8139 drivers in the current kernel are 8139too and 8139cp. Not really sure what the second one is there for. The old plain 8139 seems to have been discontinued.

You could also try a another distro if you have bandwidth to download a live CD. e.g. Knoppix will configure itself to the network if it can.
 
Old 09-22-2005, 08:06 AM   #13
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
I tried swapping the drivers, with the same results. I will try downloading a different distribution and give that a shot. I'll follow up with results of that.

Thanks Again!
 
Old 09-23-2005, 09:27 AM   #14
RayJay1
LQ Newbie
 
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by maroonbaboon
You could also try a another distro if you have bandwidth to download a live CD. e.g. Knoppix will configure itself to the network if it can.
I downloaded and tried Knoppix and got the exact same network problem I was getting with Fedora Core 4.

I guess Linux will have to wait until I upgrade my nic, mobo, or whole PC.

Thanks Again for all the help.
 
Old 09-24-2005, 10:29 AM   #15
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Bad luck If you google your lspci output

"D-Link System Inc RTL8139 Ethernet (rev 10)"

you will see lots of reports on this unit, positive and negative. If you have the patience to trawl through you might pick up a hint. Generally I've had a lot of luck with cheapo no-name cards.
 
  


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
Networking. D-Link DSL G604T LAN DNS issues. limes.whatlimes Linux - Networking 4 09-21-2005 03:49 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
networking oddities with Orinoco card D-Link ap salmo Linux - Wireless Networking 0 04-16-2004 06:25 PM
I need help for my D-Link Ethernet Card stonesino Linux - Newbie 2 03-14-2004 08:00 PM
D-Link DWL 120+ Networking KillOvercast Linux - Wireless Networking 1 01-29-2004 06:10 PM

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

All times are GMT -5. The time now is 05: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