Configuring BGP Filtering by Access Lists and Neighbors
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
Step 7
Routing Configuration Guide, Cisco IOS XE Everest 16.6.x (Catalyst 9500 Switches)
134
Command or Action
configure terminal
Example:
Device# configure terminal
ip as-path access-list access-list-number {permit |
deny} as-regular-expressions
Example:
Device(config)# ip as-path access-list 1 deny
_65535_
router bgp autonomous-system
Example:
Device(config)# router bgp 110
neighbor {ip-address | peer-group name} filter-list
{access-list-number | name} {in | out | weight weight}
Example:
Device(config-router)# neighbor 172.16.1.1
filter-list 1 out
end
Example:
Device(config)# end
show ip bgp neighbors [paths regular-expression]
Example:
Device# show ip bgp neighbors
copy running-config startup-config
Example:
Device# copy running-config startup-config
Configuring IP Unicast Routing
Purpose
Enters the global configuration mode.
Defines a BGP-related access list.
Enters BGP router configuration
mode.
Establishes a BGP filter based on an
access list.
Returns to privileged EXEC mode.
Verifies the configuration.
(Optional) Saves your entries in the
configuration file.
Need help?
Do you have a question about the Catalyst 9500 series and is the answer not in the manual?
Questions and answers