K
K
Konstantin2015-08-21 11:41:29
Mikrotik
Konstantin, 2015-08-21 11:41:29

How to route multiple Mikrotik admin interfaces?

Situation. The remote site has Mikrotik. Until recently, he had 1 control interface.
There was a need to make 2 or more - on the admin interface in each desired VLAN. Networks are transparent, without NAT.
Problem. I ping a remote VLAN on Mikrotik - I get an error with TTL. Each VLAN has its own gateway.
The IP address on an interface in a VLan always sends traffic through the default gateway, through another interface.
It turns out that I make a request for int-sa Mikrotik via VLAN31, and I receive a response via Vlan1. If I turn off int-with Mikrotik in VLAN31, then a routing loop is obtained. And the TTL limit is triggered.
I have to write rules for the firewall/mangle in order to explain to Mikrotik - that on which interface a packet comes, it means that you need to send a response from it. Tell me how to do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cool Admin, 2015-08-21
@ifaustrue

Ufff, you are doing something incomprehensible without a diagram =)
But it looks like the setting is trivial (for two ports):
chain=input action=mark-connection new-connection-mark=ISP 1 passthrough=no in-interface=ether1
chain=output action= mark-routing new-routing-mark=ISP 1 passthrough=no connection-mark=ISP 1
chain=input action=mark-connection new-connection-mark=ISP 2 passthrough=no in-interface=ether2
chain=output action=mark -routing new-routing-mark=ISP 2 passthrough=no connection-mark=ISP 2
and two routing tables for each route label, in these tables the gateway default entry leads to the gateway of the network in which this interface "lives". Try - write.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question