map-pinStatic

circle-info

Static routes provide manual control over packet forwarding, essential for connecting networks, creating redundant paths, and implementing specific routing policies in RouterOS environments.

In WinBox you can configure static routes in Routing -> Routes, or you can use terminal with command /ip route

Static routing gives administrators complete control over traffic flow and is essential for basic network connectivity, backup paths, and policy routing.


Static routing fundamentals

How static routes work

Route components:

  • Destination network - Target network or host (dst-address)

  • Gateway - Next-hop router IP address

  • Interface - Outbound interface (optional but recommended)

  • Distance - Administrative preference (lower = preferred)

  • Scope - Route validity scope for monitoring

Route selection criteria:

  1. Longest prefix match - Most specific route wins

  2. Administrative distance - Lower distance preferred

  3. Metric - Used when distance is equal

  4. Route age - Newer routes preferred when all else equal

Administrative distance values

Standard RouterOS distance values for route preference:


Basic static route configuration

Default route (gateway of last resort)

Essential for internet connectivity:

Host routes

Routes to specific hosts:

Network routes

Routes to subnets and network ranges:


Advanced static routing

Multiple paths and redundancy

Configure primary and backup routes for high availability:

Gateway monitoring and health checks

Automatic route manipulation based on gateway health:

Route summarization

Efficient routing table management:

Route monitoring and health checking

Monitor route validity with scope and target-scope:

Conditional routing with routing tables

Use routing marks for policy-based routing:


Site-to-site connectivity

VPN tunnel routing

Configure routes through various VPN types:

Hub and spoke topology

Central site routing configuration:

Meshed connectivity

Full or partial mesh routing:


Multi-WAN static routing

Dual WAN configuration

Configure primary and backup internet connections:

Load balancing static routes

Distribute traffic across multiple connections:


IPv6 static routing

Basic IPv6 routes

IPv6 dual-stack routing


Static route monitoring

Route verification commands

Connectivity testing

Route troubleshooting


Route management and maintenance

Route organization

Bulk route operations


Performance considerations

Route table optimization

Hardware acceleration


chevron-rightShow complete static routing setup for branch officehashtag

Static routing best practices

Design principles

  1. Keep it simple - Use static routes only where necessary

  2. Plan for redundancy - Always have backup paths

  3. Use monitoring - Implement health checking for critical routes

  4. Document thoroughly - Use meaningful comments

  5. Test failover - Verify backup routes work correctly

Common mistakes to avoid

  1. Routing loops - Ensure no circular routing paths

  2. Missing return routes - Verify bidirectional connectivity

  3. Incorrect distances - Plan administrative distance carefully

  4. No monitoring - Critical routes should be health-checked

  5. Poor documentation - Always comment route purposes

Maintenance procedures

  1. Regular review - Audit static routes periodically

  2. Change control - Document all route changes

  3. Testing procedures - Test before implementing in production

  4. Backup configurations - Export and save route configs

  5. Monitor performance - Watch for routing-related issues

Last updated

Was this helpful?