Home > System Admin, Windows > IP Routing in Windows

IP Routing in Windows

October 25, 2009

Linux is often used for network routing because it is cheap to set up, it is efficient, and it runs on old computer hardware. However, if you are not already familiar with Linux, the set-up can be daunting. If you only have simple routing requirements then a Windows box can be used as the IP router.

By default, for security reasons, Microsoft turns off routing between the Ethernet cards. However, if you need to route, the option can be turned back on.

To set up a Windows box as an IP router do the following:

  1. Take a spare PC with Windows XP or Vista on it to use as the PC router.
  2. Ensure that there are two or more Ethernet cards installed in the PC.
  3. For each of the installed Ethernet cards, assign an IP address from a different subnet.
  4. Enable routing between the Ethernet cards:
    • regedit
    • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters
      • Change IPEnableRouter from 0 to 1
    • Reboot
  5. Connect a second PC to a network that is attached to one of the Ethernet cards in the PC router. Using the second PC, attempt to ping each of the Ethernet cards in the PC router. You should be able to ping devices on other subnets through the PC router.
  6. Note: If your second PC’s default gateway is not the PC router then you may need to add additional static routes using the route add command.

Reference:

Advertisements
Categories: System Admin, Windows
%d bloggers like this: