Have been trying to add a second redundant Mikrotik router into an existing setup but following the VRRP configuration as per the Mikrotik docs doesn't work for me. I have several VLAN trunk uplinks from switches to the Mikrotik, and an onwards trunk to a firewall/WAN device. Mangle rules are applied to send Internet traffic out on the correct statically configured gateways to the firewall but this breaks once VRRP is enabled. The VRRP interfaces themselves work fine, but the configured routes become unreachable. I assume I have to adjust the mangle rules because with VRRP enabled I see a new dynamic route for the VRRP interface, alongside the usually dynamic routes for VLAN interfaces.
See the VLAN configuration...
/interface
Code: Select all
Flags: D - dynamic; X - disabled, R - running; S - slave; P - passthrough
0 RS name="eth01-lan" default-name="ether1" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1580
max-l2mtu=10222 mac-address=48:8F:5A:D3:73:24 ifname="eth4" ifindex=10 id=5
last-link-up-time=may/16/2022 07:14:02 link-downs=0
3 RS name="eth10-lan" default-name="ether10" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1580
max-l2mtu=10222 mac-address=48:8F:5A:D3:73:2D ifname="eth13" ifindex=19 id=14
last-link-up-time=may/16/2022 07:14:02 link-downs=0
4 RS name="eth11-lan" default-name="ether11" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1580
max-l2mtu=10222 mac-address=48:8F:5A:D3:73:2E ifname="eth14" ifindex=20 id=15
last-link-down-time=may/25/2022 18:42:49 last-link-up-time=may/25/2022 18:43:57 link-downs=4
5 RS name="eth12-lan" default-name="ether12" type="ether" mtu=1500 actual-mtu=1500 l2mtu=1580
max-l2mtu=10222 mac-address=48:8F:5A:D3:73:2F ifname="eth15" ifindex=21 id=16
last-link-down-time=may/20/2022 14:26:18 last-link-up-time=may/25/2022 17:00:09 link-downs=8
16 R name="br01" type="bridge" mtu=auto actual-mtu=1500 l2mtu=1580 mac-address=48:8F:5A:D3:73:24
ifname="br4" ifindex=65 id=52 last-link-down-time=may/16/2022 18:03:34
last-link-up-time=may/16/2022 18:03:34 link-downs=8
17 R name="vlan10-management" type="vlan" mtu=1500 actual-mtu=1500 l2mtu=1576
mac-address=48:8F:5A:D3:73:24 ifname="vlan53" ifindex=66 id=53
last-link-down-time=may/16/2022 18:03:34 last-link-up-time=may/16/2022 18:03:34 link-downs=8
18 R name="vlan11-voip" type="vlan" mtu=1500 actual-mtu=1500 l2mtu=1576
mac-address=48:8F:5A:D3:73:24 ifname="vlan54" ifindex=67 id=54
last-link-down-time=may/16/2022 18:03:34 last-link-up-time=may/16/2022 18:03:34 link-downs=8
19 R name="vlan12-data" type="vlan" mtu=1500 actual-mtu=1500 l2mtu=1576
mac-address=48:8F:5A:D3:73:24 ifname="vlan57" ifindex=69 id=57
last-link-down-time=may/16/2022 18:03:34 last-link-up-time=may/16/2022 18:03:34 link-downs=10
20 R name="vlan13-dmz" type="vlan" mtu=1500 actual-mtu=1500 l2mtu=1576 mac-address=48:8F:5A:D3:73:2>
ifname="vlan56" ifindex=68 id=56 last-link-down-time=may/16/2022 18:03:34
last-link-up-time=may/16/2022 18:03:34 link-downs=8
/interface/bridge
Code: Select all
Flags: X - disabled, R - running
0 R name="br01" mtu=auto actual-mtu=1500 l2mtu=1580 arp=enabled arp-timeout=auto
mac-address=48:8F:5A:D3:73:24 protocol-mode=rstp fast-forward=yes igmp-snooping=no auto-mac=yes
ageing-time=5m priority=0x2000 max-message-age=20s forward-delay=15s transmit-hold-count=6
vlan-filtering=yes ether-type=0x8100 pvid=1 frame-types=admit-only-vlan-tagged
ingress-filtering=yes dhcp-snooping=no
/interface/bridge/port
Code: Select all
Flags: X - disabled, I - inactive; D - dynamic; H - hw-offload
0 I interface=eth03-lan bridge=*18 priority=0x80 path-cost=10 internal-path-cost=10 edge=auto
point-to-point=auto learn=auto horizon=none auto-isolate=no restricted-role=no
restricted-tcn=no pvid=10 frame-types=admit-all ingress-filtering=yes
unknown-unicast-flood=yes unknown-multicast-flood=yes broadcast-flood=yes tag-stacking=no
bpdu-guard=no trusted=no multicast-router=temporary-query fast-leave=no
1 interface=eth01-lan bridge=br01 priority=0x80 path-cost=10 internal-path-cost=10 edge=auto
point-to-point=auto learn=auto horizon=none hw=yes auto-isolate=no restricted-role=no
restricted-tcn=no pvid=1 frame-types=admit-only-vlan-tagged ingress-filtering=yes
unknown-unicast-flood=yes unknown-multicast-flood=yes broadcast-flood=yes tag-stacking=no
bpdu-guard=no trusted=no multicast-router=temporary-query fast-leave=no
2 interface=eth10-lan bridge=br01 priority=0x30 path-cost=10 internal-path-cost=10 edge=auto
point-to-point=auto learn=auto horizon=none hw=yes auto-isolate=no restricted-role=no
restricted-tcn=no pvid=1 frame-types=admit-only-vlan-tagged ingress-filtering=yes
unknown-unicast-flood=yes unknown-multicast-flood=yes broadcast-flood=yes tag-stacking=no
bpdu-guard=no trusted=no multicast-router=temporary-query fast-leave=no
3 interface=eth11-lan bridge=br01 priority=0x20 path-cost=10 internal-path-cost=10 edge=auto
point-to-point=auto learn=auto horizon=none hw=yes auto-isolate=no restricted-role=no
restricted-tcn=no pvid=1 frame-types=admit-only-vlan-tagged ingress-filtering=yes
unknown-unicast-flood=yes unknown-multicast-flood=yes broadcast-flood=yes tag-stacking=no
bpdu-guard=no trusted=no multicast-router=temporary-query fast-leave=no
4 interface=eth12-lan bridge=br01 priority=0x10 path-cost=10 internal-path-cost=10 edge=auto
point-to-point=auto learn=auto horizon=none hw=yes auto-isolate=no restricted-role=no
restricted-tcn=no pvid=1 frame-types=admit-only-vlan-tagged ingress-filtering=yes
unknown-unicast-flood=yes unknown-multicast-flood=yes broadcast-flood=yes tag-stacking=no
bpdu-guard=no trusted=no multicast-router=temporary-query fast-leave=no
/interface/bridge/vlan
Code: Select all
Flags: X - disabled, D - dynamic
0 bridge=br01 vlan-ids=10 tagged=br01,eth01-lan,eth10-lan,eth11-lan,eth12-lan untagged=""
current-tagged=br01,eth01-lan,eth10-lan,eth12-lan,eth11-lan current-untagged=""
1 bridge=br01 vlan-ids=11 tagged=br01,eth01-lan,eth10-lan,eth11-lan,eth12-lan untagged=""
current-tagged=br01,eth01-lan,eth10-lan,eth12-lan,eth11-lan current-untagged=""
2 bridge=br01 vlan-ids=12 tagged=br01,eth01-lan,eth10-lan,eth11-lan,eth12-lan untagged=""
current-tagged=br01,eth01-lan,eth10-lan,eth12-lan,eth11-lan current-untagged=""
3 bridge=br01 vlan-ids=13 tagged=br01,eth01-lan,eth10-lan,eth11-lan,eth12-lan untagged=""
current-tagged=br01,eth01-lan,eth10-lan,eth12-lan,eth11-lan current-untagged=""
The VRRP config is as follows...
/interface/vrrp
Code: Select all
M - master, B - backup, F - failure
0 I name="vrrp1" mtu=1500 mac-address=00:00:5E:00:01:01 arp=enabled
arp-timeout=auto interface=vlan10-management group-master="" vrid=1
priority=100 interval=1s preemption-mode=yes authentication=none
password="" on-backup="" on-master="" on-fail="" version=3
v3-protocol=ipv4 sync-connection-tracking=no
1 I name="vrrp2" mtu=1500 mac-address=00:00:5E:00:01:02 arp=enabled
arp-timeout=auto interface=vlan12-voip group-master="" vrid=2
priority=100 interval=1s preemption-mode=yes authentication=none
password="" on-backup="" on-master="" on-fail="" version=3
v3-protocol=ipv4 sync-connection-tracking=no
2 I name="vrrp3" mtu=1500 mac-address=00:00:5E:00:01:01 arp=enabled
arp-timeout=auto interface=vlan13-data group-master="" vrid=3
priority=100 interval=1s preemption-mode=yes authentication=none
password="" on-backup="" on-master="" on-fail="" version=3
v3-protocol=ipv4 sync-connection-tracking=no
3 I name="vrrp4" mtu=1500 mac-address=00:00:5E:00:01:01 arp=enabled
arp-timeout=auto interface=vlan14-dmz group-master="" vrid=4
priority=100 interval=1s preemption-mode=yes authentication=none
password="" on-backup="" on-master="" on-fail="" version=3
v3-protocol=ipv4 sync-connection-tracking=no
/ip/address
Code: Select all
;;; Management
address=172.22.10.251/24 network=172.22.10.0
interface=vlan10-management actual-interface=vlan10-management
1 ;;; Data
address=172.22.13.251/24 network=172.22.13.0 interface=vlan13-data
actual-interface=vlan13-data
2 ;;; VoIP
address=172.22.12.251/24 network=172.22.12.0 interface=vlan12-voip
actual-interface=vlan12-voip
3 X ;;; Native
address=172.22.99.1/24 network=172.22.99.0 interface=eth03-lan
actual-interface=eth03-lan
4 ;;; DMZ
address=172.22.14.251/24 network=172.22.14.0 interface=vlan14-dmz
actual-interface=vlan14-dmz
5 X address=172.22.10.1/32 network=172.22.10.1 interface=vrrp1
actual-interface=vrrp1
6 X address=172.22.12.1/32 network=172.22.12.1 interface=vrrp2
actual-interface=vrrp2
7 X address=172.22.13.1/32 network=172.22.13.1 interface=vrrp3
actual-interface=vrrp3
8 X address=172.22.14.1/32 network=172.22.14.1 interface=vrrp4
actual-interface=vrrp4
/ip/route
Code: Select all
1 As dst-address=0.0.0.0/0 routing-table=VLAN13-Outbound pref-src=""
gateway=172.22.13.2 immediate-gw=172.22.13.2%vlan13-data
check-gateway=arp distance=1 scope=30 target-scope=10
suppress-hw-offload=no
2 As dst-address=0.0.0.0/0 routing-table=VLAN10-outbound pref-src=""
gateway=172.22.10.2 immediate-gw=172.22.10.2%vlan10-management
check-gateway=arp distance=1 scope=30 target-scope=10
suppress-hw-offload=no
3 As dst-address=0.0.0.0/0 routing-table=VLAN12-Outbound pref-src=""
gateway=172.22.12.2 immediate-gw=172.22.12.2%vlan12-voip
check-gateway=arp distance=1 scope=30 target-scope=10
suppress-hw-offload=no
4 As dst-address=0.0.0.0/0 routing-table=VLAN14-Outbound pref-src=""
gateway=172.22.14.2 immediate-gw=172.22.14.2%vlan14-dmz
check-gateway=arp distance=1 scope=30 target-scope=10
suppress-hw-offload=no
/ip/firewall/mangle
Code: Select all
3 ;;; Mark outbound traffic from VLAN100 for routing
chain=prerouting action=mark-routing new-routing-mark=VLAN100-Outbound
passthrough=no src-address-list=Management-VLAN-subnet
dst-address-list=!private-address log=no log-prefix=""
4 ;;; Mark outbound traffic from VLAN102 for routing
chain=prerouting action=mark-routing new-routing-mark=VLAN102-Outbound
passthrough=no src-address-list=VoIP-VLAN-subnet
dst-address-list=!private-address log=no log-prefix=""
5 ;;; Mark outbound traffic from VLAN103 for routing
chain=prerouting action=mark-routing new-routing-mark=VLAN103-Outbound
passthrough=no src-address-list=Data-VLAN-subnet
dst-address-list=!private-address log=no log-prefix=""
6 ;;; Mark outbound traffic from VLAN104 for routing
chain=prerouting action=mark-routing new-routing-mark=VLAN104-Outbound
passthrough=no src-address-list=DMZ-VLAN-subnet
dst-address-list=!private-address log=no log-prefix=""
Not sure why the routes become unreachable but some pointers would help me.
Thanks,
t04s