04-22-2012 07:56 PM - edited 03-04-2019 04:07 PM
Hi expert
I have configured send community statement in my bgp router like:
router bgp nnnnn
.....
neighbor 111.111.111.111 send-community both
neighbor 111.111.111.111 route-map out-to-isp out
.....
route-map out-to-isp permit 10
match ip address 222.222.222.222
set community xxxx:80
when I check sh ip bgp ipv4 unicast 111.111.111.111 and it said:
community: no-export
can I get advice? how can I check if I have succesful send commutiy string out?
many regards
julxu
Solved! Go to Solution.
04-22-2012 08:00 PM
Hello,
first of all be clear that in route-map match ip address statement matching by the ACL name and not the ip address itself. So in your case
match ip address 222.222.222.222
means match ACL with name 222.222.222.222 and you need to have one matching your traffic.
Next to check if community is send and received check "show ip bgp nei 111.111.111.111 advertise" and surely check "show ip bgp " for routes for which you have changed the community.
Nik
04-22-2012 08:34 PM
On the neighbor you can do:
sh ip bgp A.B.C.D - where A.B.C.D is the route for which community should be set. Or you can do "sh ip bgp community xxx:80" - it will show which routes are set with this community - also on remote neighbor.
On the current router - you can check the advertised routes with the command I gave above.
Nik
04-22-2012 08:52 PM
It means that no community is attached - check if your access-list 222.222.222.222 matching a correct route.
Nik
04-22-2012 10:10 PM
For the bgp route that shows metric 44... is it a redistributed route from OSPF to BGP?
04-22-2012 08:00 PM
Hello,
first of all be clear that in route-map match ip address statement matching by the ACL name and not the ip address itself. So in your case
match ip address 222.222.222.222
means match ACL with name 222.222.222.222 and you need to have one matching your traffic.
Next to check if community is send and received check "show ip bgp nei 111.111.111.111 advertise" and surely check "show ip bgp " for routes for which you have changed the community.
Nik
04-22-2012 08:11 PM
Nik
thanks for the reply
I can see the route, but, I still do not sure what communite it used. how can I check if the community is 80 which I have sent?
Many Regards
julxu
04-22-2012 08:34 PM
On the neighbor you can do:
sh ip bgp A.B.C.D - where A.B.C.D is the route for which community should be set. Or you can do "sh ip bgp community xxx:80" - it will show which routes are set with this community - also on remote neighbor.
On the current router - you can check the advertised routes with the command I gave above.
Nik
04-22-2012 08:43 PM
show ip bgp community give no any information, and
#sh ip bgp community xxxx:80
#
sh ip bgp a.b.c.d and do not give community string.
04-22-2012 08:52 PM
It means that no community is attached - check if your access-list 222.222.222.222 matching a correct route.
Nik
04-22-2012 09:38 PM
yes, it is:
the route-map out-to-isp permit 10
match ip address prefix-list test
set community xxxx:80
ip prefix-list test seq 5 333.333.333.0/24
ip prefix-list test seq 10 444.444.444.0/24
and actually, I can get the routes, that means routes part is working, only stringy thing is the community do not send out?
and one more strangy thing is there is metric 44 I can see.
when I do sh ip bgp xxx.xxx.xxx.xxx ( ISP site) it says: metric 44, but I have not set metric 44 myself.
04-22-2012 10:10 PM
For the bgp route that shows metric 44... is it a redistributed route from OSPF to BGP?
04-23-2012 02:42 PM
ok, there is no problem now. the meric 44, yes, it is OSPF to BGP, the community I can not see, but, ISP side can see.
just I do not know how to check on my machine to confirm. I did send correnct community string.
Thanks for all the comments.
04-23-2012 03:19 PM
You can't verify the community from the router implementing the community as the information is injected into the prefix as it leaves the router. Same concept when using AS_PATH prepend, you can't verify the additional AS_PATH information from the router itself.
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: