I'm totally new to Mikrotik. I'm practicing with a RB 3011 Routerboard which i've connected to my home router.
I've already made a bridge(ports ether1-5) with DHCP relay to my home router which works fine.
What i want to do now, is set vlan81 interface as a DHCP server at ether6 and use my laptop from that port to access the Internet.
My configuration though does not seems to work for making the vlan a DHCP server.
Here it is:
/interface bridge
add fast-forward=no name=bridge1
/interface ethernet
set [ find default-name=ether1 ] name=ether1_1stBridge
set [ find default-name=ether2 ] name=ether2_1stBridge
set [ find default-name=ether3 ] name=ether3_1stBridge
set [ find default-name=ether4 ] name=ether4_1stBridge
set [ find default-name=ether5 ] name=ether5_1stBridge
set [ find default-name=ether8 ] name=ether8_2ndBridge
set [ find default-name=ether9 ] name=ether9_2ndBridge
set [ find default-name=ether10 ] name=ether10_2ndBridge
/interface vlan
add interface=ether6 name=vlan81 vlan-id=81
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=pool81 ranges=172.17.81.10-172.17.81.254
/ip dhcp-server
add add-arp=yes address-pool=pool81 disabled=no interface=vlan81 name=server81
/interface bridge port
add bridge=bridge1 interface=ether1_1stBridge
add bridge=bridge1 interface=ether2_1stBridge
add bridge=bridge1 interface=ether3_1stBridge
add bridge=bridge1 interface=ether4_1stBridge
add bridge=bridge1 interface=ether5_1stBridge
/ip address
add address=172.17.7.252/24 interface=bridge1 network=172.17.7.0
add address=172.17.81.1/24 interface=ether6 network=172.17.81.0
/ip dhcp-relay
add dhcp-server=172.17.7.254 disabled=no interface=bridge1 name=relay1
/ip dhcp-server network
add address=172.17.81.0/24 dns-server=172.17.81.1 gateway=172.17.81.1
/ip dns
set allow-remote-requests=yes servers=172.17.7.254
/ip firewall nat
add action=masquerade chain=srcnat out-interface=bridge1
/ip route
add distance=1 gateway=bridge1 pref-src=172.17.7.252
Any help would be reeeeeeeeeeally appreciated.
Code: Select all