BGP: Difference between revisions

Content added Content deleted
Line 237: Line 237:
;R2 Config(Before applying any policies):
;R2 Config(Before applying any policies):
<pre>
<pre>
router bgp 12
R2# sh ip bgp 150.1.1.0
nei 192.168.12.1 remot 12


sh ip bgp 150.1.1.0
BGP routing table entry for 150.1.1.0/24, version 2
BGP routing table entry for 150.1.1.0/24, version 2
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Line 248: Line 244:
Local
Local
192.168.12.1 from 192.168.12.1 (192.168.127.1)
192.168.12.1 from 192.168.12.1 (192.168.127.1)
Origin IGP, metric 0, localpref 100, valid, internal, best ==> Metric is 0
Origin IGP, '''metric 0''', localpref 100, valid, internal, best
Community: 1:10 ==> Community is 1:10
'''Community: 1:10'''

</pre>


;Match the community using a standard community-list
;Match the community using a standard community-list
Line 263: Line 259:
;After applying the policy:
;After applying the policy:


sh ip bgp 150.1.1.0/24
R2 #sh ip bgp 150.1.1.0/24
BGP routing table entry for 150.1.1.0/24, version 3
BGP routing table entry for 150.1.1.0/24, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Line 270: Line 266:
Local
Local
192.168.12.1 from 192.168.12.1 (192.168.127.1)
192.168.12.1 from 192.168.12.1 (192.168.127.1)
Origin IGP, metric 100, localpref 100, valid, internal, best ==> Metric changed to 100
Origin IGP, '''metric 100''', localpref 100, valid, internal, best ==> Metric changed to 100
Community: 1:10
'''Community: 1:10'''


= Route Aggregation =
= Route Aggregation =