How to configure Trunk Vlan MikorTik with MikroTik

 

Router

  1. Connect MikroTik Router to Internet
  2. Create Bridge
  3. Create Vlan
  4. Set ip address to Vlan
  5. Configure DHCP Server 
  6. Configure NAT to Vlan access to Internet
MikroTik Core_Switch
  1. Create Bridge
  2. Add ports to Bridge with vlan id
  3. Assign port for each vlan, Such vlan10,20,30
This article we start configure from Step2 is Create Birdge
Router
2. Create Bridge 
  • Open winbox
  • Connect to MikrTik with IP or MAC Adress 

  • Go to Bridge menu item form the lest menu bar

  • Click on "+" button to create new Bridge 
  • Set Name of Bridge click OK

  • Add ports to Bridge: Select tap Ports click "+" button 
  • Select Interface "Ether2"
  • Select Bridge "bridge1"
  • You can select more interface to bridge depend on your environment 
  • Click Ok

  • Result 

3. Create Vlan

  • Go to Interface> VLAN 

  • Click "+" button 
  • Name: Set name of vlan
  • VLAN ID: Set id of Vlan
  • Inteface: Select interface to access Vlan
  • We can add more vlan if you need, depend on you environment
  • Results

4.Set ip address to Vlan 10,20,30
  • Go IP > Address > "+" button 
  • Address: set vlan10 Ex. 10.10.10.1/24
  • Network: 10.10.10.0
  • Inferface: vlan10


  • Vlan 20 and 30 do the same vlan10
  • Result

5. Configure DHCP Server
  • Go to IP  > DHCP Server > DHCP Setup 
  • DHCP Server Interface: Select vlan10
  • Click Next

  • DHCP Address Space: Keep  default 

  • Click Next
  • Gateway for DHCP Network: Keep default

  • Click Next
  • Address to Give Out: Depend on your einvironment ex: Start form: 10.10.10.2-10.10.10.254
  • Click Next
  • DNS Server: Set your DNS server or DNS from ISP offer 

  • Click Next
  • Lease Time: set depend on your environment EX: We set 1day

  • Click Next
  • Setup has completed successfully

  • DHCP Sever for vlan 20 and 30 do the same vlan10
  • Result


Configure Mikrotik Core_Switch

1. Create Bridge
  • Open windbox 
  • log in to MikroTik Core_Switch via IP address or MAC Address

  • Go to Bridge click "+" button 
  • Set name: set bridge name ex: bridge1
  • Click Ok


2. Add ports to bridge with Vlan id
  • Go to Bridge Ports tap
  • click "+" button 
  • Interface: ether1 make as trunk ports
  • click Ok

  • Add ether2 for vlan10
  • Add ether3 for vlan20
  • Add ether4 for vlan30
  • Go to Bridge Ports tap
  • Interface: ether2 for access vlan10
  • Bridge: bridge1

  • Go to Vlan tap 
  • PVID: Set your vlan ex: vlan id: 10

  • Vlan 20 and 30 do the same vlan10
  • Result

3. Assing ports for each vlan, ether2 for vlan10, ether2 for vlan20, ehter3 for vlan30
  • Go to Bridge > VLANs 
  • Click "+" button 

  • Bridge: select bridge name
  • VLAN IDs: set your vlan ex: 10
  • Tagged: ether1, becasue ehter1 as trunk ports
  • Untagged: ether2, for access vla 10
  • Click Ok

  • Assing vlan20 and vlan30 do the same vlan10
  • Result

4- Active Vlan
  • Go to Bridge > Bridge > duuble click bridge1 > Vlan
  • Click VLAN filtering

  • Finally client can communicate with vlan


Post a Comment

Previous Post Next Post

Contact Form