LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2004, 10:22 AM   #1
dstme
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
Lightbulb Can't connect to Internet


I a totally newbie in Linux although I want to learn it badly. Hope someone can really help me here, and thanks.

I have just install a Derbian Linux and seems everything is ok. Problem is I don't know how to connect it to internet. I went to root, and do some pings, no problems. But I cant connect to Internet via Netscape or Konqueror. My setting is as follow:

My Linux PC is LAN with a window xp, and my internet connection is with window xp.
Linux_PC------>WinXP_PC------->Internet.

My ipconfig setting on WinXp:
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

PPP adapter DSL100U Dial-Up:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 210.24.xxx.xx
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 210.24.xxx.xx

My ifconfig on Linux:
eth0 inet addr:192.168.0.117 Bcast 192.168.0.255 Mask:255.255.255.0
lo inet addr:127.0.0.1 Mask 255.0.0.0
slo 192.168.0.1 P-t-P 192.168.0.2 Mask:255.255.255.255

Route on Linux:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.2 * 255.255.255.255 UH 1 0 0 slo
192.168.0.0 * 255.255.255.0 U 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 1 0 0 slo

I'm not sure if the route is correct or wrong, because I know nut about them. I just play around with the numbers. Also, on resolv.conf, I have edited on the following which I know it is wrong but not sure what are the correct numbers.

resolv.conf
search 192.168.0.117
nameserver 192.168.0.117 210.24.xxx.xx

Please help and guide me step by step as this is my first ever touch on Linux. Thanks alot

Last edited by dstme; 12-14-2004 at 11:54 AM.
 
Old 12-14-2004, 10:28 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
did you enable smth like " bridging " in win. ( i think it's called that )
to forward ip packages ?

egag
 
Old 12-14-2004, 10:43 AM   #3
dstme
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I don't think I have set any bridging. I'm currently using a twisted cable to network these 2 PCs.
Anyway, I just try to click on bridge but it does not allow me. Is that the reason, why it is not working?

Previously, both PCs are using WinXP and both doing OK with LAN and internet. Now that I change this PC to Linux, I don't know how to connect to internet.
I must say it is not as easy to setup Linux.
 
Old 12-14-2004, 11:07 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
ok, i think this is wrong :

--------------
resolv.conf
search 192.168.0.117
nameserver 192.168.0.117 XXX.XXX.XXX.XXX
-------------

i think you should use nameserver 192.168.0.1

edit: better remove your outside ip number from your post ( like i did ) !

egag

Last edited by egag; 12-14-2004 at 11:12 AM.
 
Old 12-14-2004, 11:17 AM   #5
dstme
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
I try on resolv.conf
search: 192.168.0.117
nameserver: 192.168.0.1

also.
search 192.168.0.2
nameserver: 192.168.0.1

It is still giving error message: "Timeout on server. Timed out while to connect to www.yahoo.com"

Any other suggestions? Thanks.
 
Old 12-14-2004, 11:23 AM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
if you type just an ip in your browser like " 68.142.226.50 "
( that's the one from yahoo ) any luck ?

( did you read the edit of my prev. post ? )

egag
 
Old 12-14-2004, 11:33 AM   #7
dstme
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
sorry.. Not sure what you mean on prev post.

I have change:
resolv.conf
search: 192.168.0.117
nameserver: 192.168.0.1

Same error when I use yahoo IP, http://68.142.226.50

Are my ifconfig and route correct?
 
Old 12-14-2004, 11:51 AM   #8
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
i meant " previous post " ( just an advice to remove your IP )

ifconfig is ok afaik.
and i have " search lan " in my resolve.conf

and i cannot say if there is an error in your "route" output.

egag
 
Old 12-14-2004, 07:29 PM   #9
dstme
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Still unable to access to internet. Can anyone help please?
 
Old 12-14-2004, 09:35 PM   #10
dstme
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Help PLz......
 
  


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
When i connect on the internet I want root not to access the internet !! skouket Linux - Security 12 07-10-2005 12:17 PM
Messed up my Internet Settings (can't connect to the internet) Almazick Linux - Wireless Networking 0 09-07-2004 06:23 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM
Can't connect to Internet Galphar Linux - Newbie 13 08-24-2003 03:14 PM


All times are GMT -5. The time now is 09:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration