Jump to content

BGP: Difference between revisions

Line 222:
*Configuration
;R1 Config:
 
<pre>
ip bgp-community new-format
 
route-map SETCOM
set community 1:10
 
router bgp 12
neighbor 192.168.12.2 remote-as 12
neighbor 192.168.12.2 send-community
'''network 150.1.1.0 mask 255.255.255.0 route-map SETCOM'''
 
;R2 Config(Before applying any policies):
network 150.1.1.0 mask 255.255.255.0 route-map SETCOM
</pre>
 
R2# shshow ip bgp 150.1.1.0
;R2 Config(Before applying any policies):
BGP routing table entry for 150.1.1.0/24, version 2
<pre>
Paths: (1 available, best #1, table Default-IP-Routing-Table)
R2# sh ip bgp 150.1.1.0
Flag: 0x820
BGP routing table entry for 150.1.1.0/24, version 2
Not advertised to any peer
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820Local
192.168.12.1 from 192.168.12.1 (192.168.127.1)
Not advertised to any peer
Origin IGP, '''metric 0''', localpref 100, valid, internal, best
Local
'''Community: 1:10'''
192.168.12.1 from 192.168.12.1 (192.168.127.1)
Origin IGP, '''metric 0''', localpref 100, valid, internal, best
'''Community: 1:10'''
 
;R2 Config: Match the community using a standard community-list
 
;Match the community using a standard community-list
ip community-list 1 permit 1:10
route-map COM
match community 1
set metric 100
 
router bgp 12
nei neighbor 192.168.12.1 route-map COM in
 
;R2 Config: After applying the policy:
 
R2 #sh ip bgp 150.1.1.0/24
BGP routing table entry for 150.1.1.0/24, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x800
Not advertised to any peer
Local
192.168.12.1 from 192.168.12.1 (192.168.127.1)
Origin IGP, '''metric 100''', localpref 100, valid, internal, best
'''Community: 1:10'''
 
= Route Aggregation =
Cookies help us deliver our services. By using our services, you agree to our use of cookies.