#gerado pelo ZDM do Thales Moises #www.thalesmoises.com !inicio da config !cria ip-prefix # ip ip-prefix ROTA-DEFAULT-IPV4 permit 0.0.0.0 0 ip ip-prefix CLI-ITALINE_AS264664-[VAR10]-22ATE24 permit [VAR10] 22 greater-equal 22 less-equal 24 ip ip-prefix BLACKHOLE-CLI-ITALINE-[VAR10] permit [VAR10] 22 greater-equal 32 less-equal 32 ip ip-prefix ROTA-DEFAULT-IPV4 permit 0.0.0.0 0 ip ipv6-prefix ROTA-DEFAULT-IPV6 permit :: 0 ip ipv6-prefix CLI-ITALINE_AS264664-[VAR11]-32ATE48 permit [VAR11] 32 greater-equal 32 less-equal 48 # # !CRIA ROUTE POLICY DE IMPORT IPV4 route-policy CLIENTE-ITALINE-V4-IMPORT deny node 200 if-match ip-prefix DESCARTE-GENERICO-V4 route-policy CLIENTE-ITALINE-V4-IMPORT permit node 210 if-match ip-prefix BLACKHOLE-CLIENTE-ITALINE-[VAR10] !criar e ajustar community de blackhole !if-match community blackhole !apply blackhole route-policy CLIENTE-ITALINE-V4-IMPORT permit node 220 if-match ip-prefix CLIENTE-ITALINE-[VAR10]-22ate24 apply local-preference 1000 # !CRIA ROUTE POLICY DE EXPORT IPV4 # route-policy CLIENTE-ITALINE-V4-EXPORT permit node 200 if-match ip-prefix ROTA-DEFAULT-IPV4 route-policy CLIENTE-ITALINE-V4-EXPORT deny node 65000 # !CONFIG PEER V4 bgp 270760 peer 172.16.0.6 as-number 264664 peer 172.16.0.6 description CLIENTE-ITALINE-V4 peer 172.16.0.6 timer keepalive 3 hold 30 Y peer 172.16.0.6 connect-interface 172.16.0.5 ipv4-family unicast peer 172.16.0.6 enable peer 172.16.0.6 public-as-only peer 172.16.0.6 route-policy CLIENTE-ITALINE-V4-IMPORT import peer 172.16.0.6 route-policy CLIENTE-ITALINE-V4-EXPORT export peer 172.16.0.6 advertise-community peer 172.16.0.6 advertise-ext-community # # !CRIA ROUTE POLICY V6 route-policy CLIENTE-ITALINE-V6-IMPORT deny node 200 if-match ipv6 address prefix-list DESCARTE-GENERICO-V6 route-policy CLIENTE-ITALINE-V6-IMPORT permit node 65000 if-match ipv6 address prefix-list CLI-ITALINE_AS264664-[VAR11]-32ATE48 apply local-preference 1000 !CRIA ROUTE POLICY EXPORT IPV6 route-policy CLIENTE-ITALINE-V6-EXPORT permit node 200 if-match ipv6 address prefix-list ROTA-DEFAULT-IPV6 route-policy CLIENTE-ITALINE-V6-EXPORT deny node 65000 # !CONFIG PEER V6 bgp 270760 peer 28044efc::6000:2 as-number 264664 peer 28044efc::6000:2 description CLIENTE-ITALINE-V6 peer 28044efc::6000:2 timer keepalive 3 hold 30 Y peer 28044efc::6000:2 connect-interface 28044efc::6000:1 peer 28044efc::6000:2 connect-only ipv6-family unicast peer 28044efc::6000:2 enable Y peer 28044efc::6000:2 public-as-only peer 28044efc::6000:2 route-policy CLIENTE-ITALINE-V6-IMPORT import peer 28044efc::6000:2 route-policy CLIENTE-ITALINE-V6-EXPORT export peer 28044efc::6000:2 advertise-community peer 28044efc::6000:2 advertise-ext-community # #FIM DA CONFIG #