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

Lucas Willian Bocchi lucas.bocchi at gmail.com
Fri Mar 27 19:30:34 -03 2015


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



More information about the gter mailing list