OSPF- Normal area (0):Do we need 'redistribute connected' for OSPF?

Unanswered Question
Feb 9th, 2009

Hi All,

Core router (6513) with OSPF area 0 (backbone/normal area). This is the onloy protocol on the router. Multiple vlans with diff /24 ipand all being advertised in ospf using 'network' statement. Do we still need 'redistribute connected' command in OSPF config..?

router ospf 100

area range

area range

redistribute connected

network area

network area

network area 0

network area 0

network area 0

network area 0

network area 0

network area 0

PS: This rtr/switch is connected to another area which is Stub via L3 link (



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Joseph W. Doherty Mon, 02/09/2009 - 10:51

Answer might depend whether there are other "connected" networks that don't match a network statement. Assuming there's not, you shouldn't normally need both, although I also see area summaries and you did mention a stub. Since networks will be "different" depending on whether injected via network statement or redistribution, hard to tell what's really intended.

fortis123 Mon, 02/09/2009 - 10:55

Thank you joseph. Also, another questn, what exactly does the redistubute static under OSPF do..? Redistributes the Static routes on the rtr into all other ospf areas in the AS? What is the default administrative distance to those routes..?

Thank you


Joseph W. Doherty Mon, 02/09/2009 - 11:01

Redistribute static would inject the static routes defined on that router into OSPF as externals. There are options to the redistribute command that, I recall, allow you to subject the statics to a route map, determine metric, determine external route type, etc.

As to whether other OSPF areas would see these injected statics, that depends on OSPF area configurations and where the routes are injected.

marikakis Tue, 02/10/2009 - 02:20


Regarding your original question: "all being advertised in ospf using 'network' statement. Do we still need 'redistribute connected' command in OSPF config..? "

1. If a network is covered by a network command you do not need to redistribute connected. There was a time (with certain older IOS versions) that if you had "redistribute connected subnets" in addition to network command, some needless externals would be originated, but this is not the case anymore. For more information have a look at the following document:


2. One case I can think of that "redistribute connected subnets" makes sense is the case of a router with a dial-style role. Customers connect to the router and PPP causes a /32 connected route to appear in routing table. Instead of running OSPF with customer, you redistribute the connected and you are done.

Now, regarding another question of yours "What is the default administrative distance to those routes..?" (i.e. redistributed static). OSPF routes all have a default administrative distance of 110 that is the same for all types of routes (unlike EIGRP). Within OSPF however, intra-area routes are preferred over inter-area, and inter-area routes are preferred over external. You can change the distance per-route type, but this is normally not required:


("A common reason to use the distance ospf command is when you have multiple OSPF processes with mutual redistribution, and you want to prefer internal routes from one over external routes from the other").

Kind Regards,



This Discussion