858
Configuring IP Unicast Routing
Configuring BGP
Configuring BGP Filtering by Neighbor
You can filter BGP advertisements by using AS-path filters, such as the
as-path access-list
global configuration
command and the
neighbor filter-list
router configuration command. You can also use access lists with the
neighbor
distribute-list
router configuration command. Distribute-list filters are applied to network numbers. See
Advertising and Processing in Routing Updates, page 920
for information about the
distribute-list
command.
You can use route maps on a per-neighbor basis to filter updates and to modify various attributes. A route map can be
applied to either inbound or outbound updates. Only the routes that pass the route map are sent or accepted in updates.
On both inbound and outbound updates, matching is supported based on AS path, community, and network numbers.
Autonomous-system path matching requires the
match
as-path access-lis
t route-map command, community-based
matching requires the
match community-list
route-map command, and network-based matching requires the
ip
access-list
global configuration command.
BEFORE YOU BEGIN
Enable BGP routing as described in the
Enabling BGP Routing, page 850
DETAILED STEPS
Use the
no neighbor distribute-list
command to remove the access list from the neighbor. Use the
no neighbor
route-map
map-tag
router configuration command to remove the route map from the neighbor.
EXAMPLE
The following router configuration mode example applies list 39 to incoming advertisements from neighbor172.16.4.1.
List 39 permits the advertisement of network 10.109.0.0.
Switch(config)#
router bgp 109
Switch(config-router)#
network 10.108.0.0
Switch(config-router)#
neighbor 172.16.4.1 distribute-list 39 in
Configuring BGP Filtering By Access Lists
Another method of filtering is to specify an access list filter on both incoming and outbound updates, based on the BGP
autonomous system paths. Each filter is an access list based on regular expressions. (See
for more information on forming regular expressions.) To use this method, define an autonomous system path
access list, and apply it to updates to and from particular neighbors.
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
router bgp
autonomous-system
Enable a BGP routing process, assign it an AS number, and
enter router configuration mode.
3.
neighbor
{
ip-address
|
peer-group
name
}
distribute-list
{
access-list-number
|
name
} {
in
|
out
}
(Optional) Filter BGP routing updates to or from neighbors
as specified in an access list.
Note:
You can also use the
neighbor prefix-list
router
configuration command to filter updates, but you cannot
use both commands to configure the same BGP peer.
4.
neighbor
{
ip-address
|
peer-group
name
}
route-map
map-tag
{
in
|
out
}
(Optional) Apply a route map to filter an incoming or
outgoing route.
5.
end
Return to privileged EXEC mode.
6.
show ip bgp neighbors
Verify the configuration.
7.
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...