How2pass.com Forums

Full Version: AR359
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Only Allow Networks that Originate from AS 4 to Enter Router 1


Placing 'ip as-path access-list 1 permit ^111$ on ISP-1 only allows ISP-1 to receive routers from AS111.  


See example from 
https://www.cisco.com/c/en/us/support/do...1227473857


If you would like for Router 1 to receive only the routes originated from AS 4 (and no Internet routes), you can apply an inbound access list on Router 1:
Quote:ip as-path access-list 1 permit ^4$
router bgp 1
neighbor 10.4.4.4 remote-as 4
neighbor 10.4.4.4 route-map foo in
route-map foo permit 10
match as-path 1
This ensures only networks originated from AS 4 are allowed into Router 1.
Please refer to the explanation of the question. Thank you!