cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
562
Views
3
Helpful
3
Replies

BGP AS Filtering

jerome.lopez
Level 1
Level 1

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 3

royalblues
Level 10
Level 10

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

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 ??

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