Ads 468x60px

Monday, October 11, 2010

Understanding BGP Communities

In this post I will discuss about BGP communities. In many ISP communities are used extensively for filtering routes and to change the attributes of prefixes. Let’s see what BGP communities are and why it is so important.
BGP Communities: It’s a mechanism to tag (color) routes. We can use a range of numbers to do this and there are some predefined communities. By using communities we can also achieve the return path selection for Multihomed Networks and many other changes in attached attributes.For doing this we need coordination with ISP and understanding of BGP Communities.
BGP Communities are optional transitive attribute; it is represented in 32 bit numerical values which are used to tag a route and ensure the filtering or policies to change the attributes as per requirement (using route-map). The route tagging can be done at the time of incoming update, outgoing update and while performing redistribution.

*By Default, Communities are stripped off in outgoing updates

To advertise the community associated with prefix to EBGP peer, need to configure “neighbor ip-address send community “for particular neighbor.

Using BGP communities, Any BGP router can do filtering and apply policies very easily. It can process the routes with appropriate tags as per requirement. Ex- Community 100:10 associated routes will be treated with local preference 50 by using route-map. It is possible to use multiple communities to tag a single prefix.

Here are some well known communities:
No-export       – do not advertise routes to real EBGP peers.
No-advertise   – do not advertise routes to any peer.
Local-as          – do not advertise routes to any EBGP peers.
Internet          - advertises the routes to Internet (any peer).

Other Defined Communities: As discussed communities are 32 bit value, it is divided in two parts.
Higher order and lower order, Higher order 16 bits is the AS number.
Lower order 16 bits are locally significant number. The format is
[AS number]:[low order no.]  = 100:10

To implement communities we have to follow this process:
  • First need to identify traffic and policies for traffic.
  • Then we have to define a community and apply to particular prefixes by using route-maps.
  • Then configure neighbor ip address send community for particular neighbors.
  • As the routing update will received by other neighbors, that time router will look the associated community and on the basis of that policy will be applied.

 Processing of Communities
  •  Prefixes are tagged with route-map with defined community values.
  •  Prefixes are advertised with communities to neighbors.
  •  As neighboring router will see the route associated with community, it will apply policies as per configurations. Ex: Community 100:10 will say that the local preference of route should be lowered to 50 as per configured policy.
 Configuration Steps of BGP communities:
  • Configure communities and tag the prefixes using route-map.
  • Configure BGP community advertisement to particular neighbors. Since communities will be not advertised to all neighbors with updates
  •  Configure BGP community access-lists to match BGP communities on receiving routers.
  • Configure route-maps and define policies for particular receiving communities as per requirement.
  • Apply the route-map to incoming or outgoing updates.


Router(config)#route-map test
Match condition
Set community value (100:10)

Router(config-router)#neighbor ip -address route-map test (in/out)
                                                neighbor ip-address send community
                                                Redistribute ospf route-map test

Router(config)#Route-map test
Set community 10:100
Router(config-router)# Neighbor 10.1.1.2 remote-as 100
Neighbor 10.1.1.2 route-map test out
Neighbor 10.1.1.2 send community


Community receiving router:
Router(config)# ip community-list 10 permit 100:10
Route(config)# route-map localpref permit 10
                                Match community 10
                                Set local-preference 50
                                Route-map localpref permit 20
Router(config)#router bgp 100
                                Neighbor 10.1.1.1 remote –as 200
                                Neighbor 10.1.1.1 route-map localpref in

Show commands for monitoring  Communities:
Show ip bgp prefix
Show ip bgp community – display all community associated routes
Show ip bgp community as:nn – display the particular prefixes with that community.
Show ip bgp community-list – display community list.

Hope this post will help you to understand BGP communities.


9 comments:

xumeiqing said...

151215meiqing
michael kors outlet
oakley sunglasses
tiffany and co
ugg boots
lebron james shoes
canada goose outlet
the north face
louis vuitton bags
fake oakleys
ray-ban sunglasses
louis vuitton outlet
michael kors outlet
kevin durant shoes
louis vuitton handbags
canada goose
ugg slippers
north face jacket
michael kors outlet online
polo ralph lauren
coach outlet online
louboutin pas cher
coach outlet
abercrombie & fitch
louis vuitton outlet
lebron james shoes 2015
ralph lauren outlet
jordans
swarovski jewelry
canada goose jackets
michael kors
oakley sunglasses
michaek kors handbags
ugg boots
cheap soccer shoes
hollister clothing
louis vuitton
michael kors outlet
p90x workouts
ugg boots clearance
air max 95

Unknown said...

