Administrator Guide

Creating Filter Routes
To filter routes, use prefix lists. OSPF applies prefix lists to incoming or outgoing routes.
Incoming routes must meet the conditions of the prefix lists. If they do not, OSPF does not add the route to the routing table.
Configure the prefix list in CONFIGURATION PREFIX LIST mode prior to assigning it to the OSPF process.
Create a prefix list and assign it a unique name.
CONFIGURATION mode
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.
To view the current OSPF configuration, use the show running-config ospf command in EXEC mode or the show
config command in ROUTER OSPF mode.
DellEMC(conf-router_ospf)#show config
!
Open Shortest Path First (OSPFv2 and OSPFv3)
567