This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_sonora [2012/12/07 10:16] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Sonora Comm Default MikroTik Configuration Script ====== | ||
- | |||
- | See also **[[networking: | ||
- | |||
- | http:// | ||
- | |||
- | ===== Configuration Procedure ===== | ||
- | |||
- | - Reset the router to **no configuration** | ||
- | * ''/ | ||
- | * If you don't completely erase the configuration, | ||
- | - Copy, edit and save the script as '' | ||
- | - Reconnect to the router using Winbox | ||
- | - Drag and drop the script into the File List window | ||
- | - Import the script | ||
- | * ''/ | ||
- | |||
- | ===== Script ===== | ||
- | |||
- | < | ||
- | /interface bridge | ||
- | add l2mtu=1598 name=bridge-local protocol-mode=rstp | ||
- | /interface wireless | ||
- | set 0 band=2ghz-b/ | ||
- | disabled=no distance=indoors ht-rxchains=0, | ||
- | mode=ap-bridge ssid=MyWIFI tx-power-mode=card-rates wireless-protocol=any | ||
- | /interface ethernet | ||
- | set 0 name=ether1-gateway | ||
- | set 1 name=ether2-master-local | ||
- | set 2 master-port=ether2-master-local name=ether3-slave-local | ||
- | set 3 master-port=ether2-master-local name=ether4-slave-local | ||
- | set 4 master-port=ether2-master-local name=ether5-slave-local | ||
- | /interface wireless security-profiles | ||
- | set [ find default=yes ] authentication-types=wpa-psk, | ||
- | dynamic-keys wpa-pre-shared-key=baaaaaaaad wpa2-pre-shared-key=baaaaaaaad | ||
- | /ip hotspot user profile | ||
- | set [ find default=yes ] idle-timeout=none keepalive-timeout=2m | ||
- | /ip pool | ||
- | add name=dhcp_pool1 ranges=192.168.1.65-192.168.1.199 | ||
- | /ip dhcp-server | ||
- | add address-pool=dhcp_pool1 disabled=no interface=bridge-local name=dhcp1 | ||
- | /interface bridge port | ||
- | add bridge=bridge-local interface=ether2-master-local | ||
- | add bridge=bridge-local interface=wlan1 | ||
- | /ip address | ||
- | add address=192.168.1.1/ | ||
- | /ip dhcp-client | ||
- | add comment=" | ||
- | /ip dhcp-server network | ||
- | add address=192.168.1.0/ | ||
- | /ip dns | ||
- | set allow-remote-requests=yes | ||
- | /ip dns static | ||
- | add address=192.168.1.1 name=router | ||
- | /ip firewall filter | ||
- | add chain=input comment=" | ||
- | add chain=input comment=" | ||
- | add chain=input comment=" | ||
- | add chain=input comment=" | ||
- | 209.193.64.248/ | ||
- | add action=drop chain=input comment=" | ||
- | ether1-gateway | ||
- | /ip firewall nat | ||
- | add action=masquerade chain=srcnat comment=" | ||
- | out-interface=ether1-gateway to-addresses=0.0.0.0 | ||
- | /ip neighbor discovery | ||
- | set ether1-gateway disabled=yes | ||
- | set wlan1 disabled=yes | ||
- | /system clock | ||
- | set time-zone-name=America/ | ||
- | /system leds | ||
- | set 0 interface=wlan1 | ||
- | /system ntp client | ||
- | set enabled=yes mode=unicast primary-ntp=199.102.46.73 secondary-ntp=\ | ||
- | 64.16.214.60 | ||
- | /tool mac-server | ||
- | add disabled=no interface=ether2-master-local | ||
- | add disabled=no interface=ether3-slave-local | ||
- | add disabled=no interface=ether4-slave-local | ||
- | add disabled=no interface=ether5-slave-local | ||
- | add disabled=no interface=wlan1 | ||
- | add disabled=no interface=bridge-local | ||
- | /tool mac-server mac-winbox | ||
- | set [ find default=yes ] disabled=yes | ||
- | add interface=ether2-master-local | ||
- | add interface=ether3-slave-local | ||
- | add interface=ether4-slave-local | ||
- | add interface=ether5-slave-local | ||
- | add interface=wlan1 | ||
- | add interface=bridge-local | ||
- | /user set admin password=bad1egg! | ||
- | </ | ||