BGP Community 1998/7/3 JANOG#2 in KDD (yahagi@itjit.ad.jp) July 3, 1998 JANOG2: What is BGP Community? 1
BGP ( ) BGP4 community community community community July 3, 1998 JANOG2: What is BGP Community? 2
BGP4 -- AS AS July 3, 1998 JANOG2: What is BGP Community? 3
BGP4 ATTRIBUTE local-preference ibgp ( AS ) ebgp( AS) MED(Multi-Exit Descriminator) AS AS as-path (?!) AS attribute AS AS local-pref as-path MED July 3, 1998 JANOG2: What is BGP Community? 4
BGP4 -- AS AS MED local-preference as-path prepend as-path CISCO Oriented (RFC?! ) July 3, 1998 JANOG2: What is BGP Community? 5
BGP4 -- (cont.) as-path attribute AS MED AS BGP Community Attribute!! July 3, 1998 JANOG2: What is BGP Community? 6
Community RFC-1998 "An Application of the BGP Community Attribute in Multi-home Routing" BGP Speaker 32bit BGP Community Message IBGP/EBGP/ Speaker/ AS 0x00000000 x00000000 0x0000FFFF 0x0000FFFF 0x00010000 x00010000 0x0000FFFE 0x0000FFFE 0xFFFF xffff0000 0000 0xFFFFFFFF 0xFFFFFFFF July 3, 1998 JANOG2: What is BGP Community? 7
Community (Cont.) well-known community 0xFFFFFF xffffff01 no-export -- AS 0xFFFFFF xffffff02 no-advertise -- BGP Speaker CISCO CISCO local-as/internet 16bit 16bit AS AS. A:M A=AS M= M= ex: 4682:100, 3561:70 July 3, 1998 JANOG2: What is BGP Community? 8
Community Cisco route-map route-map announce local-preference as-path July 3, 1998 JANOG2: What is BGP Community? 9
-1 announce AS65100 Default AS65400 AS65200 AS65000 July 3, 1998 JANOG2: What is BGP Community? 10 AS65000 AS65300
-1 announce (1) AS65000 Config router bgp 65000 neighbor 172.16.0.1 remote-as 65100 neighbor 172.16.0.1 send-community neighbor 172.16.0.1 route-map COM-OUT out route-map COM-OUT permit 10 match ip address 1 set community no-export access-list 1 permit 172.16.1.0 0.0.0.255 July 3, 1998 JANOG2: What is BGP Community? 11
-1 announce (2) AS65200 AS65000 AS65100 AS65300 July 3, 1998 JANOG2: What is BGP Community? 12
-1 announce (2) Community (AS65000) Config router bgp 65000 neighbor 172.16.0.1 remote-as 65100 neighbor 172.16.0.1 send-community neighbor 172.16.0.1 route-map AS65000-OUT out route-map AS65000-OUT permit 10 match ip address 1 set community 65100:65300 access-list 1 permit 192.168.10.0 0.0.0.255 July 3, 1998 JANOG2: What is BGP Community? 13
-1 announce (2) Community (AS65100) Config router bgp 65100 neighbor 172.16.0.2 remote-as 65000 neighbor 172.16.1.2 remote-as 65200 neighbor 172.16.1.2 route-map AS65200-OUT out neighbor 172.16.2.2 remote-as 65300 neighbor 172.16.2.2 route-map AS65300-OUT out route-map AS65200-OUT deny 10 match community 1 route-map AS65300-OUT deny 10 match community 2 ip community-list 1 permit 65100:65200 ip community-list 2 permit 65100:65300 July 3, 1998 JANOG2: What is BGP Community? 14
-2 local-preference AS65000 AS65100 AS65200 July 3, 1998 JANOG2: What is BGP Community? 15
-2 local-preference Community (AS65100) Config router bgp 65100 neighbor 172.16.0.2 remote-as 65000 neighbor 172.16.1.2 remote-as 65200 neighbor 172.16.1.2 route-map COM-IN in neighbor 172.16.2.2 remote-as 65300 neighbor 172.16.2.2 route-map COM-IN in route-map COM-IN permit 10 match community 1 set local-preference 90 route-map COM-IN permit 20 match community 2 set local-preference 110 ip community-list 1 permit 65100:90 ip community-list 2 permit 65100:110 July 3, 1998 JANOG2: What is BGP Community? 16
-3 as-path AS65000 AS65100 AS65200 AS65300 AS65400 July 3, 1998 JANOG2: What is BGP Community? 17
-3 as-path Community (AS65100) Config router bgp 65100 neighbor 172.16.0.2 remote-as 65000 neighbor 172.16.1.2 remote-as 65200 neighbor 172.16.1.2 route-map AS65200-OUT out neighbor 172.16.2.2 remote-as 65300 neighbor 172.16.2.2 route-map AS65300-OUT out route-map AS65200-OUT permit 10 match community 1 set as-path prepend 65100 route-map AS-65300-OUT permit 10 match community 2 set as-path prepend 65100 ip community-list 1 permit 65100:666 ip community-list 2 permit 65100:777 July 3, 1998 JANOG2: What is BGP Community? 18
Community (Read Me First ) Community BGP Speaker Community Cisco default neighbor x.x.x.x send-community (^^; July 3, 1998 JANOG2: What is BGP Community? 19
Community (CISCO ) community route-map continue route-map exact-match AS community extended community-list T_T; community route-map HOGE-IN permit 10 remove community hoge:geho geho BGP Community Internet Wide (1998/7/3 JANOG2 11.1.18CA :-P ) July 3, 1998 JANOG2: What is BGP Community? 20
- Community example : CISCO "Quality of Sewrvice Policy Propagation via Border Gateway Protocol http://www.cisco cisco.com/.com/univercd univercd/cc/td/doc/product/software/ /cc/td/doc/product/software/ios ios1 11/cc111/bgpprop bgpprop.htm BGP Community QoS Service Quority route-map set ip precedence priority set ip precedence immediate set ip precedence flash set ip precedence flash-override set ip precedence critical etc... July 3, 1998 JANOG2: What is BGP Community? 21
BGP local-preference/med/as-path prepend AS BGP Community BGP Community (^^; AS July 3, 1998 JANOG2: What is BGP Community? 22
July 3, 1998 JANOG2: What is BGP Community? 23
and See you, soon. ;^) Next Session -- "Do you need NetNews!?" July 3, 1998 JANOG2: What is BGP Community? 24