Friday, July 1, 2011

OSPF External Route Default Metrics


A default metric of 1 will be used for redistributed BGP routes; while a default metric of 20 will be used for routes redistributed from other routing protocols, including static routes and directly connected interfaces. Below shows the routing table on RT1 as the proof of the statement above:
RT1#sh ip route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 1 subnets
O E2    172.16.1.0 [110/1] via 12.12.12.2, 00:00:19, Serial0/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, Serial0/0
O E2 192.168.1.0/24 [110/20] via 12.12.12.2, 00:00:49, Serial0/0
RT1#
RT1#sh ip route 172.16.1.0
Routing entry for 172.16.1.0/24
  Known via "ospf 100", distance 110, metric 1, type extern 2, forward metric 64
  Last update from 12.12.12.2 on Serial0/0, 00:00:19 ago
  Routing Descriptor Blocks:
  * 12.12.12.2, from 2.2.2.2, 00:00:19 ago, via Serial0/0
      Route metric is 1, traffic share count is 1

RT1#
RT1#sh ip route 192.168.1.0
Routing entry for 192.168.1.0/24
  Known via "ospf 100", distance 110, metric 20, type extern 2, forward metric 64
  Last update from 12.12.12.2 on Serial0/0, 00:00:49 ago
  Routing Descriptor Blocks:
  * 12.12.12.2, from 2.2.2.2, 00:00:49 ago, via Serial0/0
      Route metric is 20, traffic share count is 1

RT1#

No comments:

Post a Comment