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
4 Routing Explained

4 Routing Explained

Routing is a fundamental concept in networking that involves directing data packets from a source to a destination across multiple networks. Understanding routing is crucial for network administrators, especially when preparing for the MikroTik Certified Network Associate (MTCNA) certification. This guide will walk you through the key concepts and steps involved in routing.

Key Concepts

1. Static Routing

Static routing involves manually configuring routes on a router. This method is suitable for small networks with predictable traffic patterns. Static routes are manually defined paths that direct traffic to specific networks.

2. Dynamic Routing

Dynamic routing involves using routing protocols to automatically exchange routing information between routers. This method is suitable for large networks with complex traffic patterns. Dynamic routing protocols include OSPF, BGP, and RIP.

3. Default Routing

Default routing involves configuring a default route that directs all traffic to a specific gateway when no specific route is defined. This method is useful for directing traffic to the internet or other external networks.

4. Policy-Based Routing

Policy-based routing involves using policies to determine the path for data packets based on criteria such as source IP address, destination IP address, and application type. This method is useful for implementing advanced routing policies.

Detailed Explanation

Static Routing

Static routes are manually configured paths that direct traffic to specific networks. For example, to configure a static route on a MikroTik router, you would use the command:

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

This command sets up a route to the 192.168.2.0/24 network via the gateway 192.168.1.254.

Dynamic Routing

Dynamic routing protocols automatically exchange routing information between routers. For example, to configure OSPF on a MikroTik router, you would use the commands:

/routing ospf instance add name=ospf1 /routing ospf network add area=backbone network=192.168.1.0/24

These commands configure OSPF on the router and define the network area.

Default Routing

Default routing directs all traffic to a specific gateway when no specific route is defined. For example, to configure a default route on a MikroTik router, you would use the command:

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

This command sets up a default route to the gateway 192.168.1.254.

Policy-Based Routing

Policy-based routing uses policies to determine the path for data packets. For example, to configure policy-based routing on a MikroTik router, you would use the commands:

/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=policy1 src-address=192.168.1.10 /ip route add dst-address=192.168.2.0/24 gateway=192.168.1.254 routing-mark=policy1

These commands configure a policy to route traffic from the source IP address 192.168.1.10 to the 192.168.2.0/24 network.

Examples and Analogies

Static Routing

Think of static routing as a map with predefined routes. Just as you follow a specific path on a map, data packets follow predefined paths on a network.

Dynamic Routing

Consider dynamic routing as a GPS system that automatically updates routes based on traffic conditions. Just as a GPS system adjusts routes in real-time, dynamic routing protocols adjust routes based on network conditions.

Default Routing

Imagine default routing as a default route on a GPS system that directs you to the nearest highway when no specific route is defined. Just as a default route on a GPS system directs you to the nearest highway, a default route on a router directs traffic to a specific gateway.

Policy-Based Routing

Think of policy-based routing as a traffic management system that directs traffic based on specific criteria. Just as a traffic management system directs traffic based on specific criteria, policy-based routing directs data packets based on specific criteria.

By mastering these routing concepts, you can effectively manage and configure network devices, making you a proficient network administrator.