Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

OSPF redistribution

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

Re: OSPF redistribution

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.

Super Bronze

Re: OSPF redistribution

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.

135
Views
5
Helpful
2
Replies
CreatePlease login to create content