Hi, im new on Mikrotik and i learn to create vlan and i watched tutorial on youtube and on forum mikrotik and i want the opinion of someone who knows about the topic and tell me if the vlan I am doing is correct
In attachments i give you my config router mikrotik and scheme
Thanks for all opinion
Switch configuration cisco
IOU1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
IOU1(config)#interface Ethernet0/0
IOU1(config-if)#switchport trunk encapsulation dot1q
IOU1(config-if)#switchport mode trunk
IOU1(config-vlan)#name vlan10
IOU1(config-vlan)#exit
IOU1(config)#vlan 20
IOU1(config-vlan)#name vlan20
IOU1(config-vlan)#exit
IOU1(config)#interface Ethernet0/1
IOU1(config-if)#switchport mode access
IOU1(config-if)#switchport access vlan10
IOU1(config-if)#exit
IOU1(config)#interface Ethernet0/2
IOU1(config-if)#switchport mode access
IOU1(config-if)#switchport access vlan20
mikrotik
# 2024-08-03 22:30:07 by RouterOS 7.11.2
# software id =
#
/interface bridge
add name=bridge vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] disable-running-check=no
set [ find default-name=ether2 ] disable-running-check=no
set [ find default-name=ether3 ] disable-running-check=no
set [ find default-name=ether4 ] disable-running-check=no
set [ find default-name=ether5 ] disable-running-check=no
set [ find default-name=ether6 ] disable-running-check=no
set [ find default-name=ether7 ] disable-running-check=no
set [ find default-name=ether8 ] disable-running-check=no
/interface vlan
add interface=ether1 name=vlan10 vlan-id=10
add interface=ether1 name=vlan20 vlan-id=20
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=pool0 ranges=10.0.10.1-10.0.10.254
add name=pool1 ranges=10.0.20.1-10.0.20.254
/ip dhcp-server
add address-pool=pool0 interface=vlan10 name=vlan10dhcp
add address-pool=pool1 interface=vlan20 name=vlan20dhcp
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge interface=ether1
/interface bridge vlan
add bridge=bridge tagged=ether1,bridge vlan-ids=10
add bridge=bridge tagged=ether1,bridge vlan-ids=20
/ip address
add address=10.0.10.1/24 interface=vlan10 network=10.0.10.0
add address=10.0.20.1/24 interface=vlan20 network=10.0.20.0
/ip dhcp-client
# DHCP client can not run on slave or passthrough interface!
add interface=ether1
/ip dhcp-server network
add address=10.0.10.0/24 gateway=10.0.10.1
add address=10.0.20.0/24 gateway=10.0.20.1
/ip firewall filter
add action=drop chain=forward dst-address=10.0.10.0/24 src-address=\
10.0.20.0/24
/system note
set show-at-login=no
Remove DHCP client from ether1, you are using that port for trunk towards cisco. What is function of that router ? Are you getting internet access trough it ? What device are you using ?
This is cloud hosted router mikrotik i use gns3 for configure that bcs i want learn vlans on mikrotik
Ether1 is connected from router to switch
I know i can add firewall masquerade if i want to access to internet but I care more about the vlan configuration itself