Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows Server Networking

Setting Up Routing using Route Command

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2006, 02:54 AM
Default Setting Up Routing using Route Command



Let's say i have 3 computers
one is on the 10.10.10.0 network
another on 192.168.0.0 network
I want to route messages between the
two using a third computer with two nic cards.
What settings exactly do i need to setup for TCPIP
for the three machines and what commands should i
issue using route command. Any step by step
tutorials which can help me?

thank you




asdf
Reply With Quote
  #2  
Old 10-19-2006, 05:05 AM
Robert L [MVP - Networking]
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

You need to enable IP routing. This how to may help,

Routng how to How to disable ip routing/forwarding on a W2K Pro? How to enable ip routing/forwarding on Win2k How to open Cisco PIX 515 firewall ports for inside VPN ...
www.howtonetworking.com/Networking/routing.htm


Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
"asdf" <(E-Mail Removed)> wrote in message news:%VAZg.75$(E-Mail Removed)...
Let's say i have 3 computers
one is on the 10.10.10.0 network
another on 192.168.0.0 network
I want to route messages between the
two using a third computer with two nic cards.
What settings exactly do i need to setup for TCPIP
for the three machines and what commands should i
issue using route command. Any step by step
tutorials which can help me?

thank you


Reply With Quote
  #3  
Old 10-20-2006, 05:18 AM
Bill Grant
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

You don't need any route commands. Just enable IP routing on the machine
with two NICs (as Bob advised). When IP routing is enabled, the machine will
forward traffic from on subnet to the other as required.

Routing will be automatic if you set the default gateways correctly.
Basically, you set both subnets to use the IP address of the router as the
default gateway setting. eg

10.10.10.x dg 10.10.10.1
|
10.10.10.1 dg blank
router
192.168.0.1 dg blank
|
192.168.0.x dg 192.168.0.1

All traffic which is not local (ie not in the same subnet as the sending
machine) will be sent to the gateway router. The router can deliver it
directly in the "other" subnet because it also has an interface in that
subnet.

"asdf" <(E-Mail Removed)> wrote in message news:%VAZg.75$(E-Mail Removed)...
> Let's say i have 3 computers
> one is on the 10.10.10.0 network
> another on 192.168.0.0 network
> I want to route messages between the
> two using a third computer with two nic cards.
> What settings exactly do i need to setup for TCPIP
> for the three machines and what commands should i
> issue using route command. Any step by step
> tutorials which can help me?
>
> thank you
>



Reply With Quote
  #4  
Old 10-21-2006, 03:30 AM
asdf
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

but let's say i don't want to enable the RRAS for whatever reason.
Can't i configure the cards on each machine the way you described below
and then configure the multihomed machine with two static routes?

"Bill Grant" <not.available@online> wrote in message
news:e0GQT8$(E-Mail Removed)...
> You don't need any route commands. Just enable IP routing on the machine
> with two NICs (as Bob advised). When IP routing is enabled, the machine
> will forward traffic from on subnet to the other as required.
>
> Routing will be automatic if you set the default gateways correctly.
> Basically, you set both subnets to use the IP address of the router as the
> default gateway setting. eg
>
> 10.10.10.x dg 10.10.10.1
> |
> 10.10.10.1 dg blank
> router
> 192.168.0.1 dg blank
> |
> 192.168.0.x dg 192.168.0.1
>
> All traffic which is not local (ie not in the same subnet as the
> sending machine) will be sent to the gateway router. The router can
> deliver it directly in the "other" subnet because it also has an interface
> in that subnet.
>
> "asdf" <(E-Mail Removed)> wrote in message
> news:%VAZg.75$(E-Mail Removed)...
>> Let's say i have 3 computers
>> one is on the 10.10.10.0 network
>> another on 192.168.0.0 network
>> I want to route messages between the
>> two using a third computer with two nic cards.
>> What settings exactly do i need to setup for TCPIP
>> for the three machines and what commands should i
>> issue using route command. Any step by step
>> tutorials which can help me?
>>
>> thank you
>>

>
>



Reply With Quote
  #5  
Old 10-21-2006, 05:36 AM
asdf
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

How do i setup the DNS server though.

Lets say i have dns server in the 192.168.0.x
subnet but not in the 10.10.10.x subnet.

thanks

So lets say one of the cards is on the 10.10.10.x network with
ip address of 10.10.10.1. and SM of 255.255.255.0
What do i set it as it's gateway and DNS server.
What about the cards that's on the
"Bill Grant" <not.available@online> wrote in message
news:e0GQT8$(E-Mail Removed)...
> You don't need any route commands. Just enable IP routing on the machine
> with two NICs (as Bob advised). When IP routing is enabled, the machine
> will forward traffic from on subnet to the other as required.
>
> Routing will be automatic if you set the default gateways correctly.
> Basically, you set both subnets to use the IP address of the router as the
> default gateway setting. eg
>
> 10.10.10.x dg 10.10.10.1
> |
> 10.10.10.1 dg blank
> router
> 192.168.0.1 dg blank
> |
> 192.168.0.x dg 192.168.0.1
>
> All traffic which is not local (ie not in the same subnet as the
> sending machine) will be sent to the gateway router. The router can
> deliver it directly in the "other" subnet because it also has an interface
> in that subnet.
>
> "asdf" <(E-Mail Removed)> wrote in message
> news:%VAZg.75$(E-Mail Removed)...
>> Let's say i have 3 computers
>> one is on the 10.10.10.0 network
>> another on 192.168.0.0 network
>> I want to route messages between the
>> two using a third computer with two nic cards.
>> What settings exactly do i need to setup for TCPIP
>> for the three machines and what commands should i
>> issue using route command. Any step by step
>> tutorials which can help me?
>>
>> thank you
>>

>
>



Reply With Quote
  #6  
Old 10-22-2006, 12:28 AM
Bill Grant
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

No. You must enable IP routing on a machine before it will forward traffic
from one interface to another.

"asdf" <(E-Mail Removed)> wrote in message
news:%Df_g.189$(E-Mail Removed)...
> but let's say i don't want to enable the RRAS for whatever reason.
> Can't i configure the cards on each machine the way you described below
> and then configure the multihomed machine with two static routes?
>
> "Bill Grant" <not.available@online> wrote in message
> news:e0GQT8$(E-Mail Removed)...
>> You don't need any route commands. Just enable IP routing on the machine
>> with two NICs (as Bob advised). When IP routing is enabled, the machine
>> will forward traffic from on subnet to the other as required.
>>
>> Routing will be automatic if you set the default gateways correctly.
>> Basically, you set both subnets to use the IP address of the router as
>> the default gateway setting. eg
>>
>> 10.10.10.x dg 10.10.10.1
>> |
>> 10.10.10.1 dg blank
>> router
>> 192.168.0.1 dg blank
>> |
>> 192.168.0.x dg 192.168.0.1
>>
>> All traffic which is not local (ie not in the same subnet as the
>> sending machine) will be sent to the gateway router. The router can
>> deliver it directly in the "other" subnet because it also has an
>> interface in that subnet.
>>
>> "asdf" <(E-Mail Removed)> wrote in message
>> news:%VAZg.75$(E-Mail Removed)...
>>> Let's say i have 3 computers
>>> one is on the 10.10.10.0 network
>>> another on 192.168.0.0 network
>>> I want to route messages between the
>>> two using a third computer with two nic cards.
>>> What settings exactly do i need to setup for TCPIP
>>> for the three machines and what commands should i
>>> issue using route command. Any step by step
>>> tutorials which can help me?
>>>
>>> thank you
>>>

>>
>>

>
>



Reply With Quote
  #7  
Old 10-22-2006, 12:36 AM
Bill Grant
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

You can use the existing DNS server for the machines in the 10.10.10
subnet. Just set them to use the 192.168.0.x address of the DNS server. If
you have set the routing up correctly, every machine in the 10.10.10 subnet
can connect to any machine in the 192.168.0 subnet and vice-versa.

If you have a routed network you do not need a DNS server in each
subnet.

"asdf" <(E-Mail Removed)> wrote in message newsth_g.195$(E-Mail Removed)...
> How do i setup the DNS server though.
>
> Lets say i have dns server in the 192.168.0.x
> subnet but not in the 10.10.10.x subnet.
>
> thanks
>
> So lets say one of the cards is on the 10.10.10.x network with
> ip address of 10.10.10.1. and SM of 255.255.255.0
> What do i set it as it's gateway and DNS server.
> What about the cards that's on the
> "Bill Grant" <not.available@online> wrote in message
> news:e0GQT8$(E-Mail Removed)...
>> You don't need any route commands. Just enable IP routing on the machine
>> with two NICs (as Bob advised). When IP routing is enabled, the machine
>> will forward traffic from on subnet to the other as required.
>>
>> Routing will be automatic if you set the default gateways correctly.
>> Basically, you set both subnets to use the IP address of the router as
>> the default gateway setting. eg
>>
>> 10.10.10.x dg 10.10.10.1
>> |
>> 10.10.10.1 dg blank
>> router
>> 192.168.0.1 dg blank
>> |
>> 192.168.0.x dg 192.168.0.1
>>
>> All traffic which is not local (ie not in the same subnet as the
>> sending machine) will be sent to the gateway router. The router can
>> deliver it directly in the "other" subnet because it also has an
>> interface in that subnet.
>>
>> "asdf" <(E-Mail Removed)> wrote in message
>> news:%VAZg.75$(E-Mail Removed)...
>>> Let's say i have 3 computers
>>> one is on the 10.10.10.0 network
>>> another on 192.168.0.0 network
>>> I want to route messages between the
>>> two using a third computer with two nic cards.
>>> What settings exactly do i need to setup for TCPIP
>>> for the three machines and what commands should i
>>> issue using route command. Any step by step
>>> tutorials which can help me?
>>>
>>> thank you
>>>

>>
>>

>
>



Reply With Quote
  #8  
Old 10-22-2006, 03:52 AM
asdf
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

please pardon my stupidity but isn't thats what static routes are for.
I thought that RRAS just provides an easy to use interface for
something that one can do using the command line.
So
Create configure machine on the first network to use
Adapter1 on router as gateway,
configure machine on the second network to use Adapter2
on router as gateway.
Create 3 static routes on router machine:
2 to rout traffic between the two networks and
one default route to forward the traffic to the internet.

Thank you very much
"Bill Grant" <not.available@online> wrote in message
news:(E-Mail Removed)...
> No. You must enable IP routing on a machine before it will forward
> traffic from one interface to another.
>
> "asdf" <(E-Mail Removed)> wrote in message
> news:%Df_g.189$(E-Mail Removed)...
>> but let's say i don't want to enable the RRAS for whatever reason.
>> Can't i configure the cards on each machine the way you described below
>> and then configure the multihomed machine with two static routes?
>>
>> "Bill Grant" <not.available@online> wrote in message
>> news:e0GQT8$(E-Mail Removed)...
>>> You don't need any route commands. Just enable IP routing on the machine
>>> with two NICs (as Bob advised). When IP routing is enabled, the machine
>>> will forward traffic from on subnet to the other as required.
>>>
>>> Routing will be automatic if you set the default gateways correctly.
>>> Basically, you set both subnets to use the IP address of the router as
>>> the default gateway setting. eg
>>>
>>> 10.10.10.x dg 10.10.10.1
>>> |
>>> 10.10.10.1 dg blank
>>> router
>>> 192.168.0.1 dg blank
>>> |
>>> 192.168.0.x dg 192.168.0.1
>>>
>>> All traffic which is not local (ie not in the same subnet as the
>>> sending machine) will be sent to the gateway router. The router can
>>> deliver it directly in the "other" subnet because it also has an
>>> interface in that subnet.
>>>
>>> "asdf" <(E-Mail Removed)> wrote in message
>>> news:%VAZg.75$(E-Mail Removed)...
>>>> Let's say i have 3 computers
>>>> one is on the 10.10.10.0 network
>>>> another on 192.168.0.0 network
>>>> I want to route messages between the
>>>> two using a third computer with two nic cards.
>>>> What settings exactly do i need to setup for TCPIP
>>>> for the three machines and what commands should i
>>>> issue using route command. Any step by step
>>>> tutorials which can help me?
>>>>
>>>> thank you
>>>>
>>>
>>>

>>
>>

>
>



Reply With Quote
  #9  
Old 10-23-2006, 02:09 AM
Bill Grant
Guest
 
Posts: n/a
Default Re: Setting Up Routing using Route Command

If you want Internet access, that is a different situation altogether.
You did not mention that previously. We started off with only three
machines. Perhaps you could describe how your network is configured and what
you are trying to achieve.

To get Internet access you will need some static routing, but not on any
of the machines you are talking about. The best place to put the static
route is on the Internet gateway router.

