C613-50170-01 Rev B
Command Reference for x510 Series
1002
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
OSPF C
OMMANDS
DISTRIBUTE
-
LIST
(OSPF)
Usage
There are
in
and
out
distribute-lists, which carry out different route filtering
activities:
•
The
in
distribute list is applied to the process of installing OSPF routes into
the IP route table. The SPF calculation generate a set of routes calculated
from the LSA database. By default, all of these routes become OSPF’s
candidate routes for inclusion into the IP route table.
•
An
in
distribute-list can be used to control whether or not certain routes
generated by the SPF calculation are included into the set of candidates for
inclusion into the IP route table. Those routes that match
deny
entries in the
distribute-list will not be considered for inclusion into the IP route table.
•
The
out
distribute-list applies the process of redistributing non-OSPF routes
into OSPF. If OSPF redistribution is configured, and an
out
distribute-list is
also configured, then routes that match deny entries in the distribute-list will
not be redistributed into OSPF.
Examples
The following example shows the installation of OSPF routes into the IP route table
with route map “mymap1” applied, which will process routes that have been
tagged 100:
awplus#
configure terminal
awplus(config)#
route-map mymap1 permit 10
awplus(config-route-map)#
match tag 100
awplus(config-route-map)#
exit
awplus(config)#
router ospf 100
awplus(config-router)#
distribute-list route-map mymap1 in
Use the following commands to configure a route-map to specifically prevent
OSPF from offering 192.168.1.0/24 as a candidate for inclusion into the IP route
table:
awplus#
configure terminal
awplus(config)#
ip prefix-list 100 seq 5 permit 192.168.1.0/24
awplus(config)#
route-map 100 deny 10
awplus(config-route-map)#
match ip address prefix-list 100
awplus(config-route-map)#
exit
awplus(config)#
route-map 100 permit 20
awplus(config-router)#
router ospf 1
awplus(config-router)#
distribute-list route-map 100 in
Related
Commands