Order of metric operations:
- Call a route map from the redistribute command, with the route map using the set
metric command. This method allows different metrics for different routes. - Use the metric option on the redistribute command. This sets the same metric for
all routes redistributed by that redistribute command. - Use the default-metric command under the router command. This command sets the
metric for all redistributed routes whose metric was not set by either of the other
two methods.
IGP | Default Metric | Default (and Possible) Metric Types |
RIP | — | — |
EIGRP | — | External |
OSPF | 20/1 | E2 (E1 or E2) |
IS-IS | 0 | L1 (L1, L2, L1/L2, or external) |
Distance
distance { distance-value neigh-ip-address { wildcard-mask } [ ip-standard-list ] [ ip-extended-list ]
distance distance distance eigrp internal-distance external-distance distance ospf {[ intra-area dist1 ] [ inter-area dist2 ] [ external dist3 ]} distance bgp external internal local
Default routing
RIP | EIGRP | OSPF | |
redistribute static | Yes | Yes | No |
default-information originate | Yes | No | Yes |
ip default-network | Yes | Yes | No |
Summary routes | No | Yes | No |
If a static route to 0.0.0.0/0 is in the local routing table, the default-information originate command does NOT cause RIP to inject a default. Redistribute static should be used in that case.
Cisco documentation advises against using route summarization to create a default route.