We have a use case, single router configured with three routing tables: LAN, VCORP, WAN
VCORP is a route received via BGP, our expected path: PC → LAN → VCORP → WAN
RouterOS supports creating multiple routing tables, but I haven't found detailed documentation on this. I did find VRF help, so I'm trying to set up VRF and routing tables.
I created three VRFs:
vrf_lan, vrf_vcorp, vrf_wan
Then I added the route entry.
vrf_lan:
dst: 0.0.0.0/0, next hop: %vrf_vcorp@vrf_corp
vrf_vcorp:
dst: 0.0.0.0/0, next hop: %vrf_wan@vrf_wan
dst: 172.20.0.0/16, next hop: %vrf_lan@vrf_lan
bgp entry….
vrf_wan:
dst: 0.0.0.0/0, next hop:
dst: 172.20.0.0/16, next hop: %vrf_vcorp@vrf_vcorp
But, the configuration can’t working
If the next hop for 0.0.0.0/0 is set to an interface, and without vrf_vcorp, PC will be able to access the Internet.
vrf_lan:
dst: 0.0.0.0/0, next hop: %sfp-sfpplus1@vrf_wan
Does RouterOS support this feature? Thanks!