Esse artigo foi homologado no equipamento DM4360-4GT+4GX, na versão 6.0.0-268, o uso em uma versão diferente pode não resultar da mesma forma.
config
router bgp 65102
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1001
continue 1002
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1002 match-community _990:100$
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1003 match-community _990:101$
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1004 match-community _991:100$
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1005 match-community _991:101$
set-prepend-local-as 1
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1006 match-community _991:102$
set-prepend-local-as 2
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1007 match-community _991:103$
set-prepend-local-as 3
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 1100
continue 2001
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 2001 match-ip nlri prefix-list SMART-LAYER-99.45.0.0/22
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 2002 match-ip nlri prefix-list SMART-LAYER-99.45.0.0/23
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 2003 match-ip nlri prefix-list SMART-LAYER-99.45.2.0/23
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 2004 match-ip nlri prefix-list SMART-LAYER-99.45.0.0/24
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 2005 match-ip nlri prefix-list SMART-LAYER-99.45.1.0/24
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 2006 match-ip nlri prefix-list SMART-LAYER-99.45.2.0/24
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 2007 match-ip nlri prefix-list SMART-LAYER-99.45.3.0/24
exit
route-map 1-UPSTREAM-PEER1-V4-EXPORT 99999 action deny
commit
top
!
config
router bgp 65102
route-policy 1-UPSTREAM-PEER1-V4 export-route-map 1-UPSTREAM-PEER1-V4-EXPORT
commit
top
!
| Local Pref |
Tipo do peer |
| 1100 |
IBGP |
| 1000 |
Cliente |
| 900 |
CDN |
| 800 |
IX/PNI |
| 700 |
Trânsito |
config
router bgp 65102
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1001 action deny match-ip nlri prefix-list DESCARTE-GENERICO-V4
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1002 action deny match-as-path _(65531\|65532)$
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1003 action deny match-ip nlri prefix-list DESCARTE-SERVICO-PREFIXO-V4
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1004 action deny match-as-path _(65541\|65542)$
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1005 set-community 990:200
continue 1006
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1006 set-community 990:201
continue 1007
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1007 set-community 991:200
continue 1008
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1008 set-local-preference 700
continue 1009
exit
route-map 1-UPSTREAM-PEER1-V4-IMPORT 1009
exit
commit
top
!
config
router bgp 65102
route-policy 1-UPSTREAM-PEER1-V4 import-route-map 1-UPSTREAM-PEER1-V4-IMPORT
commit
top
!
config
router bgp 65102
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1001
continue 1002
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1002 match-community _990:100$
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1003 match-community _990:101$
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1004 match-community _991:100$
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1005 match-community _991:101$
set-prepend-local-as 1
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1006 match-community _991:102$
set-prepend-local-as 2
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1007 match-community _991:103$
set-prepend-local-as 3
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 1100
continue 2001
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 2001 match-ip nlri prefix-list SMART-LAYER-99:45::/32
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 2002 match-ip nlri prefix-list SMART-LAYER-99:45::/33
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 2003 match-ip nlri prefix-list SMART-LAYER-99:45:8000::/33
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 2004 match-ip nlri prefix-list SMART-LAYER-99:45::/34
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 2005 match-ip nlri prefix-list SMART-LAYER-99:45:4000::/34
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 2006 match-ip nlri prefix-list SMART-LAYER-99:45:8000::/34
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 2007 match-ip nlri prefix-list SMART-LAYER-99:45:c000::/34
exit
route-map 1-UPSTREAM-PEER1-V6-EXPORT 99999 action deny
commit
top
!
config
router bgp 65102
route-policy 1-UPSTREAM-PEER1-V6 export-route-map 1-UPSTREAM-PEER1-V6-EXPORT
commit
top
!
| Local Pref |
Tipo do peer |
| 1100 |
IBGP |
| 1000 |
Cliente |
| 900 |
CDN |
| 800 |
IX/PNI |
| 700 |
Trânsito |
config
router bgp 65102
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1001 action deny match-ip nlri prefix-list DESCARTE-GENERICO-V6
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1002 action deny match-as-path _(65531\|65532)$
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1003 action deny match-ip nlri prefix-list DESCARTE-SERVICO-PREFIXO-V6
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1004 action deny match-as-path _(65541\|65542)$
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1005 set-community 990:200
continue 1006
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1006 set-community 990:201
continue 1007
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1007 set-community 991:200
continue 1008
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1008 set-local-preference 700
continue 1009
exit
route-map 1-UPSTREAM-PEER1-V6-IMPORT 1009
exit
commit
top
!
config
router bgp 65102
route-policy 1-UPSTREAM-PEER1-V6 import-route-map 1-UPSTREAM-PEER1-V6-IMPORT
commit
top
!
config
router bgp 65102
neighbor 10.101.1.1
update-source-address 10.101.1.2
route-policy 1-UPSTREAM-PEER1-V4
remote-as 65101
timers hold-time 30
timers keepalive 3
ebgp-multihop 255
address-family ipv4 unicast
commit
top
!
config
router bgp 65102
neighbor 10:101:1::1
update-source-address 10:101:1::2
route-policy 1-UPSTREAM-PEER1-V6
remote-as 65101
timers hold-time 30
timers keepalive 3
ebgp-multihop 255
address-family ipv6 unicast
commit
top
!