UnixServerAdmin

Server Administration & Management

IP Forwarding – How to make Windows as a Router

Router (Windows XP Professional)

Network Card A (connect to network A):
IP: 10.10.10.1
Netmask: 255.255.255.0
Gateway (GW): [leave it blank]

Network Card B (connect to network B):
IP: 192.168.20.1
Netmask: 255.255.255.0
Gateway (GW): [leave it blank]

Network Card C (connect to Internet via cable/dsl connection)
This information will be based on the Internet connection service which you have subscribed.
IP: 192.168.1.1
Netmask: 255.255.255.0
Gateway (GW): 192.168.1.1

Configure all the computers in network A with following information.

Network A
IP: 10.10.10.2-254
Netmask: 255.255.255.0
Gateway (GW): 10.10.10.1

Configure all the computers in network B with following information.

Network B
IP: 192.168.20.2-254
Netmask: 255.255.255.0
Gateway: 192.168.20.1

Ok.. Now it’s the time to configure IP forwarding on that router…

1) Go to Start and click Run, then type in regedit to run registry editor.

2) Registry editor window will appear. Browse for the following registry key at the left hand side window:

–> HKEY_LOCAL_MACHINE –> SYSTEM –> CurrentControlSet –> Services –> Tcpip –> Parameters –> IPEnableRouter

Right click IPEnableRouter registry object, and click Modify.

Note: Be extra careful when you deal with registry editor, wrong editing will crash you Windows OS.

3) The IPEnableRouter window will appear. Type 1 as Value data and click OK.

4) Close the regisrty editor and reboot the computer. After rebooting, all the computers should be able to access Internet and also share the file/printer between network A and B.

Note: When I did the test, IP forwarding will only work after rebooting the computer. So don’t forget to do it.

Advertisements

June 25, 2011 Posted by | Windows | | Leave a comment