Outgoing filter for peer 3
set policy prefix-list AS44901-OUT rule 10 action permit
set policy prefix-list AS44901-OUT rule 10 prefix 85.118.94.0/24
set policy prefix-list AS44901-OUT rule 20 action permit
set policy prefix-list AS44901-OUT rule 20 prefix 85.118.95.0/24
set policy prefix-list AS44901-OUT rule 30 action permit
set policy prefix-list AS44901-OUT rule 30 prefix 88.203.248.0/22
set policy prefix-list AS44901-OUT rule 40 action permit
set policy prefix-list AS44901-OUT rule 40 prefix 93.155.130.0/24
set policy prefix-list AS44901-OUT rule 50 action permit
set policy prefix-list AS44901-OUT rule 50 prefix 93.155.131.0/24
set policy prefix-list AS44901-OUT rule 60 action permit
set policy prefix-list AS44901-OUT rule 60 prefix 93.155.162.0/24
set policy prefix-list AS44901-OUT rule 70 action permit
set policy prefix-list AS44901-OUT rule 70 prefix 93.155.169.0/24
set policy prefix-list AS44901-OUT rule 10000 action deny
set policy prefix-list AS44901-OUT rule 10000 le 32
set policy prefix-list AS44901-OUT rule 10000 prefix 0.0.0.0/0
set protocols bgp 47453 neighbor 93.155.130.18 prefix-list export AS44901-OUT
commit
save
Refresh BGP daemon
run clear ip bgp all soft
Test filter
admin@edgerouter# run show ip bgp neighbors 93.155.130.18 advertised-routes
BGP table version is 22554, local router ID is 93.155.130.38
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 85.118.94.0/24 93.155.130.17 200 0 209362 i
*> 85.118.95.0/24 93.155.130.17 200 0 209362 i
*> 88.203.248.0/22 93.155.130.17 200 0 209362 i
*> 93.155.130.0/24 93.155.130.17 200 0 209362 i
*> 93.155.131.0/24 93.155.130.17 200 0 209362 i
*> 93.155.162.0/24 93.155.130.17 200 0 209362 i
*> 93.155.169.0/24 93.155.130.17 200 0 209362 i
Total number of prefixes 7
set ip-next-hop peer
set policy route-map AS44901-IN rule 10 action permit
set policy route-map AS44901-IN rule 10 set ip-next-hop 93.155.130.18
set protocols bgp 47453 neighbor 93.155.130.18 route-map import AS44901-IN
commit ; save ; run clear ip bgp all soft
set prepend AS 209362
set policy route-map AS44901-OUT rule 10 action permit
set policy route-map AS44901-OUT rule 10 set as-path-prepend 209362
set protocols bgp 47453 neighbor 93.155.130.18 route-map export AS44901-OUT
commit ; save ; run clear ip bgp all soft
set local-preference
set policy route-map AS47453-IN rule 10 action permit
set policy route-map AS47453-IN rule 10 set local-preference 200
set protocols bgp 47453 neighbor 93.155.130.89 route-map import AS47453-IN
commit ; save ; run clear ip bgp all soft