Esse artigo foi homologado no equipamento NetEngine 8000 F1A-8H20Q, na versão V800R021C10SPC600, o uso em uma versão diferente pode não resultar da mesma forma.
| Community |
Descrição |
| 991:100 |
EXPORT-1-DOWNSTREAM-PEER1 |
| 991:200 |
IMPORT-1-DOWNSTREAM-PEER1 |
system-view
ip community-filter advanced EXPORT-1-DOWNSTREAM-PEER1 permit _991:100$
ip community-filter advanced IMPORT-1-DOWNSTREAM-PEER1 permit _991:200$
commit
#
!
system-view
!COLOCAR O ASN DO PEER DOWNSTREAM AQUI
ip as-path-filter DESCARTE-ASPATH-DOWNSTREAM permit _65534$
commit
#
!
system-view
route-policy 1-DOWNSTREAM-PEER1-V4-EXPORT permit node 1001
if-match community-filter EXPORT-GERAL
route-policy 1-DOWNSTREAM-PEER1-V4-EXPORT permit node 1002
if-match community-filter EXPORT-CLIENTE
route-policy 1-DOWNSTREAM-PEER1-V4-EXPORT permit node 1003
if-match community-filter EXPORT-1-DOWNSTREAM-PEER1
route-policy 1-DOWNSTREAM-PEER1-V4-EXPORT permit node 1004
commit
display this
!
| Local Pref |
Tipo do peer |
| 1100 |
IBGP |
| 1000 |
Cliente |
| 900 |
CDN |
| 800 |
IX/PNI |
| 700 |
Trânsito |
system-view
route-policy 1-DOWNSTREAM-PEER1-V4-IMPORT deny node 1001
if-match ip-prefix DESCARTE-GENERICO-V4
route-policy 1-DOWNSTREAM-PEER1-V4-IMPORT permit node 1002
apply local-preference 1000
apply community 990:200 990:203 991:200 additive
commit
display this
!
system-view
route-policy 1-DOWNSTREAM-PEER1-V6-EXPORT permit node 1001
if-match community-filter EXPORT-GERAL
route-policy 1-DOWNSTREAM-PEER1-V6-EXPORT permit node 1002
if-match community-filter EXPORT-CLIENTE
route-policy 1-DOWNSTREAM-PEER1-V6-EXPORT permit node 1003
if-match community-filter EXPORT-1-DOWNSTREAM-PEER1
route-policy 1-DOWNSTREAM-PEER1-V6-EXPORT permit node 1004
commit
display this
!
| Local Pref |
Tipo do peer |
| 1100 |
IBGP |
| 1000 |
Cliente |
| 900 |
CDN |
| 800 |
IX/PNI |
| 700 |
Trânsito |
system-view
route-policy 1-DOWNSTREAM-PEER1-V6-IMPORT deny node 1001
if-match ipv6 address prefix-list DESCARTE-GENERICO-V6
route-policy 1-DOWNSTREAM-PEER1-V6-IMPORT permit node 1002
apply local-preference 1000
apply community 990:200 990:203 991:200 additive
commit
display this
!
system-view
bgp 65000
peer 10.64.249.1 as-number 65001
!PARA ORIGINAR A SESSAO PARTIR DE OUTRO ASN
!peer 10.64.249.1 fake-as 65999
peer 10.64.249.1 description CLIENTE-1-DOWNSTREAM-PEER1-V4
peer 10.64.249.1 ebgp-max-hop 255
peer 10.64.249.1 timer keepalive 3 hold 30
y
peer 10.64.249.1 connect-interface 10.64.249.2
peer 10.64.249.1 listen-only
peer 10.64.249.1 ignore
ipv4-family unicast
peer 10.64.249.1 enable
peer 10.64.249.1 public-as-only
peer 10.64.249.1 route-policy 1-DOWNSTREAM-PEER1-V4-IMPORT import
peer 10.64.249.1 route-policy 1-DOWNSTREAM-PEER1-V4-EXPORT export
peer 10.64.249.1 advertise-community
peer 10.64.249.1 advertise-ext-community
commit
#
!
system-view
bgp 65000
peer 2001:DB8:249::1 as-number 65001
!PARA ORIGINAR A SESSAO PARTIR DE OUTRO ASN
!peer 2001:DB8:249::1 fake-as 65999
peer 2001:DB8:249::1 description CLIENTE-1-DOWNSTREAM-PEER1-V6
peer 2001:DB8:249::1 ebgp-max-hop 255
peer 2001:DB8:249::1 timer keepalive 3 hold 30
y
peer 2001:DB8:249::1 connect-interface 2001:DB8:249::2
peer 2001:DB8:249::1 listen-only
peer 2001:DB8:249::1 ignore
ipv6-family unicast
peer 2001:DB8:249::1 enable
y
peer 2001:DB8:249::1 public-as-only
peer 2001:DB8:249::1 route-policy 1-DOWNSTREAM-PEER1-V6-IMPORT import
peer 2001:DB8:249::1 route-policy 1-DOWNSTREAM-PEER1-V6-EXPORT export
peer 2001:DB8:249::1 advertise-community
peer 2001:DB8:249::1 advertise-ext-community
commit
#
!