PC as a router
One PC is connected on the internet through a mobile broadband network, using a USB device. I want to connect to that computer another one and both have internet access. Is there a way to make the first computer to act as a router?
The PCs have only network cards, so I will connect them with an ethernet cable.
I guess I need some kind of software to achieve this?
The PC with the internet access has XP and the other Windows 7.
My intent? For both PCs to have internet without needing to buy any additional hardware.
"Internet connection sharing" should do what you need with just a few clicks. Look it up on google.
You'll need 2 network cards on the sharing PC, though.
Not sure about Windows, but there's a way to do it with just one card in Linux (2 virtual interfaces), gets very messy.
That article is maybe what I want. I will check it out.
Why 2 network cards? I will connect the two PCs with ethernet and one computer will access the internet with a USB connecting to a cellular network.
Ohhh I see.
The second card would be the USB card.
I thought it's regular ethernet.
Easy, just get a cross-over cable and you're done ;). Although that's not a scalable solution if you want to add another computer, perhaps consider a router?
With a modern NIC, it doesn't matter whether the cable is cross-over or not. The interface will figure out what kind of cable it is and remap its pins. Cool, huh?
Originally Posted by zacs7
But it's not quite "done" yet, you still need to enable routing on the host machine. I haven't done it myself, but this looks like how you do it:
How to Enable IP Packet Forwarding (Windows NT/2000/XP)
That will allow packets from the Win7 machine to route out through the XP machine. You'll need to configure some kind of SNAT on the XP box to do the address translation (probably through some magic using the "netsh" command)
Wanted to have the Windows 7 PC to be connected and couldn't make it work for nothing! I believe the problem is that windows are too stupid to set up a simple home network correctly.
So went to set it up having the internet on the Windows XP PC. Found a good tutorial to do so. You simply go to the Network Wizard and select the first option and everything is done automatically.
Thanks for the help. I was about start making a program to redirect packages and stuff to the USB port, but hopefully I saved myself tons of trouble.
Not sure how you do it in Windows(somewhere in registry I guess), but in Linux you only need to setup the routing table manually or by some routing protocols and enable forwarding in /proc/sys/net/ipv4/ip_forward.