Concept Guide
Example conguration for ltering BGP routes using AS-PATH information
Following is the sample conguration for ltering BGP routes using AS-PATH information
DellEMC# configure terminal
DellEMC(conf)# ip as-path access-list 100 deny ^500$
DellEMC(conf)# ip as-path access-list 100 permit .*
DellEMC(conf)# router bgp 400
DellEMC(conf_router_bgp)# neighbor 10.10.10.1 remote-as 450
DellEMC(conf_router_bgp_af)# address-family ipv4 multicast
DellEMC(conf_router_bgp_af)# neighbor 10.10.10.2 filter-list 100 out
DellEMC(conf_router_bgp_af)# exit
In the above example, a BGP access list (100) is dened to deny any AS-path that starts and ends with 500 and permit all other routes.
The access list is applied for outgoing BGP routes for the neighbor (10.10.10.2) and the routes are ltered or distributed based on the
congured rules set in the access list.
To view which commands are congured, use the show config command in CONFIGURATION ROUTER BGP mode and the show ip
as-path-access-list command in EXEC Privilege mode.
To forward all routes not meeting the AS-PATH ACL criteria, include the permit .* lter in your AS-PATH ACL.
Conguring Peer Groups
To congure a peer group, use the following commands.
1 Enter the router conguration mode and the AS number.
CONFIG mode
router bgp as-number
2 Create a peer group by assigning a name to it.
CONFIG-ROUTER-BGP mode
neighbor peer-group-name peer-group
3 Enable the peer group.
CONFIG-ROUTER-BGP mode
neighbor peer-group-name no shutdown
By default, all peer groups are disabled.
4 Create a BGP neighbor.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address} remote-as as-number
5 Enable the neighbor.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address} no shutdown
NOTE
: You can use neighbor shutdown command to disable a BGP neighbor or a peer group.
6 Add an enabled neighbor to the peer group.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address | peer-group-name} peer-group peer-group-name
7 Add a neighbor as a remote AS.
CONFIG-ROUTER-BGP mode
212
Border Gateway Protocol (BGP)