2016-1-8 leileicoach outlet online
michael kors handbags
jordan retro 4
nike air max 95
louis vuitton
louis vuitton purses
nike roshe run
ugg boots
micahel kors
ralph lauren
canada goose jackets
coach factory outlet online
north face outlet
michael kors outlet
sac longchamp
louis vuitton outlet
adidas superstars
louis vuitton outlet
hermes outlet
ugg boots
true religion
coach outlet online
michael kors outlet online
nike air max
louboutin shoes
fake oakleys
nike outlet store
ray ban sunglasses
louis vuitton outlet onlne
coach outlet online
air jordan shoes
tiffany jewelry
ray bans
fitflop sale
louis vuitton outlet
kate spade handbags
louis vuitton
air max 90
ray ban sunglasses
michael kors outlet
michael kors bags

Anonymous said...

true religion canada
michael kors outlet store
true religion jeans
herve leger outlet
nike blazer pas cher
cheap nba jerseys
snapbacks wholesale
true religion jeans
juicy couture outlet
coach outlet
lacoste shirts
fitflop sale
polo shirts
lebron james shoes
michael kors outlet
cheap jordan shoes
christian louboutin outlet
ralph lauren
michael kors handbags clearance
rolex watches
michael kors outlet online
swarovski outlet
cheap mlb jerseys
reebok trainers
pandora jewelry
michael kors outlet
ray ban sunglasses
cheap football shirts
michael kors factory outlet
michael kors handbags
nike roshe
beats by dre
ralph lauren,polo ralph lauren,ralph lauren outlet,ralph lauren italia,ralph lauren sito ufficiale
michael kors outlet clearance
swarovski crystal
20160331zhenhong

kh said...

شركة مكافحة حشرات بالدمام والقطيف وراس التنورة وبقيق انوار يطبية لتنظيف المنازل
وتنظيف الخزانات بالقطيف وتنظيف الشقق والبويت وتنظيف العمائر والفلل بالدمام والقطيف وراس التنورة وبقيق ومكافحة البق والنمل الابيض بالقطيف والدمام
شركة مكافحة الحشرات بالخبر
شركة مكافحة الحشرات بالقطيف
شركة مكافحة النمل الابيض بالدمام
شركة مكافحة البق بالدمام
شركات نظافة بالدمام
شركة تنظيف بالدمام
شركة مكافحة الصراصير والبق بالدمام
شركة مكافحة النمل الابيض بالقطيف
شركة مكافحة النمل الابيض بقيق
شركة تنظيف خزانات بالقطيف
شركة تنظيف ارضيات بالدمام
شركة تنظيف ارضيات بالقطيف
شركة تنظيف منازل بالقطيف
خدمات مكافحة حشرات بالمنطقة الشرقية
خدمات التنظيف بالمنطقة الشرقية

kh said...

شركة نقل عفش واثاث
شركة نقل عفش
اهم شركات كشف تسربات المياه بالدمام كذلك معرض اهم شركة مكافحة حشرات بالدمام والخبر والجبيل والخبر والاحساء والقطيف كذكل شركة تنظيف خزانات بجدة وتنظيف بجدة ومكافحة الحشرات بالخبر وكشف تسربات المياه بالجبيل والقطيف والخبر والدمام
شركة تنظيف خزانات بجدة
شركة مكافحة حشرات بالدمام
شركة كشف تسربات المياه بالدمام

اهم شركات نقل العفش والاثاث بالدمام والخبر والجبيل اولقطيف والاحساء والرياض وجدة ومكة المدينة المنورة والخرج والطائف وخميس مشيط وبجدة افضل شركة نقل عفش بجدة نعرضها مجموعة الفا لنقل العفش بمكة والخرج والقصيم والطائف وتبوك وخميس مشيط ونجران وجيزان وبريدة والمدينة المنورة وينبع افضل شركات نقل الاثاث بالجبيل والطائف وخميس مشيط وبريدة وعنيزو وابها ونجران المدينة وينبع تبوك والقصيم الخرج حفر الباطن والظهران
شركة نقل عفش بالرياض
شركة نقل عفش بالطائف
شركة نقل عفش بالدمام
شركة نقل عفش بجدة
شركة نقل عفش بمكة
شركة نقل عفش بالمدينة المنورة
شركة نقل عفش بينبع
شركة نقل عفش ببريدة

Unknown said...

chaussure louboutin pas cher
jordan shoes
louis vuitton sacs
ferragamo shoes
tiffany and co
los angeles lakers
san diego chargers jerseys
air max 90
eagles jerseys
michael kors handbags

flower dewa said...

Jual Obat Aborsi,, Obat Aborsi,,
Nice bag you can earn money from that
Thanks for your posting
Visit me @, Obat Aborsi,,
Obat Penggugur kandungan,

Unknown said...

Christmas has come and New Year is coming. One of the things I will do next year is to follow your new posts. It's because they provide what I need. Your articles are informative and great. Stay healthy and write more posts. Thanks
Short Ride games online || Kindergarten Dress Up games for girls || Moto X3M 2 best games for kids

Benson said...

adidas yeezy boost
golden goose outlet
zx flux
nike air max 95
birkin bag
kd 10
moncler jacket
nike sneakers for men
adidas tubular
jordan shoes

Post a Comment

Related Posts Plugin for WordPress, Blogger...