Link to home
Start Free TrialLog in
Avatar of Dalexan
DalexanFlag for Afghanistan

asked on

vnc from 192.168.1.x to 192.168.7.x does not work

Experts, I have two networks which should be trusted but I do not know how to make this work. The first network which is our main office is 192.168.1.x 255.255.255.0 with 192.168.1.1 as the default gateway. The branch office is setup as 192.168.7.x 255.255.255.0 with 192.168.7.254 as the default gateway. Below are the routes I have setup in the 192.168.1.1 router. Do i need to add a static route 192.168.1.0 to 192.168.7.0 in order to VNC from a pc with 192.168.1.23 to 192.168.7.125?

Default Route -- -- 192.168.1.50 Static --
192.168.1.0 255.255.255.0 -- -- Direct --
192.168.7.0 255.255.255.0 -- 192.168.1.254 Static --
192.168.207.0 255.255.255.0 -- 192.168.1.254 Static

Avatar of bbao
bbao
Flag of Australia image

it depends on how you interconnect the two routers. it seems your topolgy is as follows:

 PC1 <----------> Router A <----------> Router B <----------> PC2
1.23               1.1            ?                ?          7.254             7.125

what are the IPs marked as "?"?
Avatar of Dalexan

ASKER

Below is the static routes setup in the router that connects the branch office to us.

IP Address Netmask       Gateway            Metric  
0.0.0.0       0.0.0.0         192.168.100.1       1

When running a tracert from 192.168.7.125 to 192.168.1.50 I get a response like the below

192.168.7.254 is first hop
192.168.100.1 is next
*.*.*.* times out afterward.
like this?

 PC1 <----------> Router A <----------> Router B <----------> PC2
1.23               1.1            ?              100.1     7.254             7.125

it seems that router A's default gateway is 100.1 (router B). if router B's default gateway is router A, you actually need to do NOTHING for enabling a VNC session from 1.23 to 7.125.
Avatar of Dalexan

ASKER

I can tracert from 192.168.1.23 to 192.168.7.1 and i get the below

192.168.1.1 good
192.168.1.254 good
192.168.100.2 good
192.168.7.125 good
> our main office is 192.168.1.x 255.255.255.0 with 192.168.1.1 as the default gateway
>
> 192.168.1.1 good
> 192.168.1.254 good
> 192.168.100.2 good
> 192.168.7.125 good

it seems 1.254 is the default gateway of 1.x network? right?
Avatar of Dalexan

ASKER

No 1.1 is the default gateway on the 1.x network. I have discovered there are two routers used to connect 1.x (main office) to 7.x (branch office).

Main office has the below static routes:

IP Address        Netmask               Gateway     Metric  
0.0.0.0             0.0.0.0                  192.168.1.50 1  
192.168.7.0      255.255.255.0       192.168.100.2 1  
192.168.207.0   255.255.255.0       192.168.100.2 1  
10.10.20.0        255.255.255.0       192.168.100.2 1  

Branch office has the below static routes:

IP Address Netmask       Gateway            Metric  
0.0.0.0       0.0.0.0         192.168.100.1       1
Avatar of Dalexan

ASKER

Here's all the routers:

----------------------------------------------------------
192.168.1.1 router which is at the main office and is the default gateway for all pc's on the 192.168.1.x network
Destination Subnet Mask Metric Gateway Status TTL
Default Route -- -- 192.168.1.50 Static --
192.168.1.0 255.255.255.0 -- -- Direct --
192.168.7.0 255.255.255.0 -- 192.168.1.254 Static --
192.168.207.0 255.255.255.0 -- 192.168.1.254 Static --


----------------------------------------------------------
192.168.1.254 router which is in main office which connects to branch office
 IP Address Netmask Gateway Metric
0.0.0.0 0.0.0.0 192.168.1.50 1  
192.168.7.0 255.255.255.0 192.168.100.2 1  
192.168.207.0 255.255.255.0 192.168.100.2 1  
10.10.20.0 255.255.255.0 192.168.100.2 1  


----------------------------------------------------------
192.168.7.254 router which is in branch office and is the default gateway on the branch office pc's
IP Address Netmask Gateway Metric
0.0.0.0 0.0.0.0 192.168.100.1 1  


ASKER CERTIFIED SOLUTION
Avatar of bbao
bbao
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dalexan

ASKER

Yes RT2 is the router that has the connection to the internet. The 192.168.207.x and 10.10.20.x are specific to equipment that I do not have access to as they are part of a VOIP system.
OK. does your VNC connection from PC1 to PC2 work? does the routing without RT1 work?
Avatar of Dalexan

ASKER

Yes it does work now.
good! glad to help. thanks for your grading. :)