niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » networking
Routing question
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
iphtashu.Fitz@gmail.com
*nix forums beginner


Joined: 18 Jul 2006
Posts: 1

PostPosted: Tue Jul 18, 2006 6:52 pm    Post subject: Routing question Reply with quote

Forgive me for what's probably a simple question but I know just enough
about routing to be dangerous. I'm not an IP expert by any stretch of
the imagination....

I'm trying to set up a Centos4 box with a static IP assigned by our
internet provider. They gave me the following details (edited, of
course):

Netblock: a.b.51.28
Subnet mask: 255.255.255.240
Gateway: c.d.99.67

a, b, c, d are all very different numbers.

When I try to use the default gateway that they provided, linux replies
with:

SIOCADDRT: Network is unreachable

I thought that a default gateway had to be on the same network, isn't
that correct? It's usually the first or last IP in the netblock range.
If not, how do I tell linux how to get to this default route Or is my
provider doing some sort of drugs by providing completely mismatched IP
block and gateway?
Back to top
Ken Roberts
*nix forums beginner


Joined: 17 Jul 2006
Posts: 6

PostPosted: Tue Jul 18, 2006 10:39 pm    Post subject: Re: Routing question Reply with quote

You are correct. The default gateway must be on the same network as
your host.


iphtashu.Fitz@gmail.com wrote:
Quote:
Forgive me for what's probably a simple question but I know just enough
about routing to be dangerous. I'm not an IP expert by any stretch of
the imagination....

I'm trying to set up a Centos4 box with a static IP assigned by our
internet provider. They gave me the following details (edited, of
course):

Netblock: a.b.51.28
Subnet mask: 255.255.255.240
Gateway: c.d.99.67

a, b, c, d are all very different numbers.

When I try to use the default gateway that they provided, linux replies
with:

SIOCADDRT: Network is unreachable

I thought that a default gateway had to be on the same network, isn't
that correct? It's usually the first or last IP in the netblock range.
If not, how do I tell linux how to get to this default route Or is my
provider doing some sort of drugs by providing completely mismatched IP
block and gateway?
Back to top
Llanzlan Klazmon
*nix forums Guru Wannabe


Joined: 11 Apr 2005
Posts: 159

PostPosted: Tue Jul 18, 2006 11:04 pm    Post subject: Re: Routing question Reply with quote

iphtashu.Fitz@gmail.com wrote in news:1153248733.198144.107080@
75g2000cwc.googlegroups.com:

Quote:
Forgive me for what's probably a simple question but I know just enough
about routing to be dangerous. I'm not an IP expert by any stretch of
the imagination....

I'm trying to set up a Centos4 box with a static IP assigned by our
internet provider. They gave me the following details (edited, of
course):

Netblock: a.b.51.28
Subnet mask: 255.255.255.240
Gateway: c.d.99.67

a, b, c, d are all very different numbers.

When I try to use the default gateway that they provided, linux replies
with:

SIOCADDRT: Network is unreachable

I thought that a default gateway had to be on the same network, isn't
that correct?

Correct.

Quote:
It's usually the first or last IP in the netblock range.

That is just by convenience. There is no rule.


Quote:
If not, how do I tell linux how to get to this default route Or is my
provider doing some sort of drugs by providing completely mismatched IP
block and gateway?


Talk to your ISP to clarify.

Klazmon.

>
Back to top
bh98013@gmail.com
*nix forums beginner


Joined: 05 Jun 2006
Posts: 3

PostPosted: Tue Jul 18, 2006 11:48 pm    Post subject: Re: Routing question Reply with quote

I think your default G/W c.d.99.67 is DNS server.
G/W must be in your subnet range.
For example
IP : 1.1.1.1
Subnet 255.255.255.0
G/W must be in 1.1.1.2~254


Llanzlan Klazmon wrote:
Quote:
iphtashu.Fitz@gmail.com wrote in news:1153248733.198144.107080@
75g2000cwc.googlegroups.com:

Forgive me for what's probably a simple question but I know just enough
about routing to be dangerous. I'm not an IP expert by any stretch of
the imagination....

I'm trying to set up a Centos4 box with a static IP assigned by our
internet provider. They gave me the following details (edited, of
course):

Netblock: a.b.51.28
Subnet mask: 255.255.255.240
Gateway: c.d.99.67

a, b, c, d are all very different numbers.

When I try to use the default gateway that they provided, linux replies
with:

SIOCADDRT: Network is unreachable

I thought that a default gateway had to be on the same network, isn't
that correct?

Correct.

It's usually the first or last IP in the netblock range.

That is just by convenience. There is no rule.


If not, how do I tell linux how to get to this default route Or is my
provider doing some sort of drugs by providing completely mismatched IP
block and gateway?


Talk to your ISP to clarify.

Klazmon.

Back to top
Kurt
*nix forums beginner


Joined: 19 Sep 2005
Posts: 13

PostPosted: Wed Jul 19, 2006 2:41 am    Post subject: Re: Routing question Reply with quote

bh98013@gmail.com wrote:
Quote:
I think your default G/W c.d.99.67 is DNS server.
G/W must be in your subnet range.
For example
IP : 1.1.1.1
Subnet 255.255.255.0
G/W must be in 1.1.1.2~254


Llanzlan Klazmon wrote:
iphtashu.Fitz@gmail.com wrote in news:1153248733.198144.107080@
75g2000cwc.googlegroups.com:

Forgive me for what's probably a simple question but I know just enough
about routing to be dangerous. I'm not an IP expert by any stretch of
the imagination....

I'm trying to set up a Centos4 box with a static IP assigned by our
internet provider. They gave me the following details (edited, of
course):

Netblock: a.b.51.28
Subnet mask: 255.255.255.240
Gateway: c.d.99.67

a, b, c, d are all very different numbers.

When I try to use the default gateway that they provided, linux replies
with:

SIOCADDRT: Network is unreachable

I thought that a default gateway had to be on the same network, isn't
that correct?
Correct.

It's usually the first or last IP in the netblock range.
That is just by convenience. There is no rule.


If not, how do I tell linux how to get to this default route Or is my
provider doing some sort of drugs by providing completely mismatched IP
block and gateway?

Talk to your ISP to clarify.

Klazmon.



The IP addresses you gave and the subnet mask simply don't jive. The
mask 255.255.255.240 (also known as a /2Cool breaks out into blocks of 16,
so those networks would be 0, 16, 32, 48,... (a.b.51.48)

a.b.51.28 does not define a /28 block. Maybe you misread and the .28 is
really a /28.

Another key there is that you were assigned a block. Most of the time,
an ISP will also keep one of the IP addresses in the same block as your
gateway. But they may have routed it through an intermediate route, in
which case you'll need a router configured as another address on the
intermediate block.

....kurt
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 11:37 pm | All times are GMT
navigation Forum index » *nix » Linux » networking
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm
No new posts question for JAVA developer who r using postgres sql as b... deepak pal PostgreSQL 1 Fri Jul 21, 2006 9:00 am
No new posts Encryption Question dtuttle1@gmail.com Berkeley DB 2 Thu Jul 20, 2006 10:09 pm

Comprar vivienda Denia | Secured Loans | Charity Gifts | Home Loan | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3621s ][ Queries: 16 (0.2683s) ][ GZIP on - Debug on ]