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
10-3 NAT Configuration Exercise Explained

10-3 NAT Configuration Exercise Explained

Network Address Translation (NAT) is a crucial technique for managing IP addresses and optimizing network resources. This exercise will guide you through configuring NAT on a MikroTik router, essential for the MikroTik Certified Network Associate (MTCNA) certification.

Key Concepts

1. NAT Overview

NAT allows multiple devices on a local network to share a single public IP address. It translates private IP addresses to public IP addresses, enabling communication over the internet.

2. Types of NAT

There are several types of NAT, including:

3. NAT Configuration Steps

Configuring NAT involves several steps, including defining the NAT rule, specifying the source and destination addresses, and applying the rule to the appropriate interface.

4. NAT Rules

NAT rules define how traffic should be translated. They include parameters such as the source address, destination address, and the action to be taken (e.g., masquerade, redirect).

5. Testing NAT Configuration

After configuring NAT, it is essential to test the configuration to ensure that traffic is being translated correctly and that devices can communicate over the internet.

Detailed Explanation

NAT Overview

NAT is used to conserve public IP addresses by allowing multiple devices on a private network to share a single public IP address. This is achieved by translating the private IP addresses to the public IP address when traffic leaves the network and translating it back when traffic returns.

Types of NAT

Static NAT is used when a specific private IP address needs to be mapped to a specific public IP address, such as for a web server. Dynamic NAT maps private IP addresses to a pool of public IP addresses, providing flexibility. PAT, also known as Overload NAT, maps multiple private IP addresses to a single public IP address using different ports, making it ideal for home networks.

NAT Configuration Steps

To configure NAT on a MikroTik router, follow these steps:

  1. Log in to the MikroTik router's web interface.
  2. Navigate to the IP > Firewall > NAT menu.
  3. Click on the "Add New" button to create a new NAT rule.
  4. In the "General" tab, specify the chain (e.g., srcnat for source NAT).
  5. In the "Action" tab, select the action (e.g., masquerade for PAT).
  6. Apply the rule and test the configuration.

NAT Rules

NAT rules define how traffic should be translated. For example, a rule might specify that all traffic from the 192.168.1.0/24 network should be masqueraded (PAT) to the public IP address of the router. This ensures that all devices on the private network can access the internet using the router's public IP address.

Testing NAT Configuration

After configuring NAT, test the configuration by accessing the internet from a device on the private network. Use tools like ping or traceroute to verify that traffic is being translated correctly. Additionally, check the router's logs to ensure that the NAT rules are being applied as expected.

Examples and Analogies

Example: NAT Overview

Think of NAT as a post office that handles mail for multiple households. Just as the post office uses a single address for all mail, NAT uses a single public IP address for multiple devices on a private network.

Example: Types of NAT

Consider static NAT as a dedicated mailbox for a specific household. Dynamic NAT is like a shared mailbox for multiple households, and PAT is like a shared mailbox with unique identifiers (ports) for each household.

Example: NAT Configuration Steps

Imagine configuring NAT as setting up a new mail delivery system. First, you log in to the post office (router), then you create a new delivery rule (NAT rule), specify the source and destination addresses, and finally, apply the rule and test the system.

Example: NAT Rules

Think of NAT rules as mail sorting instructions. For example, a rule might specify that all mail from a specific neighborhood (private network) should be delivered to a single address (public IP address) with unique identifiers (ports) for each household.

Example: Testing NAT Configuration

Consider testing NAT configuration as verifying mail delivery. Just as you would check if mail is being delivered correctly, you test if devices on the private network can access the internet using the router's public IP address.

By mastering NAT configuration, you can effectively manage IP addresses and ensure seamless communication over the internet, making it a vital skill for network administrators.