How2pass.com Forums
AR359 - Printable Version

+- How2pass.com Forums (https://www.how2pass.com/forum)
+-- Forum: CCNP (https://www.how2pass.com/forum/forum-6.html)
+--- Forum: CCNP ENARSI 300-410 Forum (https://www.how2pass.com/forum/forum-15.html)
+--- Thread: AR359 (/thread-2263.html)



AR359 - pc_evans - 02-18-2024

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/docs/ip/border-gateway-protocol-bgp/13754-26.html#toc-hId-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.


RE: AR359 - help_desk - 02-22-2024

Please refer to the explanation of the question. Thank you!