Configuring IP Unicast Routing
Controlling Advertising and Processing in Routing Updates
You can use the distribute-list router configuration command with access control lists to suppress routes
from being advertised in routing updates and to prevent other routers from learning one or more routes. When
used in OSPF, this feature applies to only external routes, and you cannot specify an interface name.
You can also use a distribute-list router configuration command to avoid processing certain routes listed in
incoming updates. (This feature does not apply to OSPF.)
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Command or Action
configure terminal
Example:
Device# configure terminal
router { rip | eigrp}
Example:
Device(config)# router eigrp 10
distribute-list {access-list-number |
access-list-name} out [interface-name | routing
process | autonomous-system-number]
Example:
Device(config-router)# distribute 120 out
gigabitethernet 1/0/7
distribute-list {access-list-number |
access-list-name} in [type-number]
Example:
Device(config-router)# distribute-list 125
in
end
Example:
Device(config-router)# end
copy running-config startup-config
Example:
Device# copy running-config startup-config
Routing Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9500 Switches)
Filtering Routing Information
Purpose
Enters global configuration mode.
Enters router configuration mode.
Permits or denies routes from being
advertised in routing updates, depending
upon the action listed in the access list.
Suppresses processing in routes listed in
updates.
Returns to privileged EXEC mode.
(Optional) Saves your entries in the
configuration file.
199