This command displays detailed information about the route preferences for each type of route. Route preferences are used in determining the best route. Lower router preference values are preferred over higher router preference values. A route with a preference of 255 cannot be used to forward traffic
Format | show ip route preferences |
Modes |
|
Local | The local route preference value. |
Static | The static route preference value. |
BGP External | The BGP external route preference value. |
OSPF Intra | The OSPF Intra route preference value. |
OSPF Inter | The OSPF Inter route preference value. |
OSPF External | The OSPF External route preference value. |
RIP | The RIP (Routing Information Protocol) route preference value. |
BGP Internal | The BGP internal route preference value. |
BGP Local | The BGP local route preference value. |
Configured Default Gateway | The route preference value of the statically-configured default gateway |
DHCP Default Gateway | The route preference value of the default gateway learned from the DHCP (Dynamic Host Configuration Protocol) server. |
The following example shows CLI display output for the command.
(alpha-stack) #show ip route preferences Local.......................................... 0 Static......................................... 1 BGP External................................... 20 OSPF Intra..................................... 110 OSPF Inter..................................... 110 OSPF External.................................. 110 RIP............................................ 120 BGP Internal................................... 200 BGP Local...................................... 200 Configured Default Gateway..................... 253 DHCP Default Gateway........................... 254