Cannot Ping a PC in the Remote office

I am in Office A(subnet:, VPN gateway:;  I want to connect to a PC in Office B(subnet:, VPN gateway: Office B has another Internet gateway(, I found that, if this PC's gateway points to, I cannot Ping this PC from OfficeA. Why ?

Thanks for help.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SteveNetwork ManagerCommented:
because they are 2 x different networks on different subnet masks..

if you get on the router itself can you ping the machines in the other network ?

if so, then you need to do a static route on both routers pointing to each other..

router 1
ip route

and on router 2
ip route

AaronZHUAuthor Commented:
hello PsychoFelix,
Is it correct :  ip route ?
or  ip route ?
SteveNetwork ManagerCommented:
according to what you wrote..

Office A is with gateway to internet of


Office B is with gateway to internet of

so the ip route should be for office B 'ip route

that should go on the default router of the workstations so in this case onto the device (whatever that is)..
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

AaronZHUAuthor Commented:
if I configure the ip route like you said, whether I can Ping any PC in Office B even the PC's gateway is empty ?
SteveNetwork ManagerCommented:
no.. the PC's gateway HAS to be the router that you put the routes on..  

AaronZHUAuthor Commented:
To be clear , is just the Internet gateway, only this PC wants to connect to internet through, other PCs cannot. So this PC's gateway must be The problem is that I cannot Ping this PC because its gateway is not  .
SteveNetwork ManagerCommented:
sorry.. you'll need to draw a layout map and list what the components are..
AaronZHUAuthor Commented:
Now, PC1 wants to ping Proxy Server. How to do ?
AaronZHUAuthor Commented:
anybody help?
SteveNetwork ManagerCommented:
ahh.. diagram makes it better.. ok

reason is.. when you contact office PC its default gateway is its internet gateway router.. meaning ALL traffic is routed out to the internet..

you need that machine to route your local range back to the the vpn router2.. eg.. on each of the machines in OfficeB that need to connect back to OfficeA..

(assume windows xp)
c:> route add mask metric 1

then do a
c:>route print

to make sure the routes are now correct.. and you should be good to go..

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AaronZHUAuthor Commented:
Thanks .
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.