Route to the remote station with win route table


  1. Posts : 2
    Win 10 pro
       #1

    Route to the remote station with win route table


    Hello,

    I have three pc's:
    - Local PC with an ip 192.168.1.100
    - Remote PC_1 with an ip 192.168.2.100
    - Remote PC_2 with an ip 192.168.2.101
    I would like to access remote pc_2 via remote pc_1. On the local pc and remote pc_1 i have enabled routing in the registry. Windows ip configuration shows as follow:
    Windows IP Configuration

    Host Name . . . . . . . . . . . . : (PC name)
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : Yes
    WINS Proxy Enabled. . . . . . . . : No

    I have installed teamviewer on local pc and remote pc_1 and a vpn adapters of the teamviewer and established vpn connection betwean local pc and remote pc_1.
    On the local pc i have added a route to the route table:
    route add 192.168.2.0 MASK 255.255.255.0 (ip of the teamviewer vpn of the remote pc)
    Route was added successfully, i have route in the route table:
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    192.168.6.0 255.255.255.0 (remote vpn ip) (local vpn ip) 56

    Now from the local pc i can ping to the address 192.168.2.100:
    C:\Windows\system32>ping 192.168.6.253

    Pinging 192.168.2.100 with 32 bytes of data:
    Reply from 192.168.2.100: bytes=32 time=238ms TTL=128
    Reply from 192.168.2.100: bytes=32 time=107ms TTL=128
    Reply from 192.168.2.100: bytes=32 time=123ms TTL=128
    Reply from 192.168.2.100: bytes=32 time=108ms TTL=128

    Ping statistics for 192.168.2.100:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 107ms, Maximum = 238ms, Average = 144ms

    I can also ping succesfully from the remote pc_1 to the remote pc_2, but when i try to ping from local pc to remote pc_2 - all packets are lost. Any help is highly appreaciated.
    Local pc is Windows 10 pro 1909 OS ver 19363.628. Firewalls, antivirus were temporary disabled while i did tests.
      My Computer


  2. Posts : 11,247
    Windows / Linux : Arch Linux
       #2

    Hi there

    Not sure why you would need Teamviewer for this --especially as you know the IP of the computers involved.
    You could use RDP or some type of SSH over Putty or similar -- should be easier without involving 3rd party stuff either.

    If you use RDP then you need to Port forward to the relevant computer(s).

    Using SSH in PuTTY (Windows) - Media Temple

    Cheers
    jimbo
      My Computer


  3. Posts : 2
    Win 10 pro
    Thread Starter
       #3

    Hey jimbo,

    Thank you for your prompt answer. The problem is that remote pcs are in corporate network with a strict rules (no port opening, no vpn, no admin rights for users and so on). Teamviewer is the only option as company has its licence. Anyway, i have found a solution - i forgot to specify pc_1 as default gateway for pc_2 in network configuration.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:13.
Find Us




Windows 10 Forums