LinuxQuestions.org
Help answer threads with 0 replies.
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 06-25-2005, 10:55 AM   #1
crw128
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 11

Rep: Reputation: 0
LAN Connected but cant access internet


Hello,
I have a LAN cable connected to my computer from the router which is connected to a cable modem connection and the computer says it is connected and i can ping web sites but i can't get any web sites when i open up a browser. I am using mandrake 10. Can anyone help me here please?
 
Old 06-25-2005, 11:10 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Welcome to LQ.

Can you post the output from:
route -n
ifconfig
cat /etc/resolv.conf
 
Old 06-25-2005, 05:08 PM   #3
KenGr
LQ Newbie
 
Registered: Feb 2004
Location: Wyoming
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
Hi:

If you can successfully ping say, www.yahoo.com, but cannot view any websites then I would look to see that my browser was properly configured. For example, check any entries for gateways.

Have you tried accessing the Internet with a text browser like Lynx? Are you using a proxy server?
 
Old 06-26-2005, 09:08 AM   #4
crw128
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the replies. Yes i actually could ping www.yahoo.com. How do you check the browser (firefox) for gateway entries?
 
Old 06-26-2005, 09:23 AM   #5
suchi
Member
 
Registered: Nov 2003
Location: india
Posts: 46
Blog Entries: 1

Rep: Reputation: 15
Just check the entries for connection settings in firefox at
Edit > preferences
Have you given the right entries for direct internet connection that you have ?
By the way, send the output of your /etc/resolv.conf.
Please dont forget to remove any entries that go like

nameserver 192......
 
Old 06-26-2005, 09:48 PM   #6
crw128
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 11

Original Poster
Rep: Reputation: 0
Here is what is in resolv.conf:

search nsw.optushome.com.au
nameserver 203.2.75.132
nameserver 102.168.0.1

Do i have to remove the words nameserver?
 
Old 06-26-2005, 10:17 PM   #7
crw128
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 11

Original Poster
Rep: Reputation: 0
This is what i get from route- n and iwconfig:

[root@localhost root]# route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

102.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

0.0.0.0 102.168.0.1 0.0.0.0 UG 0 0 0 eth0


[root@localhost root]# ifconfig

eth0 Link encap:Ethernet HWaddr FF:FF:FF:FF:FF:FF

inet addr:102.168.0.199 Bcast:102.168.0.255 Mask:255.255.255.0

inet6 addr: fe80::fdff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3728 (3.6 Kb) TX bytes:4291 (4.1 Kb)
Interrupt:19 Base address:0xd400

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:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6418 (6.2 Kb) TX bytes:6418 (6.2 Kb)
 
Old 06-27-2005, 12:33 AM   #8
yoursmile
LQ Newbie
 
Registered: Jun 2005
Posts: 26

Rep: Reputation: 15
try :
ping 203.2.75.132

102.168.0.1 is your cable modem`s IP?
 
Old 06-27-2005, 01:00 AM   #9
crw128
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 11

Original Poster
Rep: Reputation: 0
I could ping 203.2.75.132 no problems and i could ping 102.168.0.1 which i am sure is the router. It says in windows that 102.168.0.1 is the default gateway.

Last edited by crw128; 06-27-2005 at 01:03 AM.
 
Old 06-27-2005, 08:38 AM   #10
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Your network confoguration is fine.

Try 'telnet www.google.com 80'
and type 'GET / HTTP/1.0' (without quotes)
 
Old 06-27-2005, 10:34 AM   #11
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
102.168.*.* is a _very_ strange network address to be using. Make absolutely sure it 's not supposed to be 192.168.*.*
 
Old 06-27-2005, 03:30 PM   #12
KenGr
LQ Newbie
 
Registered: Feb 2004
Location: Wyoming
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
I agree with baldy3105; you are using a very odd IP address. That said, if you can ping external sites like yahoo, etc. then I would say your network is working fine and the problem is your browser...Firefox.

Go to either Edit>Preferrences or Tool>Options and click on the connections tab. Make sure that you are not set up to try and go through a proxy server. I would set Firefox to "Automatically Detect Network Settings."
 
Old 06-28-2005, 02:37 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
crw128, it is probably because you have ipv6 enabled. Try disabling it with:
echo "alias net-pf-10 off" >> /etc/modprobe.conf

Then reboot the machine.
 
Old 06-28-2005, 06:51 PM   #14
crw128
LQ Newbie
 
Registered: Jun 2005
Distribution: Ubuntu 6.06
Posts: 11

Original Poster
Rep: Reputation: 0
Your a legend mate. It worked. Thank you.
 
  


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
Can't get SUSE 10 to access the internet on LAN Samhein Linux - Networking 8 11-23-2005 07:37 AM
Wireless lan connected but no internet XJNick Linux - Wireless Networking 5 08-07-2005 11:35 PM
Need help configuring internet access through LAN harnadem Linux - Networking 3 03-26-2005 06:59 AM
Internet access through Windows XP LAN fredrikg Linux - Networking 3 09-04-2003 08:06 PM
Can ping LAN but cant access internet. Dirt Linux - Networking 2 08-11-2003 03:45 AM


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