cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
321
Views
5
Helpful
2
Replies

OSPF redistribution

munawar.zeeshan
Level 1
Level 1

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 ??

2 Replies 2

Edison Ortiz
Hall of Fame
Hall of Fame

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
Hall of Fame
Hall of Fame

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: