Enable IP Forwarding on Windows Server 200x

Friday, October 28, 2011

Normally, when you want to configure a Windows System for Routing/IP Forwarding, you would configure the Routing and Remote Access Service on a Windows Server Edition. However, there may some instances where you don’t need the all of the features of a router, but simply need to forward IP packets across two interfaces.

By default, TCP/IP forwarding is turned off (disabled) in Windows Server 200x (2000/2003/2003 R2/2008/2008 R2 at the time of this writing). This article describes how to enable TCP/IP forwarding on a Windows Server 200x-based computer.

Here is an example that you can reference:

Step 1: Define the IP scheme for the two segments
Segment 1 –
Segment 2 –
*** /24 is an alternate notation when representing the subnet mask of

Step 2: Configure the Windows Server’s network adapters with IP addresses and other TCP/IP settings. For example, one adapter’s address may be configured to while the second adapter may be configured to

Step 3: Configure the computers on each segment to use the Server’s adapters as their default gateway address.

Step 4: Enable IP Forwarding on the Windows Server via the registry. Start the Registry Editor (Regedit.exe).

In Registry Editor, locate the following registry key

Value Name: IPEnableRouter
Set the following registry value:
Value Name: IPEnableRouter
Value type: REG_DWORD
Value Data: 1

A value of 1 enables TCP/IP forwarding for all network connections that are installed and used by this computer.

Step 5: Quit Registry Editor

Step 6: Restart the Windows Server.

Please help us spread the word by socializing it today!

email contact us

Did you find something wrong with the information on this page? Please take a moment to report it to us so that we can continue to improve the quality of the information on this site. Click here to report an issue with this page.

Recommended Books & Training Resources

MCITP Windows Server 2008 Enterprise Administrator: Training Kit 4-Pack: Exams 70-640 70-642 70-643 70-647 Windows Server 2008 R2 Unleashed