Static route generator

Destination, next hop and metric in — vendor syntax out. A metric above 1 produces a floating route, used only when the primary withdraws.

Platform

Routes

Export
static-routes.txtcisco-ios
12 lines
! Cisco IOS / IOS-XE — static routes, generated by NetField
! Verify the next hop is reachable before applying.
! Routes with a metric above 1 are floating — used only if the primary withdraws.

configure terminal
! Default via primary ISP
ip route 0.0.0.0 0.0.0.0 203.0.113.1
! Floating backup
ip route 0.0.0.0 0.0.0.0 198.51.100.1 200
! Branch networks
ip route 10.50.0.0 255.255.0.0 10.0.0.2
end