configuring windows 7 as a router in LAN
-
Friday, November 16, 2012 5:54 PM
hi everyone
i have a network and want PCs in range 192.168.2.1 connect to PCs in range for 192.168.3.1 with a windows 7 as a router.
Is there any solution?
- Edited by davood Mohammad Hasani Friday, November 16, 2012 6:14 PM correct Question
- Edited by davood Mohammad Hasani Friday, November 16, 2012 6:27 PM
All Replies
-
Friday, November 16, 2012 9:44 PM
It depends on your router. Generally privit subnets are not routable, but in practice, if you have "real" router, you can configure router table. It does nothing with Windows 7.
Regards
Milos
-
Friday, November 16, 2012 11:30 PM
You can enable IP routing in Windows 7 by modifying the relevant registry key.
The IPEnableRouter registry entry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services\Tcpip\Parameters\IPEnableRouter
Set registry entry to 1 (data type is REG_DWORD)
This will enable IP forwarding on the workstation. However traffic will only move from one subnet to the other if the routing is set up correctly. It will "just work" if the router is the default gateway for both subnets.
192.168.2 x dg 192.168.2.254
|
192.168.2.254 dg blank
Win 7 router
192.168.3.254 dg blank
|
192.168.3.x dg 192.168.3.254It gets harder if either subnet uses a different gateway. You need extra routing to get the traffic to the Win 7 router (and these routes are not set up on the router workstation itself).
The Win 7 router can only forward traffic which actually reaches it! It can do nothing about traffic which goes to a different gateway.
Bill
- Marked As Answer by Juke ChouMicrosoft Contingent Staff, Moderator Tuesday, December 04, 2012 3:30 PM
-
Tuesday, November 20, 2012 9:31 AMModerator
Hi,
Before you want to consider Windows 7 as a router, you must make sure this computer is equipped with 2 network cards. One network card connect to 192.168.2.1, one connect to 192.168.3.1.
There is an tutorial about how to make Windows XP as a router( It’s same with Windows 7), more information refer to the link below:
http://www.home-network-help.com/ip-forwarding.html
Spencer
TechNet Community Support
- Marked As Answer by Juke ChouMicrosoft Contingent Staff, Moderator Tuesday, December 04, 2012 3:30 PM
- Unmarked As Answer by Juke ChouMicrosoft Contingent Staff, Moderator Tuesday, December 04, 2012 3:30 PM

