PC Review


Reply
Thread Tools Rate Thread

How do i calculate the correct network mask for a static route

 
 
steve
Guest
Posts: n/a
 
      20th Oct 2004
-------------------------------------
Problem (see configuration for description of what VM01 & GB01 network
elements are)

I need VM01 & GB01 to be able to communicate on both the 198.208.* and the
192.168.210.* networks. To do this i figured all i would need to do would
be to add a static route on either side of the machine, like so

GB01>route add 192.168.210.100 MASK 255.255.255.0 198.208.20.173

Which i thought would route any traffic destined for 192.168.210.* using
gateway 198.208.20.173 (VM01), which as it is dual honed would route the
traffic appropriately towards the 192.168.210.* network. Unfortunately this
gives me the error that the source & destination mask != destination. I have
tried many combinations of masks and have converted both the IP's to binary
and &'d them, but still i get the same error.!!!!

*) Am i doing something fundemantally wrong here, or must i have just
calculated the &'d address wrong.

*) Will i need to add a route back from the src machine .. something along
the lines of
GB01>route add 192.168.210.100 MASK 255.255.255.0 198.208.20.173
// route 192.168.210.100 traffic to VM01 (198.208.20.173)
VM01>route add 192.168.210.100 MASK 255.255.255.0 198.208.0.156
// route 192.168.210.100 traffic to GB01(198.208.20.156)


Configuration
-------------------------------------
I have two pc's both have 1 network card and each machine has 2 ip addresses
as detailed below

VM01 (2 ip addresses)
198.208.20.173
192.168.210.100
198.208.20.254 (gateway)

GB01 (2 ip addresses)
198.208.0.156
192.168.210.101
198.208.0.254 (gateway)

VM01 is able to ping 198.208.0.156 (therefore the gateway must be routing
this traffic at the 198.208.* network level)
GB01 is able to ping 198.208.20.173 (therefore the gateway must be routing
this traffic at the 198.208.* network level)

VM01 cannot ping 192.168.210.101 (the gateway cannot route the traffic as
it has no knowledge of it)
GB01 cannot ping 192.168.210.100 (the gateway cannot route the traffic as
it has no knowledge of it)

If i move VM01 to have ip address on the 198.208.0.* network with gateway
198.208.0.* all machines interconnect fine : ie i can ping across the
192.168.210.* networks. This totally avoids any routes, however as it is
not my network i am unable to do this.

-----------------------
Any help whatsoever would be very.. very useful

Thankyou for reading this far.
















 
Reply With Quote
 
 
 
 
steve
Guest
Posts: n/a
 
      20th Oct 2004
Doh..

I think i have to do
route add 192.168.210.0 MASK 255.255.255.0 198.208.20.173 instead!!!

"steve" <(E-Mail Removed)> wrote in message
news:4176d861$0$113$(E-Mail Removed)...
> -------------------------------------
> Problem (see configuration for description of what VM01 & GB01 network
> elements are)
>
> I need VM01 & GB01 to be able to communicate on both the 198.208.* and
> the 192.168.210.* networks. To do this i figured all i would need to do
> would be to add a static route on either side of the machine, like so
>
> GB01>route add 192.168.210.100 MASK 255.255.255.0 198.208.20.173
>
> Which i thought would route any traffic destined for 192.168.210.* using
> gateway 198.208.20.173 (VM01), which as it is dual honed would route the
> traffic appropriately towards the 192.168.210.* network. Unfortunately
> this gives me the error that the source & destination mask != destination.
> I have tried many combinations of masks and have converted both the IP's
> to binary and &'d them, but still i get the same error.!!!!
>
> *) Am i doing something fundemantally wrong here, or must i have just
> calculated the &'d address wrong.
>
> *) Will i need to add a route back from the src machine .. something along
> the lines of
> GB01>route add 192.168.210.100 MASK 255.255.255.0 198.208.20.173 //
> route 192.168.210.100 traffic to VM01 (198.208.20.173)
> VM01>route add 192.168.210.100 MASK 255.255.255.0 198.208.0.156 //
> route 192.168.210.100 traffic to GB01(198.208.20.156)
>
>
> Configuration
> -------------------------------------
> I have two pc's both have 1 network card and each machine has 2 ip
> addresses as detailed below
>
> VM01 (2 ip addresses)
> 198.208.20.173
> 192.168.210.100
> 198.208.20.254 (gateway)
>
> GB01 (2 ip addresses)
> 198.208.0.156
> 192.168.210.101
> 198.208.0.254 (gateway)
>
> VM01 is able to ping 198.208.0.156 (therefore the gateway must be routing
> this traffic at the 198.208.* network level)
> GB01 is able to ping 198.208.20.173 (therefore the gateway must be routing
> this traffic at the 198.208.* network level)
>
> VM01 cannot ping 192.168.210.101 (the gateway cannot route the traffic as
> it has no knowledge of it)
> GB01 cannot ping 192.168.210.100 (the gateway cannot route the traffic as
> it has no knowledge of it)
>
> If i move VM01 to have ip address on the 198.208.0.* network with gateway
> 198.208.0.* all machines interconnect fine : ie i can ping across the
> 192.168.210.* networks. This totally avoids any routes, however as it is
> not my network i am unable to do this.
>
> -----------------------
> Any help whatsoever would be very.. very useful
>
> Thankyou for reading this far.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Programatically create static network route Sid Price Microsoft Dot NET Framework 1 2nd May 2008 12:06 AM
How to save Static Route via command line 'route' Jason Morrill Microsoft Windows 2000 Advanced Server 2 16th Oct 2004 10:12 PM
How to ADD Static Route on a VPN Mike Microsoft Windows 2000 RAS Routing 2 11th Jul 2004 05:38 AM
Not able to use static route without NAT Viktor Microsoft Windows 2000 RAS Routing 3 8th Aug 2003 02:48 AM
Static Route Robbie Microsoft Windows 2000 RAS Routing 1 30th Jul 2003 04:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 AM.