/ip address add address=192.168.100.1/24 network=192.168.100.0 interface=ether1
/ip pool add name=dhcp_pool range=192.168.100.100-192.168.100.125
/ip dhcp-server add name=dhcp1 interface=ether1 lease-time=24:00:00 address-pool=dhcp_pool
/ip dhcp-server enable dhcp1
/ip dhcp-server network add address=192.168.100.0/24 gateway=192.168.100.1 dns-server=176.98.120.249,176.98.120.248
/interface pppoe-client add name=pppoe-out interface=wlan1 dial-on-demand=no add-default-route=yes use-peer-dns=yes user=test123 password=test123
/interface pppoe-client enable pppoe-out
/ip firewall nat add chai=srcnat src-address=192.168.100.0/24 out-interface=pppoe-out action=masquerade
/ip upnp interfaces add interface=ether1 type=internal
/ip upnp interfaces add interface=pppoe-out type=external
/ip upnp set enable=yes
/interface wireless set number=0  mode=station band=5ghz-a/n wireless-protocol=any country=poland ht-txchains=(0,1) ht-rxchains=(0,1)ht-ampdu-priorities=(0,1,2,3,4,5)   
/interface wireless enable number=0
/system ntp client set enable=yes mode=unicast primary-ntp=80.50.231.226 secondary-ntp=10.0.0.1
/system clock set time-zone-name=Europe/Warsaw
/system script add name=dzien source="/queue tree set Download max-limit=2M"
/system script add name=noc source="/queue tree set Download max-limit=4M"
/system scheduler add name=schedule1 start-date=Jan/01/1970 start-time=10:00:00 interval=1d on-event=dzien
/system scheduler add name=schedule1 start-date=Jan/01/1970 start-time=23:00:00 interval=1d on-event=noc
/system script run 1mangle
/system script run 2queues


