How filter prefix in bgp session cisco

Add access list

access-list 1 deny any

 

Define Route-map

route-map Name-Route-Map-Name

 

Add sequence to route map

route-map routemapname permit 10

 

Math Ip address To access list define

 

match ip address 1

 

number on name of access-list

 

Apply to bgp session

 

neighbor 172.30.2.2 route-map Name Of route map out

neighbor 172.30.2.2 route-map Name Of route map in