Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

BGP AS Filtering

Here is the scenario .

R2 and R6 are in the same AS 1 . Backbone 2 in the AS254.

AS254 -------- R2 -------R6---------AS 254

Configure R2 such that only AS paths originating from AS 258 are permitted from backbone 2.

Use a filter for this task.

? Configure R2 such that only AS paths originating from AS 255 are permitted from R6. Use a route

map.

? Use separate lists for the two tasks above.

3 REPLIES

Re: BGP AS Filtering

You can use something like this

ip as-path access-list 1 permit ^258$

ip as-path access-list 2 permit ^255$

route-map test permit 10

match as-path 2

router bgp

neighbor filter-list 1 in

neighbor route-map test in

HTH, rate if it does

Narayan

New Member

Re: BGP AS Filtering

Thanks..

I did this config. But when i put show command Show ip bgp | include 255

It is showing nexhop ip as Bacbone IP ,but it should show R6 ip as the nexthop.

any additonal conf required ??

Re: BGP AS Filtering

issue the following command

Neighbor next-hop-self command on R6

By default BGP peer does not alter the next hop attribute when it send an update to another IBGP peer

HTH, rate if it does

Narayan

165
Views
3
Helpful
3
Replies
CreatePlease to create content