If your existing 192.168.0 subnet has an Internet connection, all the
machines will be using the the Internet router as their default gateway. If
you want to add a second subnet which can route to this subnet and to the
Internet, I would set it up like this.

Internet
|
public IP
Internet router
192.168.0.m
|
192.168.0.x dg 192.168.0.m
|
192.168.0.n dg 192.168.0.m
RRAS
10.10.10.1 dg blank
|
workstations
10.10.10.x dg 10.10.10.1

The static route you need to make this work is

10.10.10.0 255.255.255.0 192.168.0.n

The place you need this static route is on the Internet router. Traffic
from 10.10.10 can get to machines in 192.168.0 and to the Internet router by
default routing. The return traffic needs to know where the 10.10.10 subnet
is and how to get there. The static route solves this by forwarding 10.10.10
traffic to the RRAS router. Machines in 10.10.10 can now access the Internet
and machines in the 192.168.0 subnet.

If for some reason you can't do that (such as you don't have admin
rights to the Internet router), the only way to get Internet access for the
10.10.10 subnet is to configure RRAS as a NAT router. It will now work
because all traffic from a 10.10.10.x machine reaching the Internet router
will be using the RRAS router's 192.168.0 IP address. The Internet router
will do NAT again to its public IP. Replies will be handled by the NATs to
get them back to the correct host. The only thing that won't work is that
machines in the 192.168.0 subnet will not be able to access machines in
10.10.10 (because they are on the "public" side of a NAT). 10.10.10 machine
will be able to access 192.168.0 machines through the NAT.

"asdf" <(E-Mail Removed)> wrote in message
news:33B_g.400$(E-Mail Removed)...
> please pardon my stupidity but isn't thats what static routes are for.
> I thought that RRAS just provides an easy to use interface for
> something that one can do using the command line.
> So
> Create configure machine on the first network to use
> Adapter1 on router as gateway,
> configure machine on the second network to use Adapter2
> on router as gateway.
> Create 3 static routes on router machine:
> 2 to rout traffic between the two networks and
> one default route to forward the traffic to the internet.
>
> Thank you very much
> "Bill Grant" <not.available@online> wrote in message
> news:(E-Mail Removed)...
>> No. You must enable IP routing on a machine before it will forward
>> traffic from one interface to another.
>>
>> "asdf" <(E-Mail Removed)> wrote in message
>> news:%Df_g.189$(E-Mail Removed)...
>>> but let's say i don't want to enable the RRAS for whatever reason.
>>> Can't i configure the cards on each machine the way you described below
>>> and then configure the multihomed machine with two static routes?
>>>
>>> "Bill Grant" <not.available@online> wrote in message
>>> news:e0GQT8$(E-Mail Removed)...
>>>> You don't need any route commands. Just enable IP routing on the
>>>> machine with two NICs (as Bob advised). When IP routing is enabled, the
>>>> machine will forward traffic from on subnet to the other as required.
>>>>
>>>> Routing will be automatic if you set the default gateways correctly.
>>>> Basically, you set both subnets to use the IP address of the router as
>>>> the default gateway setting. eg
>>>>
>>>> 10.10.10.x dg 10.10.10.1
>>>> |
>>>> 10.10.10.1 dg blank
>>>> router
>>>> 192.168.0.1 dg blank
>>>> |
>>>> 192.168.0.x dg 192.168.0.1
>>>>
>>>> All traffic which is not local (ie not in the same subnet as the
>>>> sending machine) will be sent to the gateway router. The router can
>>>> deliver it directly in the "other" subnet because it also has an
>>>> interface in that subnet.
>>>>
>>>> "asdf" <(E-Mail Removed)> wrote in message
>>>> news:%VAZg.75$(E-Mail Removed)...
>>>>> Let's say i have 3 computers
>>>>> one is on the 10.10.10.0 network
>>>>> another on 192.168.0.0 network
>>>>> I want to route messages between the
>>>>> two using a third computer with two nic cards.
>>>>> What settings exactly do i need to setup for TCPIP
>>>>> for the three machines and what commands should i
>>>>> issue using route command. Any step by step
>>>>> tutorials which can help me?
>>>>>
>>>>> thank you
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



Reply With Quote
Reply

Tags
command, route, routing, setting

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
Forum Jump


All times are GMT. The time now is 10:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.