User Tools

Site Tools


networking:router:mikrotik_ap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:router:mikrotik_ap [2022/12/29 13:01]
gcooper
networking:router:mikrotik_ap [2022/12/29 13:22] (current)
gcooper
Line 15: Line 15:
 For a simple home AP, you can **default the programming (factory reset) and select ''No Default Configuration''**, then modify and apply this simple script. For a simple home AP, you can **default the programming (factory reset) and select ''No Default Configuration''**, then modify and apply this simple script.
  
 +  * Bridges all ports to the LAN 
 +  * ''ether1'' connects to LAN and PoE 
 +  * ''ether2'' can be used to daisy-chain another AP or device 
 +  * Permits management on all ports 
 +  * WPA2 security with a pre-shared key 
 +  * Sets AP as DHCP client for IP address 
 +    * Use DHCP reservation if desired 
 +  * Sets AP hostname
  
 <file> <file>
-/interface bridge +# Create a LAN bridge 
-add name=LAN+/interface bridge add name=LAN 
 + 
 +# Configure wireless security
 /interface wireless security-profiles /interface wireless security-profiles
 set [ find default=yes ] supplicant-identity=MikroTik set [ find default=yes ] supplicant-identity=MikroTik
-add authentication-types=wpa2-psk mode=dynamic-keys name=Secure supplicant-identity="" wpa2-pre-shared-key=<YourWiFiPassword>+add authentication-types=wpa2-psk mode=dynamic-keys name=Secure supplicant-identity="" 
 +  wpa2-pre-shared-key=<YourWiFiPassword> 
 + 
 +# Configure wireless interfaces - SSIDs can be the same
 /interface wireless /interface wireless
-set [ find default-name=wlan1 ] band=2ghz-b/g/n country="united states" disabled=no mode=ap-bridge security-profile=Secure ssid=Cooper-2GHz +set [ find default-name=wlan1 ] band=2ghz-b/g/n country="united states" disabled=no mode=ap-bridge 
-set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX disabled=no mode=ap-bridge security-profile=Secure ssid=Cooper-5GHz +  security-profile=Secure ssid=<Your-2GHz-Network-Name> 
-/ip hotspot profile +set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX disabled=no mode=ap-bridge 
-set [ find default=yes ] html-directory=hotspot +  security-profile=Secure ssid=<Your-5GHz-Network-Name> 
-/interface bridge port + 
-add bridge=LAN interface=all +# Add all interfaces to the bridge 
-/ip dhcp-client +/interface bridge port add bridge=LAN interface=all 
-add disabled=no interface=LAN + 
-/system identity +# Enable DHCP client so AP gets a management address 
-set name=<YourAPHostname>+/ip dhcp-client add disabled=no interface=LAN 
 + 
 +# Set the AP hostname 
 +/system identity set name=<YourAPHostname>
 </file> </file>
  
networking/router/mikrotik_ap.1672344084.txt.gz · Last modified: 2022/12/29 13:01 by gcooper