Linux - NetworkingThis 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.
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.
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...
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.
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]
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...
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.
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]
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.