Standard
### no export - no eBGP
configure
set interfaces lo0 unit 0 family inet address 1.1.1.2/32
set interfaces lo0 unit 0 family inet address 1.1.1.3/32
set policy-options policy-statement ADVERTISE_ROUTES term 2 from protocol direct
set policy-options policy-statement ADVERTISE_ROUTES term 2 from route-filter 1.1.1.2/32 exact
set policy-options policy-statement ADVERTISE_ROUTES term 2 from route-filter 1.1.1.3/32 exact
set policy-options policy-statement ADVERTISE_ROUTES term 2 then accept
set policy-options policy-statement ADVERTISE_ROUTES term 2 then community add TAG-NO-EXPORT
set policy-options community TAG-NO-EXPORT members no-export
commit
### No-advertise - a Nadie
## Outbound
vMXvCP-1:
cli
configure
set interfaces lo0 unit 0 family inet address 1.1.1.2/32
set interfaces lo0 unit 0 family inet address 1.1.1.3/32
set policy-options policy-statement ADVERTISE_ROUTES term 2 from protocol direct
set policy-options policy-statement ADVERTISE_ROUTES term 2 from route-filter 1.1.1.2/32 exact
set policy-options policy-statement ADVERTISE_ROUTES term 2 from route-filter 1.1.1.3/32 exact
set policy-options policy-statement ADVERTISE_ROUTES term 2 then accept
set policy-options policy-statement ADVERTISE_ROUTES term 2 then community add TAG-NO-ADV
set policy-options community TAG-NO-ADV members no-advertise
commit
## Inbound
vMXvCP-5:
cli
configure
set policy-options policy-statement TAG_ROUTES term 2 from protocol bgp
set policy-options policy-statement TAG_ROUTES term 2 from route-filter 6.6.6.7/32 exact
set policy-options policy-statement TAG_ROUTES term 2 from route-filter 6.6.6.8/32 exact
set policy-options policy-statement TAG_ROUTES term 2 then accept
set policy-options policy-statement TAG_ROUTES term 2 then community add TAG-NO-ADV
set policy-options community TAG-NO-ADV members no-advertise
set protocol bgp group eBGP import TAG_ROUTES
commit
### Custom_TAG
#Match the TAG
set policy-options community MATCH_TAG_1:2 members 1:2
#Create policy
set policy-options policy-statement MATCH_ROUTES term 1 from protocol bgp
set policy-options policy-statement MATCH_ROUTES term 1 from community MATCH_TAG_1:2
set policy-options policy-statement MATCH_ROUTES term 1 then local-preference 200
set policy-options policy-statement MATCH_ROUTES term 1 then accept
#Apply policy
set protocols bgp group eBGP neighbor 192.168.56.5 import MATCH_ROUTES
No hay comentarios
COMENTA CON TU PERFIL DEFACEBOK