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 06-08-2004, 07:14 AM   #1
ispnepal
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Rep: Reputation: 0
Angry Linux routes


hi all:,

my isp gave me their gateway ip address x.x.233.81 and my client ip x.x.237.116/255.255.255.248.

when i do : route add default gw x.x.233.81 it says." netowork unreachable" and cannot connect to internet..


But when my friend's windows machine put same gatewat ip in is machine x.x.x.237.114/255.255.255.248, he can connect to internet and can browse.


What might be the problem in my linux machine... why windows can and linux cannot? it is windows 2003 adv server and mine is fedora core 1.


Thanks
nisp
 
Old 06-08-2004, 07:48 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
A 255.255.255.248 subnet is only 8 IP addresses long. The gateway and your client IP are not even on the same network. You need to verify that your ISP gave you the correct information. What IP address was assigned to your friend's computer? I would bet that it was something a little closer to the gateway.
 
Old 06-08-2004, 08:05 AM   #3
ispnepal
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
that's what i was surprised too.
my linux machine is x.x.237.116/30 and his machine is x.x.237.114/30

i cannot ping x.x.233.81 and his windows machine can...



Paras
 
Old 06-08-2004, 10:27 AM   #4
henryluo
Member
 
Registered: Nov 2003
Posts: 36

Rep: Reputation: 15
try modify submask to 255.255.255.0,good luck!
 
Old 06-08-2004, 12:17 PM   #5
ispnepal
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
U mean in my linux machine i convert my subnet mask from 255.255.255.248 to 255.255.255.0?

nisp.
 
Old 06-08-2004, 02:38 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Quote:
Originally posted by ispnepal (condensed for space)
that's what i was surprised too.
my linux machine is x.x.237.116/30 and his machine is x.x.237.114/30
i cannot ping x.x.233.81 and his windows machine can...
Paras
A /30 netmask translates to 255.255.255.252, which is 4 IP addresses long. If "x.x" is the same in both IP addresses, then something is wrong. With a /30 netmask, x.x.237.116 calculates to a network address. If you friend is using x.x.237.114, then his gateway is probably using x.x.237.113 as his gateway. This assumes that the /30 mask is the correct for your configuration.

Last edited by stickman; 06-08-2004 at 02:43 PM.
 
Old 06-08-2004, 11:10 PM   #7
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Quote:
Originally posted by ispnepal
U mean in my linux machine i convert my subnet mask from 255.255.255.248 to 255.255.255.0?

nisp.
as the gateway ip is x.x.233.x and the client ip is x.x.237.x, class c subnet won't work either.

sticking to stickman's last post, verify the ips with your ISP

Last edited by ppuru; 06-08-2004 at 11:11 PM.
 
Old 06-09-2004, 05:25 AM   #8
ispnepal
LQ Newbie
 
Registered: Jun 2004
Posts: 16

Original Poster
Rep: Reputation: 0
my problem is solved:

did:

route add -host x.x.233.81 gw dev eth0
route add default gw x.x.233.81


Thanks
nisp
 
  


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
Routes Obie Linux - Networking 16 04-28-2005 10:15 PM
Default Routes joel112 Linux - Networking 0 12-30-2004 11:13 AM
routes himyuza *BSD 6 08-03-2004 10:41 AM
I need some routes |Drakehash| Linux - Newbie 1 06-08-2003 12:22 AM
I need some routes |Drakehash| Linux - Networking 1 06-07-2003 02:36 PM

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

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