[GTER] Mikrotik route rule para rotas aprendidas via BGP

Rubens Kuhl rubensk at gmail.com
Mon Jan 2 10:34:04 -02 2012


2012/1/2 Antonio Modesto <modesto at isimples.com.br>:
> Bom dia,
>
>    Alguém sabe se existe alguma maneira de aplicar regras de roteamento
> "/ip route rule" em rotas aprendidas dinamicamente via BGP no Mikrotik?
> Pois preciso forçar o lookup na tabela main para rotas recebidas por um
> peer específico, pois na tabela criada pelo routing mark existe uma rota
> default, que impede que a tabela main seja consultada.

Provavelmente o problema não seja bem esse:
http://wiki.mikrotik.com/wiki/Manual:IP/Route#Nexthop_lookup

"Nexthop lookup is done only in the main routing table, even for
routes with different value of routing-mark. It is necessary to
restrict set of routes that can be used to look up immediate nexthops.
Nexthop values of RIP or OSPF routes, for example, are supposed to be
directly reachable and should be looked up only using connected
routes. This is achieved using scope and target-scope properties."

Deve ter a haver com scope:

"Routes with scope greater than the maximum accepted value are not
used for nexthop lookup. Each route specifies maximum accepted scope
value for it's nexthops in the target-scope property. Default value of
this property allows nexthop lookup only through connected routes,
with the exception of iBGP routes that have larger default value and
can lookup nexthop also through IGP and static routes."

Assim, usar set-scope no routing-filter e target-scope nas rotas
estáticas que apontam o caminho do next-hop tem mais chance de fazer o
que está querendo, algo que para mim não foi claro e que talvez se
você descrever a política que você quer implementar alguém possa
sugerir um outro modo.


Rubens



More information about the gter mailing list