S
S
Sergey782016-05-17 12:13:58
Mikrotik
Sergey78, 2016-05-17 12:13:58

Mikrotik, metarouter, how to add vlan?

There is mikrotik CRS109-8G-1S-2HnD. It is used as a switch with vlan support and as a wifi point. On it, all LAN ports are combined into a bridge. A backup Internet channel is connected to the ether7 port, this port is configured for vlan10. The ether2 and ether3 ports are trunk ports, they receive traffic from vlan10 and traffic without vlans (vlan1).
I added an openwrt image to the metarouter, created two dynamic interfaces vif1 and vif2. Now they are both connected to the bridge on the host, both receive addresses, the network is working. How to add one of these interfaces to vlan10?
I'm looking through winbox, switch->vlan section. On the VLAN tab, only physical interfaces can be added to my vlan10, there are no vif * interfaces there. And accordingly in all rules Eg. VLANs and In. VLANs can only be added to real interfaces.
I tried to rename one of the interfaces to eth1.10 in the openwrt /etc/config/network settings, but this way the interface simply stops working (it appears in ifconfig, but does not receive addresses via dhcp).
How to add metarouter-a virtual interface to vlan10?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
satoo, 2016-05-17
@satoo

you most likely need to go from the opposite. on the Mikrotik itself, create a subinterface and forward it to the virtual machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question