Networking Forums

Networking Forums > Computer Networking > Linux Networking > Routing question

Reply
Thread Tools Display Modes

Routing question

 
 
iphtashu.Fitz@gmail.com
Guest
Posts: n/a

 
      07-18-2006, 06:52 PM
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?

 
Reply With Quote
 
 
 
 
Ken Roberts
Guest
Posts: n/a

 
      07-18-2006, 10:39 PM
You are correct. The default gateway must be on the same network as
your host.


(E-Mail Removed) wrote:
> 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?


 
Reply With Quote
 
Llanzlan Klazmon
Guest
Posts: n/a

 
      07-18-2006, 11:04 PM
(E-Mail Removed) 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.

>


 
Reply With Quote
 
bh98013@gmail.com
Guest
Posts: n/a

 
      07-18-2006, 11:48 PM
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:
> (E-Mail Removed) 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.
>
> >


 
Reply With Quote
 
Kurt
Guest
Posts: n/a

 
      07-19-2006, 02:41 AM
(E-Mail Removed) wrote:
> 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:
>> (E-Mail Removed) 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 /28) 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
 
Reply With Quote
 
Joe Beasley
Guest
Posts: n/a

 
      07-22-2006, 04:04 PM
Your network would be a.b.51.16/28. Valid ip addresses are
a.b.51.17 - a.b.51.30.


--
(E-Mail Removed)
SDF Public Access UNIX System - http://sdf.lonestar.org
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing Question Jeff Smith Linux Networking 3 07-08-2009 02:06 AM
routing question Pascal Nobus Linux Networking 0 06-30-2006 10:49 AM
Routing Question Dan N Linux Networking 2 03-24-2006 04:53 PM
Routing question darktiger Linux Networking 8 01-31-2005 03:18 AM
Routing question Mark Grimes Linux Networking 1 02-24-2004 01:53 PM



1 2 3 4 5 6 7 8 9 10 11