Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-19-2005, 08:43 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Rep:
|
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
|
|
|
|
09-20-2005, 02:31 AM
|
#2
|
Member
Registered: Sep 2005
Posts: 145
Rep:
|
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.
|
|
|
09-20-2005, 08:00 AM
|
#3
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
09-20-2005, 09:49 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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?
|
|
|
09-20-2005, 11:02 AM
|
#5
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
09-20-2005, 05:56 PM
|
#6
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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?
|
|
|
09-20-2005, 07:03 PM
|
#7
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
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.
|
|
|
09-21-2005, 12:13 AM
|
#8
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
09-21-2005, 12:17 AM
|
#9
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
09-21-2005, 12:37 AM
|
#10
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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 
|
|
|
09-21-2005, 07:49 AM
|
#11
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
09-21-2005, 08:34 AM
|
#12
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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.
|
|
|
09-22-2005, 08:06 AM
|
#13
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Original Poster
Rep:
|
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!
|
|
|
09-23-2005, 09:27 AM
|
#14
|
LQ Newbie
Registered: Sep 2005
Location: Lincoln, NE USA
Distribution: Fedora
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
09-24-2005, 10:29 AM
|
#15
|
Senior Member
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|