C
C
cympak_tck2016-08-09 15:32:10
Mikrotik
cympak_tck, 2016-08-09 15:32:10

How to route VLAN on Mikrotik?

There is a Mikrotik CRS125-24G-1S, a trunk with Dlink in it 2 (VLAN 2 - 3) comes to it. On Mikrotik, the port was taken out of the master and VLANs were added, the IP addresses VLAN2 - 10.10.2.1/24 and VLAN3 - 10.10.3.1/24 were set How to actually make computers from both vlans see each other?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2016-08-09
@Zarom

Where are your configs?
Did you do that?
wiki.mikrotik.com/wiki/Manual:CRS_examples#InterVL...

C
cympak_tck, 2016-08-09
@cympak_tck

set [ find default-name=ether1 ] name=ether1-master-local
set [ find default-name=ether2 ] master-port=ether1-master-local name=\
    ether2-slave-local
set [ find default-name=ether3 ] master-port=ether1-master-local name=\
    ether3-slave-local
set [ find default-name=ether4 ] master-port=ether1-master-local name=\
    ether4-slave-local
set [ find default-name=ether5 ] master-port=ether1-master-local name=\
    ether5-slave-local
set [ find default-name=ether6 ] master-port=ether1-master-local name=\
    ether6-slave-local
set [ find default-name=ether7 ] master-port=ether1-master-local name=\
    ether7-slave-local
set [ find default-name=ether8 ] master-port=ether1-master-local name=\
    ether8-slave-local
set [ find default-name=ether9 ] master-port=ether1-master-local name=\
    ether9-slave-local
set [ find default-name=ether10 ] master-port=ether1-master-local name=\
    ether10-slave-local
set [ find default-name=ether11 ] master-port=ether1-master-local name=\
    ether11-slave-local
set [ find default-name=ether12 ] master-port=ether1-master-local name=\
    ether12-slave-local
set [ find default-name=ether13 ] master-port=ether1-master-local name=\
    ether13-slave-local
set [ find default-name=ether14 ] master-port=ether1-master-local name=\
    ether14-slave-local
set [ find default-name=ether15 ] master-port=ether1-master-local name=\
    ether15-slave-local
set [ find default-name=ether16 ] master-port=ether1-master-local name=\
    ether16-slave-local
set [ find default-name=ether17 ] master-port=ether1-master-local name=\
    ether17-slave-local
set [ find default-name=ether18 ] master-port=ether1-master-local name=\
    ether18-slave-local
set [ find default-name=ether19 ] comment=Sasha name=ether19-slave-local
set [ find default-name=ether20 ] comment=Vova name=ether20-slave-local
set [ find default-name=ether21 ] master-port=ether1-master-local name=\
    ether21-slave-local
set [ find default-name=ether22 ] master-port=ether1-master-local name=\
    ether22-slave-local
set [ find default-name=ether23 ] comment="Na mikrotik 951" name=\
    ether23-slave-local
set [ find default-name=ether24 ] master-port=ether1-master-local name=\
    ether24-slave-local
set [ find default-name=sfp1 ] master-port=ether1-master-local name=\
    sfp1-slave-local
/ip neighbor discovery
set ether19-slave-local comment=Sasha
set ether20-slave-local comment=Vova
set ether23-slave-local comment="Na mikrotik 951"
/interface vlan
add interface=ether19-slave-local name=vlanAsu vlan-id=2
add interface=ether19-slave-local name=vlanBuh vlan-id=3
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=aes-128-cbc
/interface ethernet switch port
set 0 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 1 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 2 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 3 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 4 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 5 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 6 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 7 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 8 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 9 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,\
    wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 10 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 11 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 12 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 13 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 14 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 15 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 16 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 17 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 18 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 19 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 20 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 21 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 22 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 23 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 24 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
set 25 per-queue-scheduling="wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8\
    ,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128"
/ip address
add address=192.168.88.50/24 comment="default configuration" interface=\
    ether1-master-local network=192.168.88.0
add address=10.10.2.1/24 interface=vlanAsu network=10.10.2.0
add address=10.10.3.1/24 interface=vlanBuh network=10.10.3.0
/ip dns
set servers=192.168.2.250
/ip route
add distance=1 gateway=192.168.2.250
/lcd
set default-screen=stats-all
/system clock
set time-zone-name=Europe/Moscow
/system routerboard settings
set protected-routerboot=disabled
/tool romon port
add

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question