In Part 1 of this two-part tutorial, we discovered how we can load the RouterOS software onto an old PC to get advanced enterprise router features at a very low cost.
In this article, we'll finish up the configuration. Once we're done you'll have a basic router, similar to one you'd get off the shelf, and you can then experiment with the more advanced features.
Configure DHCP to Manage the IP addresses
If you don't have to manually set the IP on each computer that connects to the network, you'll probably want to enable the DHCP server on RouterOS.
This server hands out and manages the IP addresses on the network. Here's how to turn on and configure the DHCP server using WinBox:
- Click IP > DHCP-Server and then click the DHCP Setup button.
- Make sure that the correct name is chosen for the network interface/adapter that will connect to your local network and then click Next.
- Specify the address space/range, for example 192.168.1.0/24 and then click Next.
- Enter the Default Gateway IP addressfor example 192.168.1.1 (the router IP)and click Next.
- Ignore the DHCP relay setting and click Next.
- Enter the DHCP address range. You'll probably want to change it to something like 192.168.1.100-192.168.1.199, so you can use the first 100 addresses for the router and any access points (APs) or servers loaded with static IPs. Then you can better distinguish between the addresses for the APs/servers and the end users.
- Specify the DNS server used by your ISP and click Next. It might be auto detected; otherwise, you might just use OpenDNSs: 220.127.116.11 and 18.104.22.168.
- The default lease time (every three days) is probably fine; however, if you prefer something else, make the change and click Next.
- Click OK to close the dialog box.