CCIE_Nuggets - BGP : Change the Attributes of the Aggregate Route

CCIE_Nuggets - BGP : Change the Attributes of the Aggregate Route

The as-set saves the AS_PATH attributes with a specific route when using the aggregate command.

The attribute-map makes it possible manipulate the aggregate-address attributes : metric, community, and origin.

SENDING COMMUNITIES WITH AN ATTRIBUTE-MAP ON AN AGGREGATE ROUTE

R_10#sh run | s router
router bgp 65001
bgp router-id 100.10.10.10
bgp log-neighbor-changes
bgp confederation identifier 1000
bgp confederation peers 65002 65003
network 100.10.10.10 mask 255.255.255.255
aggregate-address 100.0.0.0 255.0.0.0 as-set summary-only attribute-map ATTRIBUTE
redistribute connected
neighbor 6.10.1.1 remote-as 400
neighbor 6.10.1.1 send-community
neighbor 7.10.1.1 remote-as 400
neighbor 7.10.1.1 send-community

R_10#sh route-map
route-map ATTRIBUTE, permit, sequence 10
Match clauses:
Set clauses:
community 1010

Policy routing matches: 0 packets, 0 bytes
route-map ATTRIBUTE, permit, sequence 20
Match clauses:
Set clauses:
Policy routing matches: 0 packets, 0 bytes

R_6#sh ip bgp 100.0.0.0
BGP routing table entry for 100.0.0.0/8, version 387
Paths: (2 available, best #2, table default)
Advertised to update-groups:
1 2
Refresh Epoch 1
1000 {3000,2000}, (aggregated by 1000 100.10.10.10)
7.10.1.2 from 6.7.1.2 (7.7.7.7)
Origin IGP, metric 0, localpref 100, valid, internal
rx pathid: 0, tx pathid: 0
Refresh Epoch 1
1000 {3000,2000}, (aggregated by 1000 100.10.10.10)
6.10.1.2 from 6.10.1.2 (100.10.10.10)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 1010
rx pathid: 0, tx pathid: 0x0

R_7#sh ip bgp 100.0.0.0
BGP routing table entry for 100.0.0.0/8, version 372
Paths: (2 available, best #2, table default)
Advertised to update-groups:
1 2
Refresh Epoch 1
1000 {3000,2000}, (aggregated by 1000 100.10.10.10)
6.10.1.2 from 6.7.1.1 (6.6.6.6)
Origin IGP, metric 0, localpref 100, valid, internal
rx pathid: 0, tx pathid: 0
Refresh Epoch 1
1000 {3000,2000}, (aggregated by 1000 100.10.10.10)
7.10.1.2 from 7.10.1.2 (100.10.10.10)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 1010
rx pathid: 0, tx pathid: 0x0

Leave a reply

Your email address will not be published. Required fields are marked *