cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
138
Views
0
Helpful
1
Replies

IOS-XE BGP community

Forward
Level 1
Level 1
! Standard community-list to control incoming routes
ip community-list standard MATCH_COMMUNITY permit 65000:100 12 12
ip community-list standard MATCH_COMMUNITY deny 65000:200
ip community-list standard MATCH_COMMUNITY permit 65000:200
ip community-list standard MATCH_COMMUNITY permit 13

! Expanded community-list to control incoming routes
ip community-list expanded MATCH_COMMUNITY_1 permit ^65000:[0-9]+$

! Import policy
route-map IMPORT_POLICY permit 10
match community MATCH_COMMUNITY
exit

route-map IMPORT_POLICY permit 20
match community MATCH_COMMUNITY_1
exit

router bgp 65001
neighbor 192.168.10.1 remote-as 65000
neighbor 192.168.10.1 soft-reconfiguration inbound

! Apply route-map for inbound direction
neighbor 192.168.10.1 route-map IMPORT_POLICY in

What will be logical operation between community MATCH_COMMUNITY and community MATCH_COMMUNITY_1  is it OR / AND?
because on this device I have received the route 12.12.12.0/24(65000:300 65000:200) , its should have been added to the routing table but this route is dropped , so Is switch is not evaluating MATCH_COMMUNITY_1 ?

@Peter Paluch
can you advise

1 Reply 1

AND & OR is effect only match in one route-map line (permit or deny)

You need list allow 

65000:300 65000:200

As I see ypu have only 65000:200

MHM

Review Cisco Networking for a $25 gift card