Re: Adding a route question
- From: "Herb Martin" <news@xxxxxxxxxxxxxx>
- Date: Sat, 16 Apr 2005 18:57:25 -0500
"Sam" <Sam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5DD30B58-840B-4BD3-B03C-853CDEE12C00@xxxxxxxxxxxxxxxx
> Hi,
>
> I am in the process of setting up a routed network. One network is
> 192.168.1.0/24 and the other is 192.168.2.0/26.
The above is legal, but out of curiosity did you mean
to have different masks?
> I have configured a windows
> 2000 router with 2 network cards to each represent the networks. However
> when I try to use the "route add -p" command to add a persistent route to
the
> networks I get an interface error message. Can someone show me what the
> command would be if my network cards are configured the following way?
"Windows 2000 router" - may we presume you are using
RRAS?
It is MUCH better (i.e., it works) if you add RRAS routes
through the RRAS MMC or through NetSh.exe.
The Route Add command should probably be left strictly
for ordinary Windows machine (workstations etc) without
RRAS.
With ONE router you don't need any static routers (actually
with two routers you don't either.) With one router it is
connected to EVERYTHING so it already knows about
everything from the default building of the routing table.
With two routers they can point to each other as "default
gateway" so no static routes need to be manually ADDED.
(The default gateway settings inherently create those static
routes.)
Now, be careful, since most people connect to the Internet,
and the ISP has a router which COUNTS in our total, so
with one internal router and the Internet we don't need any
manual routes on that internal router since it just uses the
ISP as "default gateway".
Only "middle routers" (my term) need added routes to point
to the smaller networks of the routers it is in contact with.
Why "smaller networks"? Well, because it will use the
router connected to the largest (or really most diverse)
networks as it's default gateway (usually that's the ISP,
or the upstream router that eventually leads to the ISP and
the Internet (or maybe to "headquarters" if we are a branch
office.
So assuming you have ONE internal router, you just set its
default gateway to the ISP's router.
Assuming your have the router below AND another router
with say "DSL upstream" (to the ISP) and 192.168.1.2 on the
INTERNAL side you would route from this "middle router"
to the 192.168.2.0 network this way:
route add -p 192.168.2.0 mask 255.255.255.252 192.168.2.1
(Although that mask still looks to be a typo.)
And remember, if you are using RRAS it is best to enter this
in the RRAS console or using NetSH (not "route add".)
> ETHERNET ADAPTER 1
> IP address 192.168.1.1
> Subnet mask 255.255.255.0
> Gateway 192.168.2.1
ON THE OTHER router(s), to reach this router
you
> ETHERNET ADAPTER 2
> IP address 192.168.2.1
> Subnet mask 255.255.255.192
> Gateway 192.168.1.1
>
> Regards
> Sam
.
- Follow-Ups:
- Re: Adding a route question
- From: Sam
- Re: Adding a route question
- References:
- Adding a route question
- From: Sam
- Adding a route question
- Prev by Date: Re: Adding a route question
- Next by Date: Re: NBTSTAT problem : "-a" works, "-A" not.
- Previous by thread: Re: Adding a route question
- Next by thread: Re: Adding a route question
- Index(es):
Relevant Pages
|