I'm trying to configure my first VLAN on Mikrotik, I'm facing this issue for several days but I'm still having trouble with it.
I have followed a lot of guides, including the VLAN bible, and tried many different configs but nothing happened: the client on VLAN 103 doesn't get the IP address from my DHCP server.
I just would like to set one DHCP on one of the interfaces.
Please help!
This is my config:
Code: Select all
/interface bridge
add name=trunk vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] disable-running-check=no name=LAN
set [ find default-name=ether2 ] disable-running-check=no name=WAN
set [ find default-name=ether3 ] disable-running-check=no
/interface vlan
add interface=WAN name=vlan-80 vlan-id=80
add interface=trunk name=vlan-103 vlan-id=103
/ip pool
add name=dhcp_pool1 ranges=192.168.103.2-192.168.103.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=vlan-103 name=dhcp1
/interface bridge port
add bridge=trunk interface=ether3
/interface bridge vlan
add bridge=trunk vlan-ids=1
add bridge=trunk tagged=ether3,trunk vlan-ids=103
/interface detect-internet
set lan-interface-list=all wan-interface-list=all
/ip address
add address=192.168.103.1/24 interface=vlan-103 network=192.168.103.0
/ip dhcp-client
add disabled=no interface=LAN
add disabled=no interface=vlan-80
/ip dhcp-server network
add address=192.168.103.0/24 gateway=192.168.103.1
/ip dns
set allow-remote-requests=yes servers=192.168.103.1
/ip firewall filter
add action=accept chain=input comment="Allow Estab & Related" \
connection-state=established,related in-interface=all-ethernet
add action=accept chain=forward comment="Allow Estab & Related" \
connection-state=established,related in-interface=all-ethernet
/ip firewall nat
add action=masquerade chain=srcnat comment="Default masquerade" \
out-interface-list=all