cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
507
Views
0
Helpful
2
Replies

BGP If Exist Conditional Advertisement Issue

ahmad82pkn
Level 3
Level 3

Hi, i need to advertise 172.20.224.0/22 to EBGP neighbor if i receive all of the following

172.20.224.0/24

172.20.225.0/24

172.20.226.0/24

172.20.227.0/24

But Problem is even if one is received  in IF EXIST, Advertise MAP will advertise /22 .

i want it to advertise only if all 4 Routes are present.

How can i achieve this AND condition?

METHOD 1 Failed.

rotuer bgp 65333

neighbor 192.168.12.1 advertise-map ADVERTSIE-ROUTE exist-map IF-RECEIVED

route-map IF-RECEIVED, permit, sequence 10
  Match clauses:
    ip address prefix-lists: IF-RECEIVED

ip prefix-list IF-RECEIVED seq 5 permit 172.20.224.0/24
ip prefix-list IF-RECEIVED seq 10 permit 172.20.225.0/24

ip prefix-list IF-RECEIVED seq 15 permit 172.20.226.0/24
ip prefix-list IF-RECEIVED seq 20 permit 172.20.227.0/24

MRTHOD 2 Failed.

Alternately i tried to adveritse on basis on AS Number, all of above routes are learnt from AS number 65444 , but in this case nothing gets advertised at all to neighbor.

route-map IF-AS-REC, permit, sequence 10
  Match clauses:
    as-path (as-path filter): 209

ip as-path access-list 209 permit ^65444

neighbor 192.168.12.1 advertise-map ADVERTSIE-ROUTE exist-map IF-AS-REC

2 Replies 2

Bilal Nawaz
VIP Alumni
VIP Alumni

Edit: sorry ignore me, i didnt read fully.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

For Now i have done Jugaarh ( Work around ) But i wish i could have achieved same results with IF Exist.

track 100 list boolean or
 object 224
 object 225
 object 226
 object 227
!
track 224 ip sla 224
!
track 225 ip sla 225
!
track 226 ip sla 226
!
track 227 ip sla 227

ip sla 224
 icmp-echo 172.20.224.1 source-ip 192.168.10.99
ip sla schedule 224 life forever start-time now
ip sla 225
 icmp-echo 172.20.225.1 source-ip 192.168.10.99
ip sla schedule 225 life forever start-time now
ip sla 226
 icmp-echo 172.20.226.1 source-ip 192.168.10.99
ip sla schedule 226 life forever start-time now
ip sla 227
 icmp-echo 172.20.227.1 source-ip 192.168.10.99
ip sla schedule 227 life forever start-time now

Rotuer bgp xyx

network 172.20.224.0 mask 255.255.252.0

ip route 172.20.224.0 255.255.252.0 192.168.10.100 track 100

Review Cisco Networking for a $25 gift card