LinuxQuestions.org
Review your favorite Linux distribution.
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 08-23-2006, 08:20 AM   #1
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Rep: Reputation: 15
Unhappy my dlink router isn't working in linux


Hello,

I am trying to connect my ubuntu distro to a dlink router by using a lan cable.
All seems to work quite well, I can ping any website and any pc on my network,
but firefox can't load the web pages!!!

I've tried to use fixed IPs instead DHCP but it doesn't work anyway. The strange thing
is that my laptop (winXp) works with the same configuration and it can connect to internet.

IP of the router: 192.168.1.1

IP of the pc: 192.168.1.2 Mask: 255.255.255.0
Gateway: 192.168.1.1 Broadcast: 192.168.1.255
DNS: 192.168.1.1

I've tried to reboot the network connection using 'ifdown eth0' and 'ifup eth0' but it hasn't worked anyway...

Any help will be appreciated, thanks!
 
Old 08-23-2006, 08:33 AM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
there's probably a firewall function (might not be called that, though) on the router that's blocking the web by default. it might be called a "service" or virtual server or something like that. what's the model number?

>oops, didn't see that windows can connect (ADD attack ). maybe it's an iptables entry on your PC, though that would seem a little weird. unless ubuntu blocks the web by default to "protect" you, like it forces the sudo thing on you.

Last edited by slackhack; 08-23-2006 at 08:38 AM.
 
Old 08-23-2006, 08:39 AM   #3
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
the model name is DSL-G624T, I feared that the firewall could interfere so I've disabled it using the web pages of the router (the only pages I can see into firefox), but hasn't worked.
[edit: i've also found the virtual server option, in this page I can set some rules for each IP address, but there aren't any of them applied. Now I'm trying to add some rule]

Last edited by ma1069; 08-23-2006 at 08:44 AM.
 
Old 08-23-2006, 09:07 AM   #4
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
Thank you,

I've checked iptables using the command 'iptables -L' but this is the result:

------------------------------------------------------------------
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FOWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
------------------------------------------------------------------

I don't see anything blocked (but neither anything allowed...) is this correct?
I've never configured it, I have to admit that I'm a noob on firewalling things...
 
Old 08-23-2006, 09:22 AM   #5
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
it says there are no rules, so you are clear as far as that goes. have you tried other browsers? can you get to the web if you use an IP address instead of a name (http://64.233.187.99/ instead of http://www.google.com for example)? try rebooting the network connection with the networking script (i think for debian at least) found in /etc/init.d (# /etc/init.d/networking restart). seems like it could have something to do with dhcp.
 
Old 08-23-2006, 09:36 AM   #6
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
Unfortunately I don't have any other browser, I've installed this distro from a single CD with few things (I will download more stuff once it will work -.-) I've tried 'apt-get update' but it doesn't connect too.

However, if I put the IP address everything works well!!
I'll start surfing pinging the websites to get the IP then putting the IP on firefox, but I bet that it exists a better way

[Edit: I've tried 'networking restart', it worked but it hasn't chanded anything]

Last edited by ma1069; 08-23-2006 at 09:46 AM.
 
Old 08-23-2006, 09:41 AM   #7
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
post what's in your /etc/resolv.conf file, or put these two lines at the top and try the web again:

nameserver 208.67.222.222
nameserver 208.67.220.220
 
Old 08-23-2006, 09:52 AM   #8
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
Wow

Works perfectly!! Thank you!!!!!

In that file I had written the address of the router, maybe was that setting wrong...

Thank you again!!
 
Old 08-23-2006, 09:59 AM   #9
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
great! just be aware that might get reset when you reboot. you'll have to find out where dhcp is being called from or where the settings are to tell it not to overwrite your resolv.conf every time. not sure where that is in ubuntu, but it shouldn't be too hard to find out with a search of LQ or the ubuntu forum. gl
 
Old 08-23-2006, 01:34 PM   #10
ma1069
LQ Newbie
 
Registered: Aug 2006
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 15
no problem It may sound like "cheating", but the graphical network tool in ubuntu has exactly this setting ;P

again, thanks!
 
  


Reply

Tags
dns, networking



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
connecting to internet via dlink router vasanthraghavan Linux - Networking 13 03-22-2004 08:50 AM
Dlink router problem w/ linux ziggie216 Linux - Networking 0 10-08-2003 01:53 AM
DLINK DWL520+ ( plus) working with linux is a myth? linuxlah Linux - General 5 09-09-2003 09:24 AM
mandrake and a dlink router early7777 Linux - Networking 3 11-06-2002 03:22 PM

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

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