08-28-2012 05:50 AM - edited 03-04-2019 05:23 PM
Hi,
I was trying the following scenario in my GNS simulator. I could not see bgp community attribute taking effect. Please let me know what is going wrong here.
|R7|------|R5|
R7:
==
router bgp 200
no synchronization
bgp log-neighbor-changes
network 70.1.1.0 mask 255.255.255.0
network 70.1.2.0 mask 255.255.255.0
aggregate-address 70.1.0.0 255.255.252.0
neighbor 5.5.5.5 remote-as 100
neighbor 5.5.5.5 ebgp-multihop 2
neighbor 5.5.5.5 update-source Loopback0
neighbor 5.5.5.5 next-hop-self
neighbor 5.5.5.5 route-map lab_3 out
auto-summary
R7#show route-map lab_3
route-map lab_3, permit, sequence 10
Match clauses:
ip address (access-lists): 106
Set clauses:
community no-export
Policy routing matches: 0 packets, 0 bytes
route-map lab_3, permit, sequence 20
Match clauses:
Set clauses:
community none
Policy routing matches: 0 packets, 0 bytes
R7#
R7#
R7#show ip access
R7#show ip access-lists 106
Extended IP access list 106
10 permit ip 70.1.0.0 0.0.3.255 any (3 matches)
R7#
R5:
==
router bgp 100
no synchronization
bgp log-neighbor-changes
network 40.1.1.0
network 40.1.1.0 mask 255.255.255.0
network 100.0.0.0
network 112.1.1.0
network 112.1.1.0 mask 255.255.255.0
neighbor 7.7.7.7 remote-as 200
neighbor 7.7.7.7 ebgp-multihop 2
neighbor 7.7.7.7 update-source Loopback0
neighbor 20.1.1.1 remote-as 100
neighbor 30.1.1.1 remote-as 100
neighbor 30.1.1.1 next-hop-self
auto-summary
R5#show ip bgp
BGP table version is 395, local router ID is 40.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i20.1.1.0/24 30.1.1.1 0 100 0 i
r>i30.1.1.0/24 30.1.1.1 0 100 0 i
*> 40.1.1.0/24 0.0.0.0 0 32768 i
*> 70.1.0.0/22 7.7.7.7 0 0 200 i
*> 70.1.1.0/24 7.7.7.7 0 0 200 i
*> 70.1.2.0/24 7.7.7.7 0 0 200 i
*> 100.0.0.0 40.1.1.2 0 32768 i
*> 112.1.1.0/24 0.0.0.0 0 32768 i
R5#
R5#
R5#show ip bgp community
R5#
As shown above, I am not seeing community attribute on R5 even when I configured route-map on R7. Could you please let me know your thoughts on this.
08-28-2012 06:11 AM
Hi,
by default the router doesn't send the community attribute, you must issue neighbor x.x.x.x send-community command.
Regards.
Alain
Don't forget to rate helpful posts.
08-28-2012 09:33 AM
Thats great. That solved the issue. Thanks a lot.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: