Static routing provides manual route configuration that defines explicit paths for network traffic by specifying destination networks and their associated next-hop addresses or exit interfaces, offering predictable and deterministic routing behavior without the overhead of dynamic routing protocols. It supports advanced features including multiple next-hop addresses for load balancing and redundancy, administrative distance adjustment for path preference, route tagging for policy application, and object tracking for conditional route installation based on network reachability. Static routes are essential for simple network topologies, default route configuration, policy routing, and situations requiring precise control over traffic paths without the complexity and resource consumption of dynamic routing protocols.
Diagram
Classes
routing (iosxe.devices.configuration)
Name | Type | Constraint | Mandatory | Default Value |
---|
static_routes | List | [static_routes] | No | |
static_routes (iosxe.devices.configuration.routing)
Name | Type | Constraint | Mandatory | Default Value |
---|
prefix | IP | | Yes | |
mask | IP | | Yes | |
vrf | String | | No | |
next_hops | List | [next_hops] | No | |
next_hops (iosxe.devices.configuration.routing.static_routes)
Name | Type | Constraint | Mandatory | Default Value |
---|
ip | IP | | Yes | |
interface_type | Choice | Loopback , Vlan , GigabitEthernet , TwoGigabitEthernet , FiveGigabitEthernet , TenGigabitEthernet , TwentyFiveGigabitEthernet , FortyGigabitEthernet , HundredGigabitEthernet | No | |
interface_id | Integer | | No | |
distance | Integer | min: 1 , max: 255 | No | |
global | Boolean | true , false | No | |
name | String | | No | |
permanent | Boolean | true , false | No | |
tag | Integer | min: 1 , max: 4294967295 | No | |
track_id | Integer | min: 1 , max: 1000 | No | |
Examples