Windows 10 IP Forwarding

4

I am trying to provide Windows 10 with router capabilities(IP Forward). Yes I know I could buy a router or switch. This setup is for TESTING only.

Found a good resource: http://www.home-network-help.com/ip-forwarding.html

However after setting everything up, I still cannot get to the internet from LAN2(USB). LAN1 can get to internet. My setup:

  • Computer 1

    • Lan1 (main connection, can access Internet)

      IP      192.168.130.47
      Submask 255.255.255.0
      Gateway 192.168.130.1
      
    • Lan2 (USB NIC)

      IP      192.168.140.47
      Submask 255.255.255.0
      Gateway -
      
  • Computer 2

    • Lan1 (Connected to Lan2 of Computer1)

      IP      192.168.140.48
      Submask 255.255.255.0
      Gateway 192.168.140.47
      

In regedit I have enabled IPEnableRouter. I rebooted my computer.

  • I can ping Lan1-Computer2 192.168.140.48 from Lan2-Computer 1 192.168.140.47
  • I can ping Lan2-Computer1 192.168.140.47 from Lan2-Computer2 192.168.140.46
  • I can ping LAN1-Computer1 192.168.130.47

So LAN1 can contact LAN2 vice versa but not the internet (which gateway is 192.168.130.1)

Any help please?

Benjamin Jones

Posted 2017-04-14T21:35:26.830

Reputation: 526

Out of curiosity.. why not simply use the Windows 10 Internet Connection sharing? (Control Panel - Network and Internet - Network Connections - right click and Properties on the network you wanted to share - and go into the sharing tab) – Darius – 2017-04-14T22:43:27.927

Because that is the obvious answer. Again just testing other options. – Benjamin Jones – 2017-04-15T17:26:45.577

1did you mange to get this working? – Gerrie Pretorius – 2017-10-11T16:13:14.893

Answers

-1

On Computer 1 make sure the Routing and Remote Access service is enabled and started. In windows 10 it is disabled by default.

user876454

Posted 2017-04-14T21:35:26.830

Reputation: 1

OP preferred static routing enabled by IPEnableRouter over ICS. NAT through RRAS is only available for Windows Server. – guest-vm – 2018-02-26T08:33:00.507