A
A
Aborigen10202020-02-13 16:11:28
Mikrotik
Aborigen1020, 2020-02-13 16:11:28

Routing mikrotik, bridge and vlan?

Hello everyone

I'm confused, I can't.

5e454988d3c61490163321.jpeg

There is a main router, holds the subnet 192.168.1.0/24.
I got a 4g access point, set up lte passtrough on it. I made two vlans at this point: vlan10 and vlan12. Vlan id indicated 10 and 12, respectively. Vlan10 - under lte passtrough, vlan12 - for the planned connection to 4g AP. On vlan12, I indicated the statics 192.168.10.2

On the main router on ether10, I made two vlans: vlan10 and vlan12, on vlan10 I gave dhcp-client, on vlan12 I specified the statics 192.168.10.1.

There is a connection between the main router and 4g via vlan12 - 10.1 and 10.2 ping each other and vice versa.

But I can't figure out how to reach client 1.115 from the network of the main router (1.0/24) to 10.2?
I checked the routes, there is (like?) Everything you need:

distance=10 dst-address=0.0.0.0/32 gateway=vlan10 pref-src=1.2.3.4 scope=10
distance=1 dst-address=192.168.10.0/24 gateway=vlan12 pref-src=192.168.10.1 scope=10


Added a route on the client 1.115, like
route add 192.168.10.1 gw 192.168.1.1
route add -net 192.168.10.0 gw 192.168.10.1

But it didn't start.
I feel that something needs to be done with the bridge, can I add my vlan12 to this bridge?
Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pailler, 2020-02-13
@Pailler

A must read before setting up l2.
https://wiki.mikrotik.com/wiki/Manual:Layer2_misco...
Basic principles, briefly:
- you can not bridge physical interfaces and vlan (logical)
- after adding ports to the bridge, we no longer work with them, we work with the bridge - physical interfaces have become slaves
- in order not to fall out of hardware unloading, you should use a switch chip to configure vlan. In most devices, this is the best way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question