I am on Routeros 7.1rc2 on RB450GX4.
I have a vlan-160 with network, 10.0.160.0/24.
I want ALL traffic from this VLAN to go over the lte-vlan. 1 way to do this is with mangle rules but since I want this for this entire network, I tried to do it with policy routing rules but it doesn’t seem to be working. All the packets are still going through the primary wan in the main
routing table.
Routing rule
admin@Ishan's Mikrotik] > /routing/rule/print
Flags: X - disabled, I - inactive
0 src-address=10.0.160.0/24 action=lookup-only-in-table table=lte-failover
Short routing table
[admin@Ishan's Mikrotik] > /routing/route/print
Flags: X - disabled, F - filtered, U - unreachable, A - active; c - connect, s - static, r - rip, b - bgp, o - ospf, d - dhcp, v - vpn, m - modem, a - ldp-address, l - ldp-mapping, y - copy; H - hw-offloaded; + - ecmp, B - blackhole
DST-ADDRESS GATEWAY AFI DISTANCE SCOPE TARGET-SCOPE IMMEDIATE-GW
As ;;; Main WAN Route
0.0.0.0/0 pppoe-bsnl ip4 1 30 10 pppoe-bsnl
s 0.0.0.0/0 lte-vlan ip4 2 30 10 lte-vlan
Ac 10.0.150.0/24 vlan-150 ip4 0 10 vlan-150
Ac 10.0.160.0/24 vlan-160 ip4 0 10 vlan-160
Ac 10.11.11.0/24 personal-vpn ip4 0 10 personal-vpn
Ac 100.0.0.0/8 lte-vlan ip4 0 10 lte-vlan
Ac <bsnl-wan-gateway>/32 pppoe-bsnl ip4 0 10 pppoe-bsnl
Ac 192.168.1.0/24 ether5 ip4 0 10 ether5
As 192.168.8.1/32 lte-vlan ip4 1 30 10 lte-vlan
As 0.0.0.0/0 10.11.11.1%pers... ip4 1 30 10 10.11.11.1%personal-vpn
As 0.0.0.0/0 100.0.0.1%lte-vlan ip4 1 30 10 100.0.0.1%lte-vlan
As 0.0.0.0/0 pppoe-bsnl ip4 1 30 10 pppoe-bsnl
A H ether1 link 0
A H ether2 link 0
A H ether4 link 0
A H ether5 link 0
A H personal-vpn link 0
A H pppoe-bsnl link 0
A H bridge link 0
A H lte-vlan link 0
A H vlan-150 link 0
A H vlan-160 link 0
Detail routing table
[admin@Ishan's Mikrotik] > /routing/route/print detail
Flags: X - disabled, F - filtered, U - unreachable, A - active; c - connect, s - static, r - rip, b - bgp, o - ospf, d - dhcp, v - vpn, m - modem, a - ldp-address, l - ldp-mapping, y - copy; H - hw-offloaded; + - ecmp, B - blackhole
As ;;; Main WAN Route
afi=ip4
contribution=active dst-address=0.0.0.0/0 routing-table=main pref-src="" gateway=pppoe-bsnl immediate-gw=pppoe-bsnl distance=1 scope=30 target-scope=10 belongs-to="Static route"
s afi=ip4 contribution=candidate dst-address=0.0.0.0/0 routing-table=main pref-src="" gateway=lte-vlan immediate-gw=lte-vlan distance=2 scope=30 target-scope=10 belongs-to="Static route"
Ac afi=ip4 contribution=active dst-address=10.0.150.0/24 routing-table=main gateway=vlan-150 immediate-gw=vlan-150 distance=0 scope=10 belongs-to="Connected route" local-address=10.0.150.1%vlan-150
Ac afi=ip4 contribution=active dst-address=10.0.160.0/24 routing-table=main gateway=vlan-160 immediate-gw=vlan-160 distance=0 scope=10 belongs-to="Connected route" local-address=10.0.160.1%vlan-160
Ac afi=ip4 contribution=active dst-address=10.11.11.0/24 routing-table=main gateway=personal-vpn immediate-gw=personal-vpn distance=0 scope=10 belongs-to="Connected route" local-address=10.11.11.2%personal-vpn
Ac afi=ip4 contribution=active dst-address=100.0.0.0/8 routing-table=main gateway=lte-vlan immediate-gw=lte-vlan distance=0 scope=10 belongs-to="Connected route" local-address=<lte-vlan-ip>%lte-vlan
Ac afi=ip4 contribution=active dst-address=<bsnl-wan-gateway>/32 routing-table=main gateway=pppoe-bsnl immediate-gw=pppoe-bsnl distance=0 scope=10 belongs-to="Connected route" local-address=<bsnl-wan-ip>%pppoe-bsnl
Ac afi=ip4 contribution=active dst-address=192.168.1.0/24 routing-table=main gateway=ether5 immediate-gw=ether5 distance=0 scope=10 belongs-to="Connected route" local-address=192.168.1.2%ether5
As afi=ip4 contribution=active dst-address=192.168.8.1/32 routing-table=main pref-src="" gateway=lte-vlan immediate-gw=lte-vlan distance=1 scope=30 target-scope=10 belongs-to="Static route"
As afi=ip4 contribution=active dst-address=0.0.0.0/0 routing-table=via-personal-vpn pref-src="" gateway=10.11.11.1%personal-vpn immediate-gw=10.11.11.1%personal-vpn distance=1 scope=30 target-scope=10 belongs-to="Static route"
As afi=ip4 contribution=active dst-address=0.0.0.0/0 routing-table=lte-failover pref-src="" gateway=100.0.0.1%lte-vlan immediate-gw=100.0.0.1%lte-vlan distance=1 scope=30 target-scope=10 belongs-to="Static route"
As afi=ip4 contribution=active dst-address=0.0.0.0/0 routing-table=primary-wan pref-src="" gateway=pppoe-bsnl immediate-gw=pppoe-bsnl distance=1 scope=30 target-scope=10 belongs-to="Static route"
A H afi=link contribution=active dst-address=ether1 routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=ether2 routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=ether4 routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=ether5 routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=personal-vpn routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=pppoe-bsnl routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=bridge routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=lte-vlan routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=vlan-150 routing-table=main distance=0 belongs-to="Interface"
A H afi=link contribution=active dst-address=vlan-160 routing-table=main distance=0 belongs-to="Interface"