Hi,
I am trying to advertise IP prefixes receiving from a BGP announcement to another BGP peer through community matching. But it's not happening in my case and it actually sends all prefixes that I receive from BGP peers. For testing, I have added another rule which matches all traffic and denies and it works perfectly and no prefixes are announced at that time. It means no policy statement is not matching and it passes all prefixes to its peer.
Sample Output and Configuration are given below:
RECEIVING FROM PEER
run show route 43.xxx.xxx.0/22 detail
inet.0: 470 destinations, 532 routes (470 active, 0 holddown, 0 hidden)
43.xxx.xxx.0/22 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect, Next hop index: 0
Address: 0x82e4abc
Next-hop reference count: 578
Source: 192.168.199.25
Next hop type: Router, Next hop index: 7035
Next hop: 192.168.199.25 via ae25.0, selected
Session Id: 0x2f
Protocol next hop: 192.168.199.25
Indirect next hop: 0x52e6a08 7039 INH Session ID: 0x33
State: <Active Int Ext>
Local AS: 2xxx Peer AS: 2xxx
Age: 1:26:26 Metric: 0 Metric2: 0
Validation State: unverified
Task: BGP_2xxx.192.168.199.25
Announcement bits (3): 0-KRT 2-BGP_RT_Background 3-Resolve tree 3
AS path: I
Communities: 2xxx:90Accepted
Localpref: 100
Router ID: 192.168.1.253
10.250.250.224/30 (2 entries, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect, Next hop index: 0
Address: 0x82e3d9c
Next-hop reference count: 123
Source: 192.168.199.21
Next hop type: Router, Next hop index: 7033
Next hop: 192.168.199.21 via ae18.0, selected
Session Id: 0x19
Protocol next hop: 192.168.199.98
Indirect next hop: 0x52e6808 7034 INH Session ID: 0x2e
State: <Active Int Ext>
Local AS: 2xxx Peer AS: 2xxx
Age: 1:28:09 Metric: 0 Metric2: 0
Validation State: unverified
Task: BGP_2xxx.192.168.199.21
Announcement bits (3): 0-KRT 2-BGP_RT_Background 3-Resolve tree 3
AS path: I (Originator)
Cluster list: xxxxxx
Originator ID: xxxxx
Communities: 2xxx:1000Accepted
Localpref: 100
Router ID: 12x.xxx.xxx.xxx
SENDEING TO PEER
run show route advertising-protocol bgp 202.xxx.xxx.110
inet.0: 470 destinations, 532 routes (470 active, 0 holddown, 0 hidden)
Prefix Nexthop MED Lclpref AS path
* 0.0.0.0/0 Self I
* 10.250.250.224/30 Self I
* 43.xxx.xxx.0/22 Self I
COMMUNITY TAGGING and POLICY CONFIGURATION
community AGG-1_COOMUNITY members [ 2xxx:50 2xxx:60 2xxx:70 ];
community AGG-2_COMMUNITY members [ 2xxx:80 2xxx:85 2xxx:90 ];
policy-statement FOR_NETFLIX_ONLY {
term AGGE-1_ANNOUCE_PERFIX {
from community AGG-1_COOMUNITY;
then accept;
}
term AGGE-2_ANNOUCE_PERFIX {
from community AGG-2_COMMUNITY;
then accept;
Thanks.
Ankan
------------------------------
ANKAN BHOWMIK
------------------------------