Type Here to Get Search Results !

Konfigurasi VLAN pada MiroTik

Support VLAN (Hardware Offload)

RB931-2nD


/interface vlan

add interface=ether2 name=vlan100 vlan-id=100

add interface=ether2 name=vlan200 vlan-id=200


/ip address

add address=192.168.100.1/24 interface=vlan100 

add address=192.168.200.1/24 interface=vlan200 


[admin@MikroTik] > ip dhcp-server setup 

Select interface to run DHCP server on 

dhcp server interface: vlan100


[admin@MikroTik] > ip dhcp-server setup 

Select interface to run DHCP server on 

dhcp server interface: vlan200


RB952Ui-5ac2nD (Hardware Offload)

/interface bridge

add name=bridge1


/interface bridge port

add bridge=bridge1 interface=ether1

add bridge=bridge1 interface=ether2

add bridge=bridge1 interface=ether3


/interface ethernet switch vlan

add ports=ether1,ether2 switch=switch1 vlan-id=100

add ports=ether1,ether3 switch=switch1 vlan-id=200


/interface ethernet switch port

set 0 vlan-header=add-if-missing vlan-mode=secure (ether1 mode trunking)

set 1 default-vlan-id=100 vlan-header=always-strip vlan-mode=secure (ether2 mode access)

set 2 default-vlan-id=200 vlan-header=always-strip vlan-mode=secure (ether3 mode access)