I need to establish PPTP-OUT connect one per ethernet link. So, it was created two VRFs:
Code: Select all
[dude@gw] /ip route vrf> export compact
#
/ip route vrf
add interfaces=ether1,pptp-out1 routing-mark=vrf1
add interfaces=ether2,pptp-out2 routing-mark=vrf2
Code: Select all
[dude@gw] /ip firewall nat> export compact
#
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1 routing-table=vrf1
add action=masquerade chain=srcnat out-interface=ether2
add action=masquerade chain=srcnat out-interface=pptp-out1 routing-table=vrf1
add action=masquerade chain=srcnat out-interface=pptp-out2 routing-table=vrf2
Code: Select all
[dude@gw] /ip route> export compact
#
/ip route
add distance=1 dst-address=1.1.1.1/32 gateway=10.20.30.1 routing-mark=vrf1 vrf-interface=ether1
add distance=1 dst-address=1.1.1.1/32 gateway=10.20.30.1 routing-mark=vrf2 vrf-interface=ether2
Code: Select all
[dude@gw] /ip route> export compact
#
/ip route
add distance=1 dst-address=1.1.1.1/32 gateway=10.20.30.1%ether1
add distance=1 dst-address=1.1.1.1/32 gateway=10.20.30.1%ether2
Code: Select all
[dude@gw] /ip route> print terse where dst-address=1.1.1.1/32
3 A S dst-address=1.1.1.1/32 gateway=10.20.30.1%ether1 distance=1 scope=30 target-scope=10
4 S dst-address=1.1.1.1/32 gateway=10.20.30.1%ether2 distance=1 scope=30 target-scope=10