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-3 DHCP Relay Configuration Explained

8-3 DHCP Relay Configuration Explained

DHCP Relay (also known as DHCP中继) is a crucial feature that allows DHCP messages to be forwarded between subnets, enabling devices in different networks to obtain IP addresses from a central DHCP server. Understanding DHCP Relay configuration is essential for the MikroTik Certified Network Associate (MTCNA) certification.

Key Concepts

1. DHCP Relay Overview

DHCP Relay is a mechanism that forwards DHCP requests from clients in one subnet to a DHCP server in another subnet. This allows for centralized IP address management, reducing the need for multiple DHCP servers across different subnets.

2. DHCP Relay Agent

A DHCP Relay Agent is a network device, such as a router, that receives DHCP requests from clients and forwards them to a DHCP server. The Relay Agent adds a 'giaddr' (Gateway Interface Address) field to the DHCP request, indicating the subnet from which the request originated.

3. Configuration Steps

Configuring DHCP Relay on a MikroTik router involves several steps, including enabling the DHCP Relay feature, specifying the DHCP server's IP address, and defining the interfaces on which DHCP requests will be relayed.

Detailed Explanation

DHCP Relay Overview

In a network with multiple subnets, each subnet typically requires its own DHCP server to assign IP addresses. DHCP Relay simplifies this by allowing a single DHCP server to serve multiple subnets. When a client sends a DHCP request, the DHCP Relay Agent intercepts the request and forwards it to the DHCP server, which then responds with an IP address assignment.

DHCP Relay Agent

The DHCP Relay Agent acts as an intermediary between DHCP clients and the DHCP server. It adds the 'giaddr' field to the DHCP request, which helps the DHCP server determine the appropriate subnet for IP address assignment. This ensures that clients receive IP addresses from the correct pool, even if they are located in different subnets.

Configuration Steps

To configure DHCP Relay on a MikroTik router, follow these steps:

  1. Navigate to the IP menu and select DHCP Relay.
  2. Enable the DHCP Relay feature.
  3. Specify the IP address of the DHCP server to which requests will be forwarded.
  4. Define the interfaces on which DHCP requests will be relayed.
  5. Apply the settings to enable DHCP Relay.

Examples and Analogies

Example: DHCP Relay Overview

Think of DHCP Relay as a mail forwarding service. Just as a mail forwarding service sends letters from different addresses to a central post office, DHCP Relay forwards DHCP requests from different subnets to a central DHCP server.

Example: DHCP Relay Agent

Consider the DHCP Relay Agent as a concierge at a hotel. The concierge receives requests from guests (DHCP clients) and forwards them to the appropriate department (DHCP server), ensuring that each guest receives the correct service.

Example: Configuration Steps

Configuring DHCP Relay is like setting up a delivery route. First, you enable the service (turn on the delivery truck). Then, you specify the destination (the central post office). Next, you define the routes (the interfaces on which requests will be relayed). Finally, you apply the settings (start the delivery service) to ensure smooth operation.

By mastering DHCP Relay configuration, you can efficiently manage IP address assignments across multiple subnets, ensuring a streamlined and centralized network administration.