This shows you the differences between two versions of the page.
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 '' | For a simple home AP, you can **default the programming (factory reset) and select '' | ||
+ | * Bridges all ports to the LAN | ||
+ | * '' | ||
+ | * '' | ||
+ | * 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 | ||
< | < | ||
- | /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="" | + | add authentication-types=wpa2-psk mode=dynamic-keys name=Secure supplicant-identity="" |
+ | | ||
+ | |||
+ | # Configure wireless interfaces - SSIDs can be the same | ||
/interface wireless | /interface wireless | ||
- | set [ find default-name=wlan1 ] band=2ghz-b/ | + | set [ find default-name=wlan1 ] band=2ghz-b/ |
- | set [ find default-name=wlan2 ] band=5ghz-a/ | + | |
- | /ip hotspot profile | + | set [ find default-name=wlan2 ] band=5ghz-a/ |
- | set [ find default=yes ] html-directory=hotspot | + | |
- | /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=< | + | /ip dhcp-client add disabled=no interface=LAN |
+ | |||
+ | # Set the AP hostname | ||
+ | /system identity set name=< | ||
</ | </ | ||