cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
209
Views
0
Helpful
1
Replies
jorg_b
Beginner

filter outbound BGP routes

Hello,

 

I'm receiving "internal" routes from one of our BGP peers on a dedicated bgp (neighbor) peer. Our provider who is sending us their internal routes is AS#1234. Our AS is 2345 (changed for a public post)

 neighbor xxx.xxx.xxx.82 remote-as 1234
 neighbor xxx.xxx.xxx.82 description Provider A, Internal routes
 neighbor xxx.xxx.xxx.82 ebgp-multihop 10
 neighbor xxx.xxx.xxx.82 soft-reconfiguration inbound
 neighbor xxx.xxx.xxx.82 filter-list 90 out

 neighbor xxx.xxx.xxx.1 remote-as 2345
 neighbor xxx.xxx.xxx.1 next-hop-self
 neighbor xxx.xxx.xxx.1 default-originate

 neighbor xxx.xxx.xxx.2 remote-as 2345
 neighbor xxx.xxx.xxx.2 next-hop-self
 neighbor xxx.xxx.xxx.2 default-originate

 

ip as-path access-list 90 deny 1234

ip as-path access-list 90 permit 2345

 

The idea here is to NOT advertise any outbound routes to AS#1234

However, I need the routes to be able be seen on any of my other routes within AS#2345

 

Right now, this is not working as expected. Again, all I need is to install the routes from AS#1234 to be installed in our router's routing table on all our internal (AS#2345) routers.

 

Any help would be appreciated.

 

Thanks

 

1 REPLY 1
rizwanr74
Rising star

Lets assume, that your BGP router's IP is: 1.1.1.2

 

ip access-list extended 100
 permit ip host xxx.xxx.xxx.82 host 1.1.1.2
 permit ip host 1.1.1.2 host xxx.xxx.xxx.82 
 deny ip any any

 

router bgp 100
  neighbor xxx.xxx.xxx.82 distribute-list 100 out

 

Let me know, if this helps.

 

thanks

Rizwan Rafeek