OSPF redistribution

Unanswered Question
Feb 6th, 2008

i am redistributing connected subnets into OSPF process with following command.

redistribute connected subnets.

All the routes / connected subnets are successfully distributing into OSPF, but there is a connected network on the device which i dont want to be ditributed into OSPF.

How can i exclude some static router from redistributing into OSPF ??

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Edison Ortiz Wed, 02/06/2008 - 11:38

You need to use a route-map.

Example:

connected route 192.168.1.0/24 and 192.168.2.0/24 blocked from redistribution while allowing 192.168.3.0/24 and 192.168.4.0/24

ip access-list standard CONNECTED->OSPF

permit 192.168.3.0 0.0.0.255

permit 192.168.4.0 0.0.0.255

route-map CONNECTED->OSPF

match ip address CONNECTED->OSPF

router ospf 1

redistribute connected subnets route-map CONNECTED->OSPF

HTH,

__

Edison.

Joseph W. Doherty Wed, 02/06/2008 - 18:48

Curious why you're redistributing connected subnets vs. making them OSPF interfaces.

Redistribution makes them externals. If you're concerned about peering, you can make interfaces OSPF passive.

Actions

This Discussion