Tenemos la tabala BGP :
router bgp 6147
address-family ipv4 vrf ABABAB
redistribute connected metric 200
neighbor ABABAB peer-group
neighbor ABABAB remote-as 65509
neighbor ABABAB description goup eBGP VRF ABABAB
neighbor ABABAB activate
neighbor ABABAB next-hop-self
neighbor ABABAB remove-private-as
neighbor ABABAB as-override
neighbor ABABAB soft-reconfiguration inbound
neighbor ABABAB route-map set_CUSTOMER_LP in
....
no synchronization
table-map MIPO
exit-address-family
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
route-map set_CUSTOMER_LP permit 10
match community 7
set local-preference 70
set community 6147:6000 additive
!
route-map set_CUSTOMER_LP permit 20
match community 8
set local-preference 80
set community 6147:6000 additive
!
route-map set_CUSTOMER_LP permit 30
match community 9
set local-preference 90
set community 6147:6000 additive
!
route-map set_CUSTOMER_LP permit 40
set local-preference 100
set community 6147:6000 additive
!
route-map set_CUSTOMER_LP permit 50
set local-preference 110
set community 6147:6000 additive
xxxxxxxxxxxxxxxxxxxxxxx
route-map MIPO permit 10
match community 60
set ip qos-group 60
!
route-map MIPO permit 20
match community 96
set ip qos-group 96
ip community-list 60 permit 6147:6000
ip community-list 96 deny 6147:6000
ip community-list 96 permit
xxxxxxxxxxxxxxxxxxxxxxxxx
Si la ruta se aprende en Lima se asigna un community 6147:6000
con el comando table-map MIPO seteamos qos-group a 60.
en los accesos tenemos :
rate-limit input qos-group 96 16000 1500 2048 conform-action drop exceed-action drop
con lo que se limita el trafico fuera de Lima.
xxxxxxxxxxxxxxxxxxxxxxxxxxxx