LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Router ADSL connected but i can't use browser or apt (https://www.linuxquestions.org/questions/linux-networking-3/router-adsl-connected-but-i-cant-use-browser-or-apt-340869/)

Skie 07-07-2005 04:32 AM

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 :-(

Michael Johnson 07-07-2005 10:38 PM

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.

TigerOC 07-08-2005 02:22 AM

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.

Skie 07-08-2005 02:30 AM

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

eth0 Link encap:Ethernet HWaddr 00:50:BA:6E:DD: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.

TigerOC 07-08-2005 02:53 AM

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.


All times are GMT -5. The time now is 10:31 AM.