(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