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-16-2005, 01:20 PM   #1
netcat
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware 10
Posts: 10

Rep: Reputation: 0
Need help with internet connection


I've been trying for some time to get my Linux machine connected to the internet.
My "network" looks something like this: Internet -> WinXp -> USB network card -> Linux
I'm assign a static IP to the linux machine, 192.168.0.x and with 192.168.0.1 as gateway. I've also tried setting the gateway to the IP of this comp or the IP of the usb device, but then I get "network unreachable" when trying to do a ping, and I get no "default" column when doing route, so I guess I've done something right with the 192.168.blah settings at least. ;P
I'm guessing it won't work because it seems Slackware hasn't probed for the network card or whatever..
 
Old 07-16-2005, 01:57 PM   #2
crazytigger
Member
 
Registered: Sep 2004
Location: Brighton UK
Distribution: *buntu 7.10
Posts: 59

Rep: Reputation: 15
If you are using Internet connection sharing on your windoze box, you should be letting the Linux NIC pick up an IP from the windoze machine. ICS works like a DHCP server.
 
Old 07-16-2005, 02:00 PM   #3
netcat
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware 10
Posts: 10

Original Poster
Rep: Reputation: 0
I've tried using DHCP, but that didn't work. I get "Network unreachable" when trying to ping.
 
Old 07-16-2005, 02:28 PM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
well... go step by step.

Are you able to ping the XP box?

What does your routing table look like? (route -n)
 
Old 07-16-2005, 02:47 PM   #5
netcat
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware 10
Posts: 10

Original Poster
Rep: Reputation: 0
I "can" ping the xp box, meaning I don't get network unreachable, but "Destination host unreachable".. :P
route -n gives:
Destination - Gateway - Genmask ------- Flags - Metric - Ref - Use - Iface
192.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 ------- 192.168.0.1 - 0.0.0.0-------UG----- 1 ------- 0 ---- 0 -----eth0
 
Old 07-16-2005, 02:50 PM   #6
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
U can... or can't?
 
Old 07-16-2005, 02:51 PM   #7
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
What are the IPs of the linux and the XP box?
 
Old 07-16-2005, 02:57 PM   #8
netcat
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware 10
Posts: 10

Original Poster
Rep: Reputation: 0
I can't, but at least it responds in some way.
Xp Ip: 217.208.127.x
Linux: 192.168.0.6
 
Old 07-16-2005, 03:01 PM   #9
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
I mean... the XPs inner IP (the interface connected to the linux box). :-)
 
Old 07-16-2005, 03:03 PM   #10
netcat
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware 10
Posts: 10

Original Poster
Rep: Reputation: 0
Right. ;P I think it is 169.254.70.46..
 
Old 07-16-2005, 03:06 PM   #11
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
There you are. The linux box will NEVER reach your XP box... because they are mapped to different networks.

You have to give the inner XP interface a static address in the 192.168.0.x network. That's the first step.
 
Old 07-16-2005, 03:08 PM   #12
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
then, set the linux's gateway to the XPs innner interface address.
 
Old 07-16-2005, 03:36 PM   #13
netcat
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware 10
Posts: 10

Original Poster
Rep: Reputation: 0
Allright, now I can ping and connect to the Xp box... But still no internet, it seems.
 
Old 07-16-2005, 03:42 PM   #14
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
OK.... that's a first step.

In order to be able to connect to the internet, set the linux's gateway to the XPs innner IP.

Once that is done, you should be able to ping public IPs from the linux box. If you can't then probably it's because the XP box is blocking you.. meaning you haven't shared your internet connection.

If you can ping public IPs from the linux box, but still can't use a browser, check that the DNS for the linux box are the same of your XP box. That should be it.

Last edited by eantoranz; 07-16-2005 at 03:43 PM.
 
Old 07-16-2005, 03:56 PM   #15
netcat
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware 10
Posts: 10

Original Poster
Rep: Reputation: 0
Got it to work now! Replying from the linux box now.
Thanks x1000.
 
  


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
Slow Internet Connection when Connecting to Internet on Browsers lennysokol Linux - Networking 8 04-09-2011 04:29 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
Messed up my internet settings (NO internet connection) :( Almazick Linux - Networking 2 09-08-2004 12:05 PM
My internet apps cannot detect my internet connection esthon_wood Mandriva 5 08-30-2004 08:38 PM
i can get internet connection in windows but in LINUX there is no connection ruzvay Linux - Networking 2 06-08-2004 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:25 PM.

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
Open Source Consulting | Domain Registration