02-06-2008 11:19 AM - edited 03-03-2019 08:35 PM
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 ??
02-06-2008 11:38 AM
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.
02-06-2008 06:48 PM
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.
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: