Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| lwc:hardware:networking:mikrotik [2026/08/06 20:50] – John Harrison | lwc:hardware:networking:mikrotik [2026/10/17 22:22] (current) – John Harrison | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| sudo make install | sudo make install | ||
| </ | </ | ||
| + | ====== Maplite Intranet Reference ====== | ||
| + | |||
| + | ===== Overview ===== | ||
| + | |||
| + | Maplite B is the gateway: it joins the upstream wifi as a client, NATs, and runs DHCP. Everything else uses B as gateway and DNS. | ||
| + | |||
| + | ^ Device ^ Address ^ Role ^ | ||
| + | | Main machine | 10.42.0.99 (static) | Gateway 10.42.0.71, DNS 10.42.0.71 | | ||
| + | | Maplite A | 10.42.0.139 (static) | Gateway and DNS 10.42.0.71 | | ||
| + | | Maplite B | 10.42.0.71 | Wifi client, NAT, DHCP server, DNS | | ||
| + | | Maplite C | 10.42.0.72 (static) | Gateway and DNS 10.42.0.71 | | ||
| + | | DHCP pool | 10.42.0.150 - 10.42.0.199 | Served by B | | ||
| + | | Free for static units | 10.42.0.73 - 10.42.0.98 | Use these for new maplites | | ||
| + | |||
| + | Path to the internet: main machine -> A -> powerline -> B -> upstream wifi -> internet. | ||
| + | |||
| + | ===== 1. Adding a wifi network to B ===== | ||
| + | |||
| + | Use an interactive session so the password stays out of shell history: | ||
| + | |||
| + | <code bash> | ||
| + | ssh admin@10.42.0.71 | ||
| + | </ | ||
| + | |||
| + | Then run these two lines per network. The profile name is only a label: it must be unique and the same in both lines. Increment it ('' | ||
| + | |||
| + | < | ||
| + | /interface wireless security-profiles add name=wifi2 mode=dynamic-keys authentication-types=wpa2-psk wpa2-pre-shared-key=" | ||
| + | /interface wireless connect-list add interface=wlan1 ssid=" | ||
| + | </ | ||
| + | |||
| + | Notes: | ||
| + | * The mAP lite is **2.4 GHz only**. Choose the SSID that broadcasts on 2.4. | ||
| + | * For an open network use '' | ||
| + | * Reusing an existing profile name fails with " | ||
| + | * Put the preferred network first in the connect-list. | ||
| + | |||
| + | === View what is saved === | ||
| + | |||
| + | < | ||
| + | /interface wireless connect-list print | ||
| + | /interface wireless security-profiles print proplist=name, | ||
| + | /interface wireless registration-table print | ||
| + | </ | ||
| + | |||
| + | * The connect-list shows each saved SSID, its profile and the order. | ||
| + | * '' | ||
| + | * The registration table shows which network B is currently joined to. | ||
| + | * The '' | ||
| + | |||
| + | === Remove a network === | ||
| + | |||
| + | < | ||
| + | /interface wireless connect-list remove [find ssid=" | ||
| + | /interface wireless security-profiles remove [find name=wifi2] | ||
| + | </ | ||
| + | |||
| + | ===== 2. Adding another maplite (configured like C) ===== | ||
| + | |||
| + | ==== Choose an address ==== | ||
| + | |||
| + | Pick one outside the DHCP pool (.150-.199) and not already in use (.71, .72, .99, .139). Use .73, .74, ... in order. | ||
| + | |||
| + | ==== Plug in and reach the unit ==== | ||
| + | |||
| + | * Plug it into the chain (powerline or ethernet). | ||
| + | * If its DHCP client is on (A's factory config was), it gets a lease from B. Find it on B with ''/ | ||
| + | * Otherwise it is at its default address, usually 192.168.88.1. Give your machine a temporary address on that subnet to reach it. | ||
| + | * A factory-fresh unit has not been checked on this network, so confirm which of these applies. | ||
| + | |||
| + | ==== Static configuration ==== | ||
| + | |||
| + | Replace '' | ||
| + | |||
| + | < | ||
| + | /ip dhcp-client remove [find]; /ip address remove [find where interface=bridge or interface=wlan1]; | ||
| + | </ | ||
| + | |||
| + | The same commands work as separate lines, but only if you **paste them all at once**, not type them one by one: | ||
| + | |||
| + | < | ||
| + | /ip dhcp-client remove [find] | ||
| + | /ip address remove [find where interface=bridge or interface=wlan1] | ||
| + | /ip address add address=10.42.0.73/ | ||
| + | /ip route add dst-address=0.0.0.0/ | ||
| + | /ip dns set servers=10.42.0.71 | ||
| + | </ | ||
| + | |||
| + | If you are already connected on the address the unit should keep (for example a DHCP lease you want to make permanent), the session will not drop. Typing the lines one at a time is then fine, but do the '' | ||
| + | |||
| + | If you reach the unit on a different address (for example 192.168.88.1), | ||
| + | |||
| + | ==== Optional extras ==== | ||
| + | |||
| + | < | ||
| + | /system identity set name=maplite-D | ||
| + | /user set admin password=" | ||
| + | /interface wireless cap set enabled=no | ||
| + | </ | ||
| + | |||
| + | * Name the unit so it is easy to tell apart (all units default to " | ||
| + | * Change the default login password. | ||
| + | * Turn off the factory CAP mode. | ||
| + | |||
| + | ==== Check it ==== | ||
| + | |||
| + | < | ||
| + | /ping 10.42.0.71 count=3 | ||
| + | /ping google.com count=3 | ||
| + | </ | ||
| + | |||
| + | ===== 3. Gotchas ===== | ||
| + | |||
| + | * **Address on a bridge slave:** on C the address is attached to '' | ||
| + | * **Two DHCP servers:** never run B's DHCP server and a " | ||
| + | * **Shared SSH sessions** ('' | ||
| + | * **If a unit is unreachable: | ||
| + | |||