! R2 show commands to see routes from/to R14 show ip bgp neighbors 10.40.15.17 routes show bgp ipv4 unicast neighbors 10.40.15.17 routes show bgp ipv4 unicast neighbors 10.40.15.17 advertised-routes ! R2 show commands to see routes from/to R4 show ip bgp neighbors 10.10.15.10 routes show bgp ipv4 unicast neighbors 10.10.15.10 routes show bgp ipv4 unicast neighbors 10.10.15.10 advertised-routes ! Apply AS-Path ACL on R2 ip as-path access-list 2 permit ^$ ip as-path access-list 3 permit ^40$ ip as-path access-list 4 permit ^20$ router bgp 10 ! R4 neighbor 10.10.15.10 remote-as 20 neighbor 10.10.15.10 filter-list 2 out neighbor 10.10.15.10 filter-list 4 in ! R14 neighbor 10.40.15.17 remote-as 40 neighbor 10.40.15.17 filter-list 2 out neighbor 10.40.15.17 filter-list 3 in