# Пример настройки VLAN с SWITCH chip, native vlan - :!: в mikrotik NATIVE VLAN = VID:0 [admin@MikroTik-304] > /interface/ethernet/switch/vlan/ [admin@MikroTik-304] /interface/ethernet/switch/vlan> export # feb/25/2024 19:05:42 by RouterOS 7.8beta2 # software id = W523-SWBT # # model = RBD52G-5HacD2HnD # serial number = BEEB0A75E122 /interface ethernet switch vlan add independent-learning=yes ports=ether1,switch1-cpu switch=switch1 vlan-id=112 add independent-learning=yes ports=ether1,ether5,switch1-cpu switch=switch1 vlan-id=111 add independent-learning=yes ports=ether1,switch1-cpu,ether2,ether3,ether4,ether5 switch=switch1 [admin@MikroTik-304] /interface/ethernet/switch/vlan> /interface/ethernet/switch/port [admin@MikroTik-304] /interface/ethernet/switch/port> export # feb/25/2024 19:05:54 by RouterOS 7.8beta2 # software id = W523-SWBT # # model = RBD52G-5HacD2HnD # serial number = BEEB0A75E122 /interface ethernet switch port set 0 default-vlan-id=0 vlan-header=add-if-missing set 1 default-vlan-id=0 set 2 default-vlan-id=0 set 3 default-vlan-id=0 set 4 default-vlan-id=111 vlan-header=always-strip vlan-mode=secure set 5 default-vlan-id=0 [admin@MikroTik-304] /interface/ethernet/switch/port> # WIFI configure # Under /interface ethernet switch vlan switch1-cpu passes traffic from the switch chip to the CPU, only required for VLANs connected to services provided by the CPU such as IP address, routing, DHCP server and software-based # interfaces (tunnels, wireless). # Under /interface ethernet switch port use vlan-header=leave-as-is for the switch chip in the hAP ac as mentioned in the wiki and help pages. # Under interface wireless use both vlan-mode=use-tag AND vlan-id= to specify which VLAN the interface should be connected to. # Under /interface bridge port setting hw=yes for the wireless interfaces is pointless, the drivers are implemented in software.