ip prefix-list prefix-name
You are in PREFIX LIST mode.
Create a prefix list with a sequence number and a deny or permit action.
CONFIG- PREFIX LIST mode
seq sequence-number {deny |permit} ip-prefix [ge min-prefix-length] [le max-
prefix-length]
The optional parameters are:
ge min-prefix-length: is the minimum prefix length to match (from 0 to 32).
le max-prefix-length: is the maximum prefix length to match (from 0 to 32).
For configuration information about prefix lists, refer to Access Control Lists (ACLs).
Applying Prefix Lists
To apply prefix lists to incoming or outgoing OSPF routes, use the following commands.
Apply a configured prefix list to incoming OSPF routes.
CONFIG-ROUTEROSPF-id mode
distribute-list prefix-list-name in [interface]
Assign a configured prefix list to outgoing OSPF routes.
CONFIG-ROUTEROSPF-id
distribute-list prefix-list-name out [connected | isis | rip | static]
Redistributing Routes
You can add routes from other routing instances or protocols to the OSPF process.
With the redistribute command, you can include RIP, static, or directly connected routes in the OSPF
process.
NOTE: Do not route iBGP routes to OSPF unless there are route-maps associated with the OSPF
redistribution.
To redistribute routes, use the following command.
Specify which routes are redistributed into OSPF process.
CONFIG-ROUTEROSPF-id mode
redistribute {bgp | connected | isis | rip | static} [metric metric-value |
metric-type type-value] [route-map map-name] [tag tag-value]
Configure the following required and optional parameters:
bgp, connected, isis, rip, static: enter one of the keywords to redistribute those
routes.
metric metric-value: the range is from 0 to 4294967295.
metric-type metric-type: 1 for OSPF external route type 1. 2 for OSPF external route type 2.
route-map map-name: enter a name of a configured route map.
tag tag-value: the range is from 0 to 4294967295.
642 Open Shortest Path First (OSPFv2 and OSPFv3)