Static
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:
Longest prefix match - Most specific route wins
Administrative distance - Lower distance preferred
Metric - Used when distance is equal
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
Static routing best practices
Design principles
Keep it simple - Use static routes only where necessary
Plan for redundancy - Always have backup paths
Use monitoring - Implement health checking for critical routes
Document thoroughly - Use meaningful comments
Test failover - Verify backup routes work correctly
Common mistakes to avoid
Routing loops - Ensure no circular routing paths
Missing return routes - Verify bidirectional connectivity
Incorrect distances - Plan administrative distance carefully
No monitoring - Critical routes should be health-checked
Poor documentation - Always comment route purposes
Maintenance procedures
Regular review - Audit static routes periodically
Change control - Document all route changes
Testing procedures - Test before implementing in production
Backup configurations - Export and save route configs
Monitor performance - Watch for routing-related issues
Last updated
Was this helpful?