Problems with MikroTik VLANs
Problems with MikroTik VLANs
You’ve set up your MikroTik router with VLANs properly. To assign switch ports to specific VLANs, follow these steps:
1. Open the VLAN configuration interface.
2. Create the VLANs as specified:
- VLAN 40: 8–10
- VLAN 20: 25–48
- VLAN 1: 1
3. Assign switch ports to each VLAN using the appropriate port assignment command.
4. Verify the assignments and ensure traffic is routed correctly between switches.
You can link a VLAN to an interface within the same enclosure where the VLAN was established.
I made that change on my RBM33G router. Now I'm working with the switch to ensure VLANs function properly.
Change VLAN ID on MikroTik CRS354-48P-4S by editing the interface configuration file and applying the changes.
2023-11-02 14:50:27 by RouterOS 7.12beta3 # Model configuration: RB4011iGS+ # Add admin-mac interface with timestamp # Set default names for Ethernet, VLAN, WAN interfaces # Configure VLANs with IDs # Assign WAN and LAN interfaces with details # Enable wireless security profiles with defaults # Add DHCP pools and server addresses # List interfaces with comments for management # Define bridge settings including lease times # Specify IP ranges and DNS settings # Configure firewall rules for LAN, WAN, and IPv6 # Set routing and NAT policies # Adjust time zone and system clock
2023-11-02 14:50:40 by RouterOS 7.11.2 # model = CRS354-48P-4S+2Q+ /interface bridge add admin-mac=C4:AD:34:C1:1D:2F auto-mac=no comment=defconf name=bridge /interface ethernet # poe-out status: short_circuit enabled [select default-name=ether1] note=VLANS l2mtu=1592 set [select default-name=ether2 ] l2mtu=1592 set [select default-name=ether3 ] l2mtu=1592 set [select default-name=ether4 ] l2mtu=1592 set [select default-name=ether5 ] l2mtu=1592 set [select default-name=ether6 ] l2mtu=1592 set [select default-name=ether7 ] l2mtu=1592 set [select default-name=ether8 ] l2mtu=1592 set [select default-name=ether9 ] l2mtu=1592 set [select default-name=ether10 ] l2mtu=1592 set [select default-name=ether11 ] l2mtu=1592 set [select default-name=ether12 ] l2mtu=1592 # poe-out status: short_circuit enabled [select default-name=ether13 ] l2mtu=1592 # poe-out status: short_circuit enabled [select default-name=ether14 ] comment=VLAN40 disabled=yes l2mtu=1592 set [select default-name=ether15 ] comment=VLAN40 disabled=yes l2mtu=1592 set [select default-name=ether16 ] comment=VLAN40 disabled=yes l2mtu=1592 set [select default-name=ether17 ] l2mtu=1592 set [select default-name=ether18 ] comment="poe clock lodge" l2mtu=1592 set [select default-name=ether19 ] comment="G3FLEX ON TOP OF CABINET" l2mtu=1592 set [select default-name=ether20 ] comment=VLAN1 l2mtu=1592 set [select default-name=ether21 ] comment=VLAN40 disabled=yes l2mtu=1592 set [select default-name=ether22 ] comment=VLAN40 disabled=yes l2mtu=1592 set [select default-name=ether23 ] comment="G3FLEX ON TOP OF CABINET" l2mtu=1592 set [select default-name=ether24 ] comment=VLAN17 l2mtu=1592 set [select default-name=ether25 ] comment=VLAN26 l2mtu=1592 set [select default-name=ether27 ] comment="G3FLEX ON TOP OF CABINET" l2mtu=1592 set [select default-name=ether28 ] comment="G3FLEX ON TOP OF CABINET" l2mtu=1592 set [select default-name=ether29] comment="Poe clock lodge" l2mtu=1592 set [select default-name=ether30] comment="F0-2 patch panel" l2mtu=1592 set [select default-name=ether31] comment=VLAN1 l2mtu=1592 set [select default-name=ether32] comment="VLAN40 disabled=yes"