[GTER] Mikrotik - Route-Map com match de Prefix-List

Lucas Willian Bocchi lucas.bocchi at gmail.com
Sat Mar 28 09:25:43 -03 2015


Tem como usar prefix-length também que funciona como o gt/le do cisco
pra dar uma mão no negócio.

2015-03-27 23:50 GMT-03:00 Douglas Fischer <fischerdouglas at gmail.com>:
> OK Lucas, até aí cheguei.
>
> Coloquei tudo na mesma Chain, e fui fazendo sets diferentes a cada rota.
>
> Mas Sinceramente?
> Que coisinha mais tosca!
> Gerenciamento disso não escala...
>
> Imagine que eu tenha 20-30 prefix-lists, cada um com sjá alínea de
> route-map e respectivo match.
> E enxada prefix liste eu tenha 50-60 prefixos...
>
> Viu fazer tudo na mão?
> Tomá no doly! Rsrsrs...
> Em 27/03/2015 19:44, "Lucas Willian Bocchi" <lucas.bocchi at gmail.com>
> escreveu:
>
>> Douglas, boa noite.
>>
>> Vai lá
>>
>> /routing filter
>> add chain=BGP-SERVICEPROVIDER-OUT prefix=177.220.170.0/24
>> add chain=BGP-SERVICEPROVIDER-OUT prefix=177.220.170.0/24
>>     no-export
>>
>> Aí vc escolhe
>>
>> Nesse caso vc vai setar o teu BGP pra tua instância toda (todo mundo
>> que fazer peer com esse cara vai usar esse filtro)
>> /routing bgp instance
>> set default out-filter=BGP-SERVICEPROVIDER-OUT
>>
>> Ou por peer, que vai ser assim
>> /routing bgp peer
>> add name=peer1 out-filter=BGP-SERVICEPROVIDER-OUT remote-addre
>>     ttl=default
>>
>> 2015-03-27 19:00 GMT-03:00 Douglas Fischer <fischerdouglas at gmail.com>:
>> > Could anyone translate this config from Cisco/Quagga to Mikotik?
>> > !
>> > ip preffix-list XXX 1.1.1.0/24
>> > ip preffix-list YYY 2.2.2.0/24
>> > !
>> > route-map BGP-SERVICEPROVIDER-OUT permit 10
>> > match ip address preffix-list XXX
>> > set as-path prepend 666 666 ! just an example, could be
>> anything(next-hop,
>> > community, local-pref, med, etc)
>> > !
>> > route-map BGP-SERVICEPROVIDER-OUT permit 20
>> > match ip address prefix list YYY
>> > set community no-export ! just another example
>> > !
>> > router bgp 666
>> > neighbor N.N.N.N route-map BGP-SERVICEPROVIDER-OUT out
>> > !
>> >
>> > --
>> > Douglas Fernando Fischer
>> > Engº de Controle e Automação
>> > --
>> > gter list    https://eng.registro.br/mailman/listinfo/gter
>> --
>> gter list    https://eng.registro.br/mailman/listinfo/gter
>>
> --
> gter list    https://eng.registro.br/mailman/listinfo/gter



More information about the gter mailing list