Configure IP Route Preferences
Before you begin
Disable ECMP before you configure route preferences
Important
Changing route preferences can affect system performance and network accessibility while you perform the procedure. You must therefore change a prefix list or a routing protocol before you activate the protocols.
About this task
Configure IP route preferences to give preference to routes learned for a specific protocol. You must disable ECMP before you configure route preferences.
To configure route preferences for a VRF, access VRF Router Configuration mode, rather than Global Configuration mode.
Procedure
Example
Configure the route preference to SPBM Level 1 and confirm the configuration is correct.
Switch:1>enable Switch:1#configure terminal Switch:1(config)#ip route preference protocol spbm-level1 7 Switch:1(config)#show ip route preference ============================================================================== IP Route Preference - GlobalRouter ============================================================================== PROTOCOL DEFAULT CONFIG ------------------------------------------------------------------------------ LOCAL 0 0 STATIC 5 5 SPBM_L1 7 7 OSPF_INTRA 20 20 OSPF_INTER 25 25 EBGP 45 45 RIP 100 100 OSPF_E1 120 120 OSPF_E2 125 125 IBGP 175 175
View the route preference configuration for a specific VRF, for example 444.
Switch:1>enable Switch:1#configure terminal Switch:1(config)#router vrf test Switch:1(router-vrf)#show ip route preference vrf 444 ============================================================================== IP Route Preference - VRF 444 ============================================================================== PROTOCOL DEFAULT CONFIG ------------------------------------------------------------------------------ LOCAL 0 0 STATIC 5 5 SPBM_L1 7 7 OSPF_INTRA 20 20 OSPF_INTER 25 25 EBGP 45 45 RIP 100 100 OSPF_E1 120 120 OSPF_E2 125 125 IBGP 175 175
Variable definitions
Use the data in the following table to use the ip route preference protocol command.
Variable |
Value |
---|---|
ebgp |
Protocol type eBGP |
ibgp |
Protocol type iBGP |
ospf-extern1 |
Protocol type ospf-extern1 |
ospf-extern2 |
Protocol type ospf-extern2 |
ospf-intra |
Protocol type ospf-intra |
ospf-inter |
Protocol type ospf-inter |
rip |
Protocol type rip |
spbm-level1 |
Protocol type spbm-level1 |
static |
Protocol type static |