|
|
|
|
|
|
| Author |
Message |
Kurt *nix forums beginner
Joined: 19 Sep 2005
Posts: 13
|
Posted: Wed Jul 19, 2006 2:41 am Post subject:
Re: Routing question
|
|
|
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 /2 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 |
|
 |
bh98013@gmail.com *nix forums beginner
Joined: 05 Jun 2006
Posts: 3
|
Posted: Tue Jul 18, 2006 11:48 pm Post subject:
Re: Routing question
|
|
|
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 |
|
 |
Llanzlan Klazmon *nix forums Guru Wannabe
Joined: 11 Apr 2005
Posts: 159
|
Posted: Tue Jul 18, 2006 11:04 pm Post subject:
Re: Routing question
|
|
|
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 |
|
 |
Ken Roberts *nix forums beginner
Joined: 17 Jul 2006
Posts: 6
|
Posted: Tue Jul 18, 2006 10:39 pm Post subject:
Re: Routing question
|
|
|
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 |
|
 |
iphtashu.Fitz@gmail.com *nix forums beginner
Joined: 18 Jul 2006
Posts: 1
|
Posted: Tue Jul 18, 2006 6:52 pm Post subject:
Routing question
|
|
|
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 |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Nov 22, 2008 12:17 am | All times are GMT
|
|
Charity | Lighting | Debt | Mortgage Calculator | Online Advertising
|
|
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
|
|