redistribution command questions

Unanswered Question
Dec 31st, 2007

I have a basic understanding of redsribing routes with a command such as this

router ospf 1

redistribute eigrp 1

However, I do not understand the following scenario

router ospf 1


redistribute connected subnets

redistribute bgp 6XXX subnets

network area 1

why would you issue the redistribute connected subnet command?

In my sho ip route ...everything is either

direclty connected or being learned O E2

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Edison Ortiz Mon, 12/31/2007 - 08:22

When routes are redistributed into OSPF, only routes that are not subnetted are redistributed if the subnets keyword is not specified.

For instance, if you are redistributing from EIGRP and it has,,, they will be redistributed without problems because they are class C networks with /24 subnets

However, if you had,,, none of those routes will be redistributed because they are class A networks with /24 subnets.

If you attempt to redistributed without the subnet keyword, you will receive this warning:

% Only classful networks will be redistributed

Edit: I re-read your questions one more time and now I see what you are really after.

In your case, you would want the redistribute connected subnet command if you want to announce other Layer3 links that your router has, that aren't part of the subnet. Those links will be brought into the OSPF database as O E2, and you can verify it with the show ip os data.

brooklynheight Mon, 12/31/2007 - 12:14

correct- there are more subnets listed when i do # sh ip ospf data

192.168.96, 93, 92 etc..

is this because of the "redistribute connected subnet" command?

If I am announcing these other subnets..

couldn't the "network 192.168.x.x" lines have been left out?..since they would have

been distributed anway with the "redistribute connected subnet" command?

Edison Ortiz Mon, 12/31/2007 - 12:26

If - 93.0/24 - 92.0/24 are directly connected links on this router, then yes, they were redistributed into OSPF by that command.

You need at least one network statement in order to enable OSPF on an interface and exchange routes with other OSPF routers. The redistribute command does not enable OSPF on an interface, it just announces the links to other OSPF speakers.


This Discussion