LinuxQuestions.org
Visit Jeremy's Blog.
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 10-23-2004, 10:33 PM   #1
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Rep: Reputation: 0
Question WEIRD connection problem w/ D-Link Router


I have a dual-boot box (Win98 & ubuntu.linux). It's connected by ethernet to a D-Link DI-624 router (Rev. C - Firmware 2.50), behind a Motorola cable modem. All hardware and OS's set up for DHCP.

Booting into Win98 gets me connected, but booting into linux fails to give me an ip address. I assumed the problem was the linux configuration, BUT I find nothing wrong there.

HERE'S THE ODD PART ... if I connect the PC directly to the modem and boot up linux, I get connected. I also have a D-Link bridge that is wirelessly connected to the router. When I plug the PC into the bridge ... bingo ... I am connected.

I suspect the problem is with the router. I've tried all 4 ethernet ports, and have tried turning off mac filters .. and even tried static address instead of dhcp. I called D-Link support, but they claim that they don't offer customer support for linux.

Anyone have any suggestions ? Or, anyone successfully using the same router w/ linux ?
 
Old 10-23-2004, 11:13 PM   #2
stuart1946
LQ Newbie
 
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
I have a dual-boot box (Win98 & ubuntu.linux). It's connected by ethernet to a D-Link DI-624 router (Rev. C - Firmware 2.50), behind a Motorola cable modem. All hardware and OS's set up for DHCP.
 
Old 10-23-2004, 11:27 PM   #3
stuart1946
LQ Newbie
 
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
I am new here, so please 'scuse the last post - attempt to quote

I have a di-604, so should work almost the same

According to the cable tech who installed the modem, windows98 makes a lot of assumptions which linux must be told about .

Try this
using windows log in to the router as admin, copy down the router's outside ip address, dns server, gateway etc.
try to ping an outside ip, like yahoo.com
if that's ok then log off the router
run winipcfg, record your local ip, dns server, gateway, etc.
in a dos prompt run tracert to a known ip and record the hops.

It's so much easier if you can have a windows machine up at the same time as trying to get linux to work, but ....

In linux set up the network with static ip addresses, like 192.168.0.11 for windows and .22 for linux. Let the router do dhcp if it wants to - it won't hurt.
configure network with gateway of 192.168.0.1, dns as reported by the router, use a dummy domain & host name l(I use drake.stuart, music.stuart etc for different machines)
restart the network, try to ping the router at 192.168.0.1
If that works, try to ping a known ip address such as the outside ip address reported by the router.
if that works then try to ping a known name.

Once I see where it fails we know what to fix.

Stuart
 
Old 10-24-2004, 03:32 PM   #4
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Original Poster
Rep: Reputation: 0
Still not connecting

Stuart: Thanks for taking the time to assist me. I followed your advice, but after restarting my network in linux, all ping's ( internal ip address. ISP's address, and google.com) came back with 100% packet loss.

Here are the details:

First, in Win98, I logged onto the router, and it reported the following:

WAN (Outside addresses)
ip 69.115.xx.xxx

subnet mask 255.255.248.0

gateway 69.115.xx.x

DNS 167.206.3.233
167.206.3.167
167.206.3.234



LAN 192.168.0.1

subnet mask 255.255.255.0

I pinged the LAN and it was successful. I exited the router, and did "winipcfg" in Win98, and received the following response:

Host OurPC

DNS Servers 167.206.3.233
167.206.3.167
167.206.3.234
128.3.255.56
128.37.25.104
127.39.3.132
128.50.166.192

IP 192.168.0.101

subnet mask 255.255.255.0

Default gateway 192.168.0.1

DHCP Server 192.168.0.1


Windows 98 connects thru the router. I rebooted into linux (it failed to connect, of course), and I set up linux networking as follows:

Static address 192.168.0.22

gateway 192.168.0.1

subnet mask 255.255.255.0

DNS same 7 servers as reported by winipcfg

domain name OurPC


I restarted the network, and all subsequent pings have failed. I am still unable to connect thru the router.
 
Old 10-24-2004, 05:40 PM   #5
stuart1946
LQ Newbie
 
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
That helps a lot.

Given that windows can access everything, the router/internet setup is fine.
I forgot to ask for the linux output of

(as root) ifconfig

sounds like your network card is not configured.
what card are you using? remember that linux uses generic drivers, often either realtech 8139 or tulip
drivers for all kinds of different cards.


try using the loopback to ping yourself
ping 127.0.0.1
ping localhost
ping 192.168.0.22 (if that is the linux address)

If these fail, then your tcp/ip protocol is broken. If these work, then tcp/ip is ok but your card is broken.

Stuart
 
Old 10-24-2004, 08:48 PM   #6
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Original Poster
Rep: Reputation: 0
Stuart:

I successfully pinged the 3 local addresses: 127.0.0.1 / localhost / 192.168.0.22.

Following is the output of ifconfig:

eth0 Link encap:Ethernet HWaddr 00:50A:OA:2B:5B
inet addr:192.168.0.22 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe8O: :250:daff:fe0a:2b5b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:20 dropped:0 overruns:0 frame:40
TX packets:143 errors:0 dropped:0 overruns:8 carrier:0
collisions :0 txqueuelen: 1000
RX bytes:0 (0.0 b) TX bytes:8658 (8.4 KiB)
Interrupt:9 Base address:Oxl000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16205 errors:0 dropped:0 overruns:0 frame:0
TX packets:16205 errors:0 dropped:0 overruns:0 carrier:0
collisions :0 txqueuelen: 0
RX bytes:2060708 (1.9 MiB) TX bytes:2060708 (1.9 MiB)


My ethernet card is a 3Com (3c90x family).


As you think thru the possible root cause, just a reminder that I have successfully connected before under linux ... by connecting directly from PC to the cable modem and also by pugging into a wireless bridge that was downstream from the router. The problem seems to occur when I connect into the router's LAN port.

Thanks again!
 
Old 10-24-2004, 09:44 PM   #7
dmarsh
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
I'm having the same problem with the same D-Link router. No problems in WinXP (LAN connections, pings, web access). In Linux my connection to the router and other computers on my home LAN are just fine. Connection to anything on the other side of the router fails--only in Linux. I've exhausted the various combinations of attributes that I can think of.

My ethernet adapter: Realtek RTL 8139/810x Family.

David
 
Old 10-24-2004, 10:11 PM   #8
stuart1946
LQ Newbie
 
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
I am still a novice with linux, but everything so far looks ok. This is the time I start looking outside the box - like bad cables. Some routers (like my d-link) automatically switch to accommodate straight or crossover cables.

Another thought is network address resolution. The post from dmarsh got me thinking. I also have realtec network cards, I thought the old 3-com unit might be a problem.
But his reference to finding the router and nothing outside indicates a dns problem (or undefined dns) on his machine.
You might want to check the services you have on - if you have a dns server running in linux (but not in windows) that may be enough to confuse things.

I have never even tried to use a local dns server, but that started when I had a peer to peer network and then later added a samba server. I could never get it to find the windows machines consistently, so I gave up and made it just a server, put the machine down on the floor and 'forgot' about it

Try turning off or removing the reference to dhcp server, that may be conflicting with the static ip.

I would suggest also checking what other things, services, etc are significantly different between your win and linux setup.

I have run out of ideas for now
Stuart
 
Old 10-25-2004, 06:48 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,653

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Can you ping the router?
Can you ping an IP outside the lan?
ping 216.239.39.99 (google.com)

What is the output of the route command?
Do you have a firewall running on this PC?
Does your resolv.conf file still contain nameserver information?
 
Old 10-25-2004, 09:54 AM   #10
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Original Poster
Rep: Reputation: 0
michaelk - Thanks for your suggestions and questions. Here are the answers:

I can't ping the router (192.168.0.1) nor any outside address.

Here is the output of the command "route":

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 ethO
default 192.168.0.1 0.0.0.0 UG 0 0 0 ethO



Contents of /etc/resolv.conf

nameserver 167.206.3.233
nameserver 167.206.3.167
nameserver 167.206.3.234
nameserver 128.3.255.56
nameserver 128.37.25.104
nameserver 128.39.3.132
nameserver 128.50.166.192

I don't have a firewall up in linux. There's the NAT firewall in the router, although I've never added or modified rules.

Thanks.
 
Old 10-25-2004, 02:06 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,653

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Not being able to ping the router is a problem.
What is the ouput of the command
mii-tool
 
Old 10-25-2004, 03:26 PM   #12
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Original Poster
Rep: Reputation: 0
mii-tool output is:

eth0: negotiated 10baseT-FD, link OK
 
Old 10-26-2004, 07:37 AM   #13
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Original Poster
Rep: Reputation: 0
Can anyone help me determine what the mii-tool output implies?

I seems to say say it finds a 10BaseT connection and is linked .... but linked to what? As noted in an earlier post, I can't ping the router that the nic is connected to.

Anyone?
 
Old 10-26-2004, 08:27 PM   #14
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Original Poster
Rep: Reputation: 0
In the absence of new ideas re: linux or router configuration tweaks, I'm moving on to swapping hardware components.

I assumed that my problem (if hardware) was either the NIC or the router. Tonight, I yanked out the 3Com NIC ( 3C90x), and replaced it with a spare Netgear FA310TX (tulip chipset) card.

Didn't solve the problem ! Same old problem still exists:

MODEM --> ROUTER --> NIC connects in Win98
MODEM --> ROUTER --> NIC fails in linux
MODEM -----------------> NIC connects in linux

My next step is to try to get my hands on a different router and plug it in.

iminj
 
Old 10-28-2004, 03:27 PM   #15
iminj
LQ Newbie
 
Registered: Oct 2004
Distribution: Wolvix 1.0.4 (slax based)
Posts: 16

Original Poster
Rep: Reputation: 0
SOLVED !!

Yanked out the D-Link 624 router, and installed a borrowed Linksys
WRT54G.

Same settings as the D-Link; except this time my PC grabbed an IP connection. I can't explain it, and I don't understand it ... but I'm replacing my router ASAP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DLink router/yahoo mail problem ....weird doralsoral Linux - Hardware 12 04-25-2009 06:19 AM
Weird connection problem Asellus Mandriva 1 09-05-2005 11:48 PM
Cablemodem connection slow with Linux, not with D-Link router... Erik Thorsson Linux - Networking 0 02-14-2005 09:09 AM
Weird Internet Connection Problem! matrim Linux - Networking 3 01-28-2005 04:30 PM
D-link router and web server problem peteABK Linux - Networking 0 06-02-2003 03:30 PM


All times are GMT -5. The time now is 10:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration