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-2 Static Routing Exercise Explained

10-2 Static Routing Exercise Explained

Static routing is a fundamental concept in network management, where routes are manually configured rather than dynamically learned. Understanding how to configure static routes on a MikroTik router is essential for the MikroTik Certified Network Associate (MTCNA) certification.

Key Concepts

1. Static Routing Overview

Static routing involves manually configuring routes on a router to direct traffic to specific destinations. This is in contrast to dynamic routing, where routes are automatically learned through routing protocols.

2. Route Configuration

Configuring a static route involves specifying the destination network, the next hop (the IP address of the next router in the path), and the outgoing interface. This information tells the router how to forward packets to reach the destination network.

3. Default Route

A default route is a special static route that is used when no specific route to a destination is found. It acts as a catch-all route, directing traffic to a default gateway when no other route matches the destination.

4. Administrative Distance

Administrative distance is a measure of the trustworthiness of a routing source. Static routes typically have a lower administrative distance than dynamic routes, meaning they are preferred over dynamically learned routes.

5. Route Tracking

Route tracking allows you to monitor the status of a static route and take action if the route becomes unavailable. This ensures that traffic is rerouted to an alternate path if the primary route fails.

Detailed Explanation

Static Routing Overview

Static routing is used in small networks or for specific paths where dynamic routing is not necessary. It provides control over routing decisions and is often used for point-to-point connections or to direct traffic through specific paths.

Route Configuration

To configure a static route on a MikroTik router, you need to specify the destination network, the next hop, and the outgoing interface. For example, to route traffic to the network 192.168.2.0/24 via the next hop 192.168.1.2, you would use the command:

/ip route add dst-address=192.168.2.0/24 gateway=192.168.1.2

Default Route

A default route is configured to handle all traffic that does not match any other routes. It is often used to direct traffic to the internet or to a central router in a larger network. For example, to set a default route via the gateway 192.168.1.1, you would use the command:

/ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1

Administrative Distance

Administrative distance determines the priority of routes. Static routes typically have an administrative distance of 1, making them more trusted than dynamically learned routes, which have higher administrative distances. For example, a static route with an administrative distance of 1 is preferred over an OSPF route with an administrative distance of 110.

Route Tracking

Route tracking allows you to monitor the status of a static route and take action if the route becomes unavailable. For example, you can configure an alternate route to be used if the primary route fails. This ensures continuous network operation. For example, to track a route to 192.168.2.0/24 and use an alternate gateway if it fails, you would use the command:

/ip route track add route=192.168.2.0/24 alt-gateway=192.168.1.3

Examples and Analogies

Example: Static Routing Overview

Think of static routing as giving specific directions to a driver. Just as you might tell a driver to take a specific route to a destination, you configure static routes to direct traffic through specific paths in a network.

Example: Route Configuration

Consider route configuration as setting up a delivery route for a package. You specify the destination address (destination network), the next stop (next hop), and the delivery method (outgoing interface). For example, you might tell a delivery driver to take the package to 192.168.2.0/24 via the next stop 192.168.1.2.

Example: Default Route

Imagine a default route as a general delivery service. Just as a general delivery service handles all packages that don't have a specific delivery address, a default route handles all traffic that doesn't match any other routes. For example, you might set up a default route to send all unknown packages to the central post office 192.168.1.1.

Example: Administrative Distance

Think of administrative distance as the trustworthiness of a source. Just as you might trust a handwritten note more than a typed one, you trust static routes more than dynamically learned routes. For example, a static route with an administrative distance of 1 is more trusted than an OSPF route with an administrative distance of 110.

Example: Route Tracking

Consider route tracking as monitoring a delivery route. Just as you might monitor a delivery route and take action if it fails, you monitor a static route and use an alternate route if it fails. For example, you might monitor the route to 192.168.2.0/24 and use an alternate route via 192.168.1.3 if the primary route fails.

By mastering static routing, you can effectively manage network traffic, ensuring that packets are directed through the most efficient and reliable paths.