LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-07-2005, 04:32 AM   #1
Skie
LQ Newbie
 
Registered: Jul 2005
Location: Italy
Posts: 4

Rep: Reputation: 0
Router ADSL connected but i can't use browser or apt


Hello I have a problem with my router.

I just got the router from my telephone company and the router is already configured to work out and looks like is working.

The router has a dhcp server and a firewall NAT.

With windows xp everything works right, the dhcp server works and I can easely access internet,

but I have a problem with Linux, I changed my network settings so Linux can accept the DHCP server and in fact doing a ifconfig I see that the DHCP server worked well. my computer has the correct gateway, the DNS has been configured.

I try with a ping on google site and the ping is working but when I try to run the apt-get update or I try to use my web browser looks like I have no connection.

I have installed a Debian Sarge and I tried on a Ubuntu as well but they give me the same problem.

Can someone help me out?

Sorry if my english is not so good :-(
 
Old 07-07-2005, 10:38 PM   #2
Michael Johnson
Member
 
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262

Rep: Reputation: 30
check your browser settings to ensure that there is not a proxy server set causing your problem. Also tell people what distribution you are using. This makes it easier to get a good response.
 
Old 07-08-2005, 02:22 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Just so you configure things correctly. If you are using dhcp then you need to set your network to pick up a lease from the router. If the NIC attached to the router is eth0 then the settings for /etc/network/interfaces would be;

auto eth0
iface eth0 inet dhcp

Note that no gateway is specified because it will detect it.

You need to specify the DNS addresses of your isp in /etc/resolv.conf;

nameserver <ip-address supplied by isp>
nameserver <ip-address supplied by isp>

then do as root from a console /etc/init.d/networking restart

Check that your system is picking up the lease by doing;

ifconfig

this should give details of the network interfaces and addresses.

check that the system has a gateway by doing;

route -n

You should then be able to get out.
 
Old 07-08-2005, 02:30 AM   #4
Skie
LQ Newbie
 
Registered: Jul 2005
Location: Italy
Posts: 4

Original Poster
Rep: Reputation: 0
then..

Ok I tried a few things and this are the results:

eth0 Link encap:Ethernet HWaddr 00:50:BA:6ED:40
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe6e:dd40/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2335 errors:0 dropped:0 overruns:0 frame:0
TX packets:2266 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:606356 (592.1 KiB) TX bytes:169854 (165.8 KiB)
Interrupt:11 Base address:0xe800

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:130 errors:0 dropped:0 overruns:0 frame:0
TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8552 (8.3 KiB) TX bytes:8552 (8.3 KiB)

------------------------------------------------------------------------------

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
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

------------------------------------------------------------------------------

search
nameserver 192.168.1.1

------------------------------------------------------------------------------

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

------------------------------------------------------------------------------

I tried to use another DNS instead of the router ip but it works at the same way. I tried with a traceroute and it works no problem with a host name.

Dont' know really what to do.

Ohh I'm using a debian sarge.
 
Old 07-08-2005, 02:53 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I would say your problem is with the DNS entry. This is a private range number and unless that address is running BIND and has a resolved public DNS address using NAT it's not going to function. The DNS address is normally a public address in order to resolve internet addresses. Your isp should have provided you with two DNS addresses for this purpose.
 
  


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
ADSL How do I get connected? marcp66 Linux - Newbie 2 08-30-2005 07:14 AM
Router ADSL connected but i can't use browser or apt Skie Linux - Wireless Networking 5 07-11-2005 12:06 PM
Limit connected items connected to my router andersh3 Linux - Newbie 1 03-16-2004 11:10 AM
connected ..but not getting pages in browser metoome Linux - Networking 2 03-05-2004 11:07 PM
ADSL Routers Setup- Microsom Deskporte router 100 and Planet ADSL modem router mabonline Linux - Hardware 1 02-27-2004 05:36 PM


All times are GMT -5. The time now is 12:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration