LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-03-2003, 09:57 AM   #1
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
Angry newbie problem with routing to host??


Hi all,

I am new to linux, about 48 hours now, and I am seemingly stuck trying to get internet access to my linux machine from my win xp ICS 'server'. I currently have several computers running windows connected through a switched hub to the windows xp comp that is connected to the net by usb adsl (not the best way but it was the cheapest at the time). All windows computers share the connection and can see each other etc... no worries.

now to the linux machine, have spent much time looking in my linux book on how this sort of connection should be done. The book only seems to talk about connecting to the internet via modem or connecting to a local network, with no mention of that local network being connected to the internet.

So far I can ping my main computer (winxp) by typing ping 192.168.0.1 no problems, likewise I can ping from my main comp to the linux comp by typing ping 192.168.0.3 (as this was the ip I assigned the linux machine in netconf under the basic host info > adaptor 1 tab. Whenever I try and ping from my linux comp to the web it says destination host unreachable, but the interesting thing is it does find the right ip address, for example if I type ping linux.com it will display

PING linux.com (66.35.250.170) from 192.168.0.3 : 56(84) bytes of data.
from lucas.WORKGROUP (192.168.0.3): Destination Host Unreachable

When I try and start netscape it says tcp error: no route to host.


Anyone got any ideas?

Thanks in advance

Lucas
 
Old 08-03-2003, 10:16 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Lucas

Hope you have defined the IP of your XP box as the default gateway on your Linux system.

check your route on the linux system (netstat -nr or /sbin/route -n)
 
Old 08-03-2003, 10:30 AM   #3
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Original Poster
Rep: Reputation: 30
hi,

Thanks very much for your reply.

when I type in 'netstat -nr' i get the following:

destination, gateway, genmask, flags, mss, window, irtt, iface
192.168.0.3, 0.0.0.0, 255.255.255.255, UH, 0, 0, 0, eth0
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, 0, 0, 0, eth0
0.0.0.0, 192.168.0.254, 0.0.0.0, UG, 0, 0, 0, eth0

I get the same when I type in /sbin/route -n

I thought I had defined the ip of the host as the gateway, but it is all getting pretty confusing, becasue there are seemingly so many gateways that need to be entered when setting up on netconf.

question: does the default gateway eg. 255.255.255.252 that my isp gave me for my adsl connection come into play at all on the setup of my linux comp connected to the previously mentioned via lan +hub?


Thanks

Lucas
 
Old 08-03-2003, 10:46 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
255.255.255.252 should be your subnet mask.

Is 192.168.0.254 your XP?
 
Old 08-03-2003, 11:12 AM   #5
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Original Poster
Rep: Reputation: 30
hello,

yes I changed the subnet mask to 255.255.255.252 and hey presto connected to the internet straight away with netscape. however now I cannot ping to the net for example when I try and type ping linux.com, there is no action, no responce until you hit ctrl+c then it says 37 packets sent none returned etc??

I can however telnet to my isp hosted website.
my xp box is 192.168.0.1, I dont know where the 192.168.0.254 came from?

Thanks for you help again.

Regards

Lucas
 
Old 08-03-2003, 09:12 PM   #6
Corin
Member
 
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446

Rep: Reputation: 31
For security reasons, many sites do not responsd to ping (ICMP) requests, linux.com being one of them.

Try pinging some other sites, eg

# ping ftp.debian.ORG
 
  


Reply



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
Newbie questions on fw & routing. fipeso Linux - Networking 2 04-25-2005 04:25 PM
Multihomed host routing problem.. srns Linux - Networking 3 10-15-2004 03:26 PM
Help newbie for routing.... Lamotta Linux - Newbie 2 04-04-2004 07:31 AM
Linux Routing to Multi-Homed Host MightyCranium Linux - Networking 0 03-16-2004 05:14 PM
NewBie Q: Force Routing Unnamed Linux - Networking 0 10-08-2003 03:00 AM

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

All times are GMT -5. The time now is 06:05 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
Open Source Consulting | Domain Registration