Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Forwarding Protocols • Re: VRF-Lite with Mangle and dstNAT to reach multiple VLANs with overlapping IPs

$
0
0
Besides and before the netmap line, I don't understand what are these settings:
/ip route
add dst-address=10.2.30.0/24 gateway=vrf30@vrf30
add dst-address=10.2.40.0/24 gateway=vrf40@vrf40
With these commands:
/ip vrf
add interfaces=ether2 name=vrf30
add interfaces=ether3 name=vrf40
you are essentially creating two new routing tables called vrf30 and vrf40, to which - respectively - ether2 and ether3 belong to.

So interfaces to set as gateway should be either:
ether2@vrf30 and ether3@vrf40
or
10.2.30.1@vrf30 and 10.2.40.1@vrf40

Or did you attribute (outside the posted configuration) the vrf30 and vrf40 names to the interfaces? If you have done that, maybe you could change the naming as to avoid possible confusion.

Statistics: Posted by jaclaz — Wed Apr 03, 2024 5:15 pm



Viewing all articles
Browse latest Browse all 15394

Trending Articles