Showing results for 
Search instead for 
Did you mean: 

Ask the Expert- SD-WAN

OSPF default route advertisement




Cisco device uses “default-information originate” statement to generate a default route in OSPF. There are two ways to originate default route by using this command:

1) When you configure “default-information originate”  under OSPF process  without any argument after this statement, OSPF process will  first checks , if any default route is already present in routing table. If a default route is already in present in routing table, such as via static or dynamic protocol, OSPF originate default route. If default route does not exist in routing table, OSPF will not originate default route. This behavior is desirable when there are multiple exist point out of OSPF domain to external network.

2)The behavior can be modified by adding "always" argument to the "default-infomation orginate" statement,which essentially skips the checking for a default route already being installed in the table.


Under  OSPF process "redistribute static subnets "command is used to redistribute static routes in OSPF, However static default route (ip route is not injected in to OSPF topology database.Even if there is a default route in the routing table, by default Cisco's OSPF implementation will not forward it to the rest of the network. This is because OSPF uses a link state algorithm that keeps track of links rather than routes.

To propagate a default route in OSPF, use the default-information originate configuration command:

Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip route
Router(config)#router ospf 100
Router(config-router)#default-information originate metric 10 metric-type 1


You can look at the external default route in the OSPF database with the following command:


Router1#sh ip ospf database | in     371         0x80000001 0x0018CA 100


Router1#sh ip ospf database external

            OSPF Router with ID ( (Process ID 100)

                Type-5 AS External Link States

  Routing Bit Set on this LSA
  LS age: 7
  Options: (No TOS-capability, DC)
  LS Type: AS External Link
  Link State ID: (External Network Number )
  Advertising Router:
  LS Seq Number: 80000002
  Checksum: 0xF366
  Length: 36
  Network Mask: /0
        Metric Type: 1 (Comparable directly to link state metric)
        TOS: 0
        Metric: 10
        Forward Address:
        External Route Tag: 100


In this example, you can see that the default route is advertised by the router with a metric of 10 and a metric type of 1. The metric type in this case refers to whether this route is considered by OSPF to be a Type 1 or Type 2 external route. By default OSPF originate Type 2 external route.


You can also originate Conditional default route in OSPF.Conditional default route in OSPF originate by using route-map in default-information command under router OSPF process. The route map configured in the "default-information originates" command check the existing IP prefixes in the IP routing table.

To know more about OSPF condition route advertisement please read this document:

Conditional default route advertisement in OSPF

OSPF reliable conditional default routing using IP SLA

Related Information

How Does OSPF Generate Default Routes?


Thank you very much, I can solve a problem OSPF redistribute route to default route by  “default-information originate”



CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards