Hi.
Static example :
/ip route add routing-mark=RED dst-address=0.0.0.0/0 gateway=1.1.1.1@main
Question :
Can i do the same for multi VRFs dynamically using default route from BGP ?
I tried to use append rd in filters for default route which i got from upstream but it is not work. Route not appear in VRF routing table.
Nobody knows or it is bug in Mikrotik ?
Ok some extra config to recreate issue
/routing bgp peer
add address-families=ip,l2vpn in-filter=BGP_IN name=Main nexthop-choice=force-self out-filter=BGP_OUT remote-address=10.29.0.37 remote-as=65001 ttl=default
/routing filter
add append-bgp-communities="" append-route-targets=2222:1,1111:1 bgp-communities="" chain=BGP_IN prefix=0.0.0.0/0 prefix-length=0
/ip route vrf
add export-route-targets=2222:1 import-route-targets=2222:1 route-distinguisher=2222:1 routing-mark=TEST
add export-route-targets=1111:1 import-route-targets=1111:1 route-distinguisher=1111:1 routing-mark=TEST2
After all added
09:54:23 route,info Matched filter for
09:54:23 route,info chain=BGP_IN
09:54:23 route,info dst-prefix=0.0.0.0/0
09:54:23 route,info attributes
09:54:23 route,info protocol=BGP
09:54:23 route,info scope=40
09:54:23 route,info next-hop= address=10.29.0.37
09:54:23 route,info origin-type=BGP
09:54:23 route,info origin-instance-id=0
09:54:23 route,info bgp-peer-router-id=10.255.255.1
09:54:23 route,info bgp-peer-flags=0
09:54:23 route,info bgp-router-id=10.255.255.4
09:54:23 route,info bgp-origin=IGP
09:54:23 route,info bgp-as-path=65001
09:54:23 route,info bgp-as-path-len=1
09:54:23 route,info bgp-nexthop=10.29.0.37
09:54:23 route,info bgp-extended-communities=RT:1111:1,RT:2222:1
09:54:23 route,info use-te-nexthop=yes
/ip route print
0 ADb 0.0.0.0/0 10.29.0.37 20
import-route-targets ignored . Why ? Is it expected behavior ? Or i do something wrong ?