My Home Network Step by Step

The Software (part 2)




Router Setup


Once you have the PC and the router connected together you can use the PC to access the router web interface.
Open Mozilla, Internet Explorer, or another web client, and point to the web server on the router. In my case the router address (as specified in the router manual) is 192.168.1.254, so I point my web browser to: . "http://192.168.1.254". A login name and a password will be asked to you. The values are again in the router manual. With this web interface you will set values "into" the router, not into your PC.

Hamlet router main menu
My router is an Hamlet HRDSL512P4, (see www.hamletcom.com for details) but other routers have a similar interface. This is the first page you see, it suggests to use a wizard for setup, but I don't like those wizards which often hide too many things, so I go to "Interface setup", here you have two pages, one is for the interface towards the provider: your ADSL connection, the other is towards your computers (your LAN).

Hamlet ADSL setup
In this page you have to write the ADSL connection parameters your provider gave you. The items: "Virtual circuit", "VPI", "VCI" etc. specify details of the ADSL connection, the section: "Encapsulation" specifies how your data are inserted into the ADSL transmission. In my case I have "PPPoA". Then you have to write your username and your password (the password your provider gave you for the ADSL connection). Then there is the section of the IP address. This is the IP address of the "provider" side, usually a public IP address. Your router is identified in internet internet by that address. The most common choice is: "dynamic": the provider equipment, on the other side of the connection, will give that address to you.
Click "apply" to save your changes and the most is done

Hamlet router LAN configuration
In this page you have to setup the router interface towards your computers. The IP address is the address of the router as seen from your PC.
In the DHCP section you can setup the DHCP server embedded in your router. I leave the DHCP activated, it gives addresses starting from number 192.168.100. In the DNS section put the IP numbers of the DNS of your provider: the router act as a DNS server, but it has no database, it asks to the provider's servers; in this way you can set up your PC to point to the router as it where a real DNS server.


 


In "advanced setup" you can optionally configure the firewall, and other interesting things:



Computers Setup


Once the router is configured all is done. The router can do all in an automated way; it connects to the provider, obtains from the provider its global IP address and the IP of one or more nameservers, then , via DHCP, gives private, local IP addresses to your computers, a default route (pointing to the router) and the IP of a DNS (again the router). The router, via NAT, send the requests of your computers to the internet.
If you configure your computers to use DHCP, you have only to switch on them and plug their network cable into a RJ45 port of the router. If you have more PC in a far room you can connect your PC to a mini-switch and the mini-switch to a RJ45 port of the router.

You can also give to a PC a static, private, IP address, in the same network of the router, and it will work. You have to remember that each connected computer needs:

On my net I have Linux machines with static IP, but I use DHCP for Windows PC or notebook; some ports of the router are forwarded to a Linux machine to access my network from the outside.