I want to keep a management port on each device for “local only” management using the 192.168.88.1 addresses. I wish to put this address and that interface into a routing-table so it does not pollute the global table (so the equivalent of “VRF-lite” on Cisco).
In this example, ether1-mgmt is the designated interface:
[admin@MikroTik] > /ip addr print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.88.1/24 192.168.88.0 ether1-mgmt
[admin@MikroTik] > /ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 192.168.88.0/24 192.168.88.1 ether1-mgmt 0
As soon as I move that interface into a routing-table, I can no longer manage the device (winbox or ssh):
[admin@MikroTik] > /ip route vrf add routing-mark=mgmt interfaces=ether1-mgmt
[admin@MikroTik] > /ip route vrf print
Flags: X - disabled, I - inactive
0 X routing-mark=mgmt interfaces=ether1-mgmt
[admin@MikroTik] > /ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 192.168.88.0/24 192.168.88.1 ether1-mgmt 0
However I can still ping the device at 192.168.88.1, and the device can still ping me (when told to use the right routing-table):
[admin@MikroTik] > ping 192.168.88.1 routing-table=mgmt
SEQ HOST SIZE TTL TIME STATUS
0 192.168.88.1 56 64 0ms
1 192.168.88.1 56 64 0ms
sent=2 received=2 packet-loss=0% min-rtt=0ms avg-rtt=0ms max-rtt=0ms
I suspect I need to enable management inside a routing-table but I don’t know how to tell RouterOS to do this.
Thanks
-davidc