M@rkJakes.com

A blog of Mark's musings
  • rss
  • Home
  • Tech Blog
  • Dev Blog
  • Radio Blog
  • Rants
  • Music Interests

Using XP as an internet router

The Admin 11/7/2011 10:22:00 PM

First off, this is for home use only, just a few connections.  If you are looking for a cheap alternative to a Cisco router, you are not in the right place!

The Windows XP network stack is quite capable of low traffic routing.  You can do this with the ICS (Internet connection sharing wizard) but that turns on all sorts of proxying and won't allow you to use your own IP addresses (it fixes the lan address to 192.168.0.1).

My friend Dave, who keeps breaking his server, asked me to set up NAT routing on his box.

Standard Windows XP with two network cards.

We named the one connected to the internet router "WAN" and the local area network interface to "LAN".

After making sure that internet connection sharing was switched off on the WAN interface, open the Control Panel, administrive tools, services.

In the console that follows, switch on 'Routing and remote access" .

Close the Services window and open the registry editor by going to Start > Run… and typing “regedit” without the “ ”. Click OK and in the window expand to the following path: My Computer > HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > Tcpip > Parameters. Now in the list you will see something like “IPEnableRouter”. Double click on it and turn the value from 0 to 1. Now restart your computer.

You must know the names of your adapters you are using.. In our case, it was WAN for the interface connected to the ADSL


Now we open the command prompt and type the following command to install NAT:

 

 

	netsh routing ip nat install

Reboot !!!

Now type the next command to add the public interface:

 

	netsh routing ip nat add interface "WAN" full

And the last command to add the private interface:

 

Code:
	netsh routing ip nat add interface "LAN" private

...and the installation is done!


 

Comments
2 Comments

2 responses.

Dave avatar

Dave says:

11.08.2011 at 12:48 PM

Hey dude,

Sounds so easy, why didnt I think of that !!!!

The Admin avatar

The Admin says:

12.11.2011 at 10:15 PM

For Windows 7 users, see this Knowledgebase article:

support.microsoft.com/.../230148

Leave a Comment

  • Recent Posts

    • Installing VMWare Tools in Fedora16 (FC16) from scratch
    • DotNet4 without the web installer
    • FreeNAS and iSCSI
    • Using XP as an internet router
    • DCOM Errors on Server
  • Popular Posts

    • UK VHF Aeronautical Radio Frequencies
    • Using the 'OUT' parameter in stored procedures in EF4/Silverlight
    • System.Windows.Ria missing when upgrading from SL3 to SL4
    • Load Operation Failed for query 'GetYourRecords'
    • 99 Ways to improve performance on your (windows) PC
  • Recent Comments

    • The Admin on Using XP as an internet router
    • Dave on Using XP as an internet router
    • Matt on Bidfun.co.uk - Too good to be true!
    • The Admin on Exeter Airport Changes to Flight Waypoints
    • The Admin on Writing objects to files – Serialization
Powered by Graffiti CMS
  • design by jide
  • Theme converted to GraffitiCMS by Adonis Bitar