I'm curious about best practices regarding the usage of route-maps or prefix-list in the bgp config.
Some examples i've seen apply a prefix-list directly to a neighbor, others use a route-map.
I can't tell if there is a benefit one way or another.
prefix-list applied to neighbor:
prefix-list applied to route-map applied to neighbor:
router bgp 100
neighbor 188.8.131.52 remote-as 200
neighbor 184.108.40.206 route-map set-as-path out
route-map set-as-path 10 permit
match address 1
set as-path prepend 100 100
route-map set-as-path 20 permit
match address 2
access-list 1 permit 220.127.116.11 0.0.255.255
access-list 1 permit 18.104.22.168 0.0.255.255
access-list 2 permit 0.0.0.0 255.255.255.255