MikroTik Certified Network Associate (MTCNA)
1 Introduction to Networking
1-1 Basic Networking Concepts
1-2 OSI Model
1-3 TCPIP Model
1-4 IP Addressing
1-5 Subnetting
2 Introduction to MikroTik RouterOS
2-1 RouterOS Overview
2-2 RouterOS Installation
2-3 RouterOS Licensing
2-4 RouterOS Interface Overview
2-5 RouterOS Command Line Interface (CLI)
2-6 RouterOS Graphical User Interface (GUI)
3 Basic Router Configuration
3-1 Router Identification
3-2 Interface Configuration
3-3 IP Address Assignment
3-4 Default Gateway Configuration
3-5 DNS Configuration
3-6 Basic Firewall Configuration
4 Routing
4-1 Static Routing
4-2 Dynamic Routing Protocols
4-3 OSPF Configuration
4-4 BGP Configuration
4-5 Policy-Based Routing
5 Network Address Translation (NAT)
5-1 Introduction to NAT
5-2 Basic NAT Configuration
5-3 Port Address Translation (PAT)
5-4 One-to-One NAT
5-5 Hairpin NAT
6 Firewall and Security
6-1 Firewall Basics
6-2 Firewall Rules Configuration
6-3 NAT Rules Configuration
6-4 Traffic Shaping and QoS
6-5 VPN Basics
6-6 IPsec VPN Configuration
7 Wireless Networking
7-1 Wireless Basics
7-2 Wireless Interface Configuration
7-3 Wireless Security
7-4 Wireless Bridging
7-5 Wireless Access Point Configuration
8 Advanced Topics
8-1 VLAN Configuration
8-2 DHCP Server Configuration
8-3 DHCP Relay Configuration
8-4 PPPoE Server Configuration
8-5 PPPoE Client Configuration
8-6 Hotspot Configuration
8-7 Load Balancing
8-8 High Availability (Failover)
9 Troubleshooting and Maintenance
9-1 Basic Troubleshooting Techniques
9-2 Log Analysis
9-3 Backup and Restore
9-4 Firmware Updates
9-5 System Monitoring
10 Practical Exercises
10-1 Basic Router Configuration Exercise
10-2 Static Routing Exercise
10-3 NAT Configuration Exercise
10-4 Firewall Configuration Exercise
10-5 Wireless Configuration Exercise
10-6 Advanced Configuration Exercise
10-7 Troubleshooting Exercise
8-2 DHCP Server Configuration Explained

8-2 DHCP Server Configuration Explained

Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process of configuring devices on IP networks. Understanding how to configure a DHCP server on a MikroTik router is crucial for the MikroTik Certified Network Associate (MTCNA) certification.

Key Concepts

1. DHCP Overview

DHCP allows devices to automatically receive IP addresses and other network configuration parameters, such as subnet mask, default gateway, and DNS servers. This simplifies network management and reduces the risk of configuration errors.

2. DHCP Pool

A DHCP pool is a range of IP addresses that the DHCP server can assign to client devices. The pool defines the starting and ending IP addresses, as well as the subnet mask and lease time.

3. DHCP Lease

A DHCP lease is the period during which a client device is allowed to use a specific IP address. The lease time can be configured to balance between frequent IP address changes and efficient IP address utilization.

4. DHCP Options

DHCP options are additional parameters that can be sent to client devices, such as DNS servers, NTP servers, and domain name. These options help configure the client devices with the necessary network settings.

5. DHCP Relay

DHCP relay allows DHCP messages to be forwarded between subnets. This is useful in larger networks where DHCP servers are located in a central location, and client devices are spread across multiple subnets.

Detailed Explanation

DHCP Overview

DHCP operates using a client-server model. When a device connects to the network, it sends a DHCPDISCOVER message to find a DHCP server. The DHCP server responds with a DHCPOFFER message containing an available IP address and other configuration parameters. The client then sends a DHCPREQUEST message to accept the offer, and the DHCP server confirms with a DHCPACK message.

DHCP Pool

To configure a DHCP pool on a MikroTik router, you need to define the range of IP addresses that the server can assign. For example, a pool might be defined as 192.168.1.100 to 192.168.1.200 with a subnet mask of 255.255.255.0. The lease time can be set to 8 hours, meaning that clients will need to renew their IP addresses after this period.

DHCP Lease

The lease time determines how long a client can use an IP address before it needs to renew the lease. A shorter lease time allows for more efficient IP address utilization but may cause clients to frequently request new IP addresses. A longer lease time reduces the overhead of frequent requests but may lead to IP address exhaustion if not managed properly.

DHCP Options

DHCP options allow you to configure additional settings for client devices. For example, you can specify the DNS servers as 8.8.8.8 and 8.8.4.4, and the domain name as "example.com". These options ensure that clients receive the correct network configuration when they connect to the network.

DHCP Relay

DHCP relay is used in networks with multiple subnets. A DHCP relay agent (typically a router) forwards DHCP messages between client devices and the DHCP server. This allows the DHCP server to manage IP address allocation for all subnets, even if it is not located on the same subnet as the clients.

Examples and Analogies

Example: DHCP Overview

Think of DHCP as a hotel reservation system. When a guest (client) arrives, they ask for a room (IP address). The receptionist (DHCP server) checks for available rooms and offers one. The guest accepts the offer, and the receptionist confirms the reservation.

Example: DHCP Pool

Consider a DHCP pool as a block of hotel rooms. The hotel manager (DHCP server) assigns rooms (IP addresses) from this block to guests (clients) as they arrive. The manager also sets the check-out time (lease time) for each room.

Example: DHCP Lease

The lease time is like the length of stay at a hotel. A short stay (short lease time) means guests need to check out and check in frequently, while a long stay (long lease time) allows guests to stay longer without interruptions.

Example: DHCP Options

DHCP options are like additional services provided to hotel guests. For example, the hotel might offer breakfast (DNS servers) and a wake-up call (NTP servers) as part of the stay.

Example: DHCP Relay

Imagine a hotel with multiple buildings (subnets). The receptionist (DHCP relay) in each building forwards guest requests (DHCP messages) to the central reservation office (DHCP server) to manage room assignments.

By mastering DHCP server configuration, you can efficiently manage IP address allocation and network settings for devices on your MikroTik router, ensuring a smooth and reliable network experience.