Contents1. Intro2. Dial-up internet connection3. (DSL/Broadband/Cable) Modem connected to a single PC4. (DSL/Broadband/Cable) Router networked to all PCs5. File and print sharing1. IntroYour goal: Connect together computers on a home or small business network. Share an internet connection. Possibly also share files and printers across the network. You don't need much knowledge in order to achieve this, but a
little bit of understanding will help.
You can skip the intro and use one of the links above to find the information you particularly need, if you're impatient.
O Computer, Where Art Thou?In order to talk to each other, computers need to know where other computers are. If you want to talk to another person, you need that person's telephone number. A similar principle applies to networking computers. The number that computers need to know is called a
TCP/IP address. TCP/IP addresses (or just "IP addresses" for short) look like this:
192.168.1.1
248.2.98.3
48.7.2.11
10.0.0.2
That's four numbers separated by dots. Each number can be from 0 to 255.
Talking the same languageTCP/IP is the system that most networked computers use to talk to one another. It has been around for a long time and has become the de facto international standard. There are other networking languages (called protocols), but you do not need to worry about them, since you will only be configuring TCP/IP.
Commonly some computers will have more than one network protocol installed. IPX/SPX is often in the list of installed protocols. For our purposes, all extraneous protocols should be removed, in order to avoid conflicts, and to keep things as streamlined as possible.
LimitationsThe obvious limitation with IP addresses is that we can easily run out of numbers. The maximum number of computers that could be addressed would be 255 x 255 x 255 x 255 = 4,228,250,625. At one time, it was inconceivable that there would be over 4 billion computers in the world, but we easily hit that limit today.
Private SubnetsTo overcome this problem, several ranges of IP address are reserved for private use. In other words, these addresses will only ever be seen on a private network, and should never leak out onto the wider internet. These are the Class A, B & C networks, as follows:
AThere is one possible Class A network
IP address range = 10.0.0.0 - 10.255.255.255
Subnet mask = 255.0.0.0
BThere are 16 possible Class B networks
For one network: IP address range = 172.x.0.0 - 172.x.255.255
where 'x' is a number from 16 to 31
Subnet mask = 255.255.0.0
CThere are 256 possible Class C networks
For one network: IP address range = 192.168.x.0 - 192.168.x.255
where 'x' is a number from 0 to 255
Subnet mask = 255.255.255.0
The "subnet mask" is a number that we can use along with a clever bit of binary arithmetic, to ensure that we are talking to computers within the appropriate address range.
This whole system may be phased out in time, replaced by a system with much more logical capacity.
What Does This Mean To You?Simply put, the computers on your private network (your "LAN" - local area network) will use addresses from one of the Class A, B or C networks - probably, but not necessarily, a Class C (e.g. 192.168.1.x). Then your
entire LAN will have one IP address, assigned by your ISP (Internet Service Provider).
Losing trackFor people running a network with lots of computers, it can be hard to keep track of all the IP addresses that have been assisgned - especially when computers get moved around. Instead, you can use a system called DHCP (Dynamic Host Configuration Protocol).
It sounds complicated but it boils down to this: a new computer enters a network, with no IP address assigned. It yells 'Is there a DHCP server here? I need an address!' The DHCP server replies, 'Yes, I'm here, and here is your address for this session.' The DHCP server tracks the IP addresses it has assigned and ensures that there are no conflicts on the network. Only one DHCP server should run on a subnet. Many broadband modem/routers have a built in DHCP server.
So DHCP sounds great - but it has its drawbacks. You may need to know where a certain computer is at all times - eg a web server on your local network. You would have to assign that computer an IP address manually, and ensure that any DHCP server is told not to give the address out to anyone else.
In practice, in smaller networks (less than ten computers) it can be easiest to assign all IP addresses manually. For home/small business, that is my recommendation.