Answer the question
In order to leave comments, you need to log in
What is wrong with Mikrotik routing?
There is a network:
A Mikrotik router through which there is access to the Internet and everything that is directly connected to it gets this access. Network 192.168.10.0/24 And the second microtic, on which several networks are organized (192.168.1.0/24, 192.168.11.0/24, 192.168.99.0/24, 10.254.0.0/16). The second Mikrotik is connected to the first one, and received from it the IP address 192.168.10.49.
Why this is done, do not ask. The contractor with whom we concluded the contract instead of using the network of the first Mikrotik installed additional equipment and now, having only remote access through the first Mikrotik, I am trying to revive the contractor's network.
Route configuration of the first Mikrotik:
. Dst. Address Gateway Distance Pref. Source
AS 0.0.0.0/0 10.2.0.1 reachable ether1 1
DAC 10.2.0.0./19 ether1 reacable 0 10.2.7.136
AS 192.168.1.0/24 192.168.0.49 reachable bridge 1
DAC 192.168.10.0/24 bridge reachable 0 192.168.10.1
AS 192.168.11.0/24 192.168.0.49 reachable bridge 1
AS 192.168.99.0/24 192.168.0.49 reachable bridge 1
. Dst. Address Gateway Distance Pref. Source
DS 0.0.0.0/0 192.168.10.1 unreachable 1
DAC 10.254.0.0/16 vlan102 reachable 0 10.254.0.1
DAC 192.168.1.0/24 vlan100 reachable 0 192.168.1.1
AS 192.168.10.0/24 ether6 reachable 1
DAC 192.168.11.0/24 vlan101 reacable 0 192.168.11.1
DAC 192.168.99.0/24 vlan99 reachable 0 192.168.99.1
0 ;;; defconf: masquerade
chain=srcnat action=masquerade out-interface-list=WAN
ipsec-policy=out,none
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade out-interface=ether6 log=no log-prefix=""
1 chain=srcnat action=src-nat to-addresses=192.168.1.1
src-address=192.168.99.0/24 dst-address=192.168.1.0/24 log=no
log-prefix=""
2 chain=srcnat action=src-nat to-addresses=192.168.1.1
src-address=192.168.11.0 /24 dst-address=192.168.1.0/24 log=no
log-prefix=""
Answer the question
In order to leave comments, you need to log in
Routing in Mikrotik takes matches by the smallest mask, so the /0 route has the lowest priority,
and everything flies to nat
1 chain=srcnat action=src-nat to-addresses=192.168.1.1
src-address=192.168.99.0/24 dst-address=192.168.1.0/24 log=no
log-prefix=""
2 chain=srcnat action=src -nat to-addresses=192.168.1.1
src-address=192.168.11.0/24 dst-address=192.168.1.0/24 log=no
log-prefix=""
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question