Skip to content

Lab 05-01 · Wireless basics and your radio name

MTCNA

Module 5 · Wireless. Official course slides 188–199: wireless standards, 2.4 GHz and 5 GHz channels, country regulations and DFS, and the Radio name LAB (slide 199). Station mode and security (slides 205–208) are used here to join the class AP.

Real hardware in class

This lab is config-only: it is done on the real MikroTik router on your desk. The virtual routers we use in other labs (CHR) have no radio, so they cannot do WiFi.

How many times have you connected to WiFi today? Home, the bus, the school, a friend's flat... Your phone did it without asking you anything. But look at the list of networks your phone sees: MOVISTAR_8A21, DIRECT-roku-447, iPhone de Laura, eduroam. Dozens of invisible radios, all talking at the same time in the same air. How do they not trip over each other?

Today you will open the radio of a MikroTik router, connect it as a client to the teacher's WiFi, and give it a name so the teacher can tell which of the twenty routers in the room is yours.

What you will learn

  • Explain what a frequency band and a channel are, and why 2.4 GHz has only 3 non-overlapping channels
  • Read a WiFi standard name (802.11n, ac, ax) and its generation name (WiFi 4, 5, 6)
  • Tell an access point from a station, and what an SSID is
  • Explain why the country setting matters, and what DFS does on 5 GHz
  • Know which MikroTik WiFi menu your router uses: /interface wifi (new) or /interface wireless (legacy)
  • Make your router recognisable to the class AP (radio name, and the trap: it does not exist in the new menu)

WiFi is radio

Our analogy for the whole lab: FM radio in a car.

WiFi is a family of standards that lets devices exchange network data using radio waves instead of a cable. The standards are written by the IEEE under the number 802.11; "Wi-Fi" is the brand of the Wi-Fi Alliance, which certifies that devices follow them.

When you tune a car radio, you pick a waveband (FM or AM) and then a station inside it (for example 98.0 MHz). WiFi works the same way:

Car radio WiFi Example
Waveband (FM, AM) Frequency band 2.4 GHz, 5 GHz, 6 GHz
A station's frequency Channel channel 1 = 2412 MHz
The station's name on the display SSID (network name) ClassAP
The radio studio broadcasting Access point (AP) the teacher's router
Your car radio, listening Station (client) your phone, your router today

The big difference: a car radio only listens. A WiFi station also talks back, on the same channel. That is why WiFi gets slow when many devices share one channel: they have to take turns.

What does GHz mean?

A radio wave is a vibration. Hertz (Hz) counts vibrations per second; 1 GHz (gigahertz) is one thousand million per second. 2.4 GHz means the wave vibrates about 2 400 000 000 times per second. Higher frequency carries more data, but goes through walls worse: that is why 5 GHz is faster but dies two rooms away, while 2.4 GHz reaches the garden.

The standards: from 802.11b to WiFi 7

Each new 802.11 standard added speed. Since 2018 the Wi-Fi Alliance also gives them simple generation numbers.

IEEE standard Generation name Year Bands Max. speed (theory)
802.11b — 1999 2.4 GHz 11 Mbps
802.11a — 1999 5 GHz 54 Mbps
802.11g — 2003 2.4 GHz 54 Mbps
802.11n WiFi 4 2009 2.4 and 5 GHz 600 Mbps
802.11ac WiFi 5 2013 5 GHz 6933 Mbps
802.11ax WiFi 6 (6E in 6 GHz) 2021 2.4, 5 and 6 GHz 9.6 Gbps
802.11be WiFi 7 newest 2.4, 5 and 6 GHz even more

The speed on the box is a lie (a legal one)

"Up to 600 Mbps" adds up the best case: several antennas in parallel (MIMO, multiple input multiple output), the widest channel, the best signal, no neighbours. A single antenna chain of 802.11n tops out at 72.2 Mbps on a 20 MHz channel. Real speeds are usually half of the link rate or less, because the air is shared and every frame needs an acknowledgement. And remember the ÷8 trap: 600 Mbps is 75 MB/s at best.

Channels: 2.4 GHz is crowded

The 2.4 GHz band is narrow: in Europe it holds 13 channels, each 5 MHz apart (channel 1 = 2412 MHz, 6 = 2437 MHz, 11 = 2462 MHz, 13 = 2472 MHz). But a WiFi transmission is 20 to 22 MHz wide, so it spills over its neighbours. Only channels 1, 6 and 11 do not overlap: three APs on 1, 6 and 11 can share a room without interfering. Channel 14 exists only in Japan, and the USA uses only 1–11.

flowchart LR
    subgraph B24["<b>2.4 GHz band</b> (2400-2483.5 MHz)"]
        C1["<b>ch 1</b><br>2412 MHz"]
        C6["<b>ch 6</b><br>2437 MHz"]
        C11["<b>ch 11</b><br>2462 MHz"]
    end
    C1 -. "25 MHz apart:<br>no overlap" .- C6
    C6 -. "25 MHz apart:<br>no overlap" .- C11

The 5 GHz band is much wider: channels 36–64 (5180–5320 MHz), 100–144 (5500–5720 MHz) and 149–165 (5745–5825 MHz), depending on the country. Channels can be glued together into wider ones (channel width 20, 40, 80 or 160 MHz): wider is faster but uses up more of the band. In a classroom with twenty routers, narrow 20 MHz channels are the polite choice.

6 GHz (WiFi 6E and 7) is the newest band: in Europe 5945–6425 MHz was opened to WiFi in 2021. Our hAP ax² has no 6 GHz radio, so we will not use it.

Country rules and DFS

Radio is a shared, public resource, so every country decides which channels and how much power are legal. That is why RouterOS asks for a country: it then hides illegal channels and caps the transmit power.

Some 5 GHz channels are also used by radars (weather and military). On those channels (in the EU, 52–140) a WiFi AP must use DFS (Dynamic Frequency Selection): before transmitting it listens for 60 seconds (10 minutes on the weather-radar channels 120–128), and if it ever hears a radar it must jump to another channel. Channels 36–48 need no DFS, which is why we use them for quick classroom labs.

Careful: the country is not decoration

Setting a different country to unlock more power or channels is illegal and can interfere with radars. In class we always use Spain.

Access point and station

An access point (AP) creates a WiFi network and lets clients join it. A station is a client that joins an AP.

Your phone is always a station. Your home router is an AP. A MikroTik router can be either: in this module, your router starts as a station of the teacher's AP (it gets its Internet over WiFi, like a phone), and in Lab 05-03 it becomes an AP too.

To join a network a station needs three things: the band to listen on, the SSID to look for, and the password (the security settings; more in Lab 05-03). It does not need a channel: it scans all the channels of the band (its scan list) until it hears the SSID.

Two WiFi menus in RouterOS 7

MikroTik routers have two different WiFi drivers, with two different menus. The course slides (made with older routers) show the old one.

WiFi (new) Wireless (legacy)
CLI menu /interface wifi /interface wireless
WinBox menu WiFi Wireless
Interface names wifi1, wifi2 wlan1, wlan2
RouterOS package wifi-qcom (802.11ax), wifi-qcom-ac (some 802.11ac) wireless
Typical routers hAP ax², hAP ax³, cAP ax hAP ac², hAP ac lite, hAP lite
WPA3 yes no
Radio name, connect list no yes

Since RouterOS 7.13 both drivers are separate packages, and they cannot be active at the same time. Settings in the new menu are grouped in reusable profiles: security, channel, configuration and datapath (think of them as presets you then assign to a radio).

Which one do I have?

Open System → Packages (/system package print). If you see wifi-qcom or wifi-qcom-ac, use the WiFi tabs of this guide; if you see wireless, use the Legacy wireless tabs.

The scenario

The teacher's router (class-ap) broadcasts the network ClassAP on 2.4 GHz, channel 1. Your router r1 joins it as a station with its 2.4 GHz radio (wifi2 on the hAP ax², wlan1 on the hAP ac²; on another model, check which interface is which band in WiFi → Radios), gets an address 10.0.0.x by DHCP, and shares that Internet with your laptop on the LAN.

flowchart LR
    NET["<b>School network</b><br>Internet"] --- CAP
    subgraph CAP["<b>class-ap</b> (teacher)"]
        CAPW["AP <b>ClassAP</b><br>2.4 GHz, ch 1<br>10.0.0.1/24"]
    end
    CAPW -. "WiFi 2.4 GHz<br>WPA2/WPA3" .- R1W
    subgraph R1["<b>r1</b> (your router)"]
        R1W["wifi2 / wlan1<br><b>station</b><br>DHCP 10.0.0.x"]
        BR["bridge1<br>192.168.88.1/24"]
    end
    BR -- "cable to ether2" --- PC["<b>Your laptop</b><br>192.168.88.x (DHCP)"]
Node Role Address
class-ap teacher's router, AP ClassAP (config: initial/class-ap.rsc) 10.0.0.1/24, DHCP 10.0.0.100–200
r1 your router, station of ClassAP wifi2/wlan1 = 10.0.0.x (DHCP), bridge1 = 192.168.88.1/24
laptop your PC, cabled to ether2 (WinBox) 192.168.88.x (DHCP from r1)

Where is ether1?

On a real hAP the Internet port is ether1; in the virtual labs ether1 is reserved for the lab itself, so the Internet port is ether2 and the LAN ports start at ether3. This module is on real hardware and the Internet arrives over WiFi, so ether1 simply stays unused and the LAN is ether2–ether5.

Start the lab

Download the lab files and unzip them: 05-01-radio-name.zip. Open a terminal inside the 05-01-radio-name folder.

Every lab of this module ships two starting files: initial/r1.rsc (hAP ax², WiFi menu) and initial/r1-legacy-wireless.rsc (hAP ac², legacy menu). Pick yours.

  1. Plug your laptop into ether2, open WinBox and connect to the router (by MAC address if it has no IP yet).
  2. Drag the .rsc file into Files (or scp r1.rsc admin@192.168.88.1: from a terminal).
  3. Open New Terminal and reset the router, telling it to run your file after the reboot:
/system reset-configuration no-defaults=yes skip-backup=yes run-after-reset=r1.rsc
/system reset-configuration no-defaults=yes skip-backup=yes run-after-reset=r1-legacy-wireless.rsc

The router reboots (about one minute). The admin password goes back to the factory one (empty on older routers, the one on the sticker on newer ones). Reconnect WinBox to 192.168.88.1.

The teacher loads initial/class-ap.rsc on the class router the same way.

Step 1 · Check that you are a station of ClassAP

Why: before changing anything, prove the WiFi link works and learn where to read its state.

WinBox: WiFi → WiFi Interfaces (legacy: Wireless → WiFi Interfaces), then IP → DHCP Client.

/interface wifi print
/interface wifi monitor wifi2 once
/ip dhcp-client print
/interface wireless print
/interface wireless monitor wlan1 once
/ip dhcp-client print

Expected: the 2.4 GHz interface is running (flag R), monitor shows that the station is connected (legacy: status: connected-to-ess; WiFi: a state line saying it is running as a station), the SSID ClassAP, the channel (2412 MHz) and a signal like -45 dBm. The DHCP client is bound to an address 10.0.0.x.

Then test the Internet: ping 10.0.0.1 and ping www.mikrotik.com.

Signal strength is negative

Signal is measured in dBm, a logarithmic scale where 0 dBm is 1 milliwatt. A received WiFi signal is a tiny fraction of that, so it is negative: -40 is excellent, -67 is good, -80 is poor. Closer to zero is better.

Check yourself

Which channel (MHz) and which band is your router using to talk to ClassAP? Why didn't you have to choose that channel yourself?

Done when: your router has a 10.0.0.x address on the WiFi interface and ping www.mikrotik.com answers.

Step 2 · Look at the country and the channel

Why: the country decides which channels your router may use. Check it is Spain.

WinBox: double-click the interface → Configuration (WiFi) or Wireless tab, Advanced Mode (legacy).

/interface wifi configuration print
/interface wifi radio print detail
/interface wifi radio reg-info 0 country=Spain

(0 is the radio number shown by radio print; try 1 for the other radio.)

/interface wireless print detail where default-name=wlan1
/interface wireless info country-info spain

Expected: country=Spain (WiFi) or country=spain (legacy). radio print detail lists the bands and channels your hardware supports; reg-info (WiFi) and country-info (legacy) list the legal 2.4 GHz and 5 GHz channels and powers for Spain, including the ones marked for DFS.

Check yourself

Find two 5 GHz channels that need DFS in Spain. What would your AP do for the first 60 seconds on them?

Done when: you can say which country is set and name one DFS channel.

Step 3 · Set your radio name

Why: the teacher's AP sees twenty routers. In its registration table (the list of connected stations) it only sees MAC addresses like D4:CA:6D:E2:65:94. Which one is yours? The radio name solves that.

The radio name is a label your router sends to the AP, shown in the AP's registration table. It is a MikroTik extension: it only works between two RouterOS devices.

Use the course format YourNumber_YourName, for example 13_JohnDoe.

WinBox: Wireless → WiFi Interfaces → wlan1 → Wireless tab (Advanced Mode) → Radio Name.

/interface wireless set [find default-name=wlan1] radio-name=13_JohnDoe

The link reconnects for a moment. On the teacher's router, Wireless → Registration now shows 13_JohnDoe in the Radio Name column.

The new WiFi menu has no radio name (checked on RouterOS 7.23.8: /interface wifi set has no such property). Its registration table shows only MAC address, interface, SSID, signal, rates and uptime. So we make the router recognisable in two other ways:

  1. The identity (the router's name, System → Identity). MikroTik routers announce it to their neighbours with neighbour discovery, so the teacher sees it in IP → Neighbors, next to your MAC and 10.0.0.x address.
  2. A comment on the interface, for humans reading your config.
/system identity set name=13_JohnDoe
/interface wifi set [find default-name=wifi2] comment="uplink to ClassAP - 13_JohnDoe"

Your terminal prompt changes to [admin@13_JohnDoe].

Ask the teacher to show the registration table (and IP → Neighbors) of class-ap on the projector, and find yourself.

Check yourself

Write down the MAC address of your 2.4 GHz interface (/interface wifi print or /interface wireless print). Is it the same MAC the teacher sees in the registration table?

Done when: the teacher can find 13_JohnDoe (your number and name) on the class router.

If something goes wrong

Symptom Likely cause Fix
WiFi interface not running, searching-for-network wrong SSID (it is case-sensitive: ClassAP) or wrong password /interface wifi configuration print, /interface wifi security print (legacy: security-profiles print) and compare
The .rsc did not apply: no bridge1, no WiFi config you reset with defaults, or the file name is wrong repeat the reset with no-defaults=yes and the exact file name shown in Files
bad command name wifi your router uses the legacy package use the Legacy wireless tab and r1-legacy-wireless.rsc
bad command name wireless your router uses the new WiFi package use the WiFi tab and r1.rsc
DHCP client stays searching the link is up but the AP is not answering DHCP check class-ap is running its DHCP server; disable/enable the client
Radio name not visible on the AP the AP uses the new WiFi package, which has no radio-name column look in IP → Neighbors of the AP instead

Clean up

Nothing to undo: the next lab starts from its own initial/ file. If you want to go back to this starting point, run the same reset with run-after-reset=r1.rsc (or r1-legacy-wireless.rsc) again.

Key takeaways

  • WiFi is radio: a band (2.4, 5, 6 GHz) is divided into channels; higher bands are faster but reach less far through walls.
  • In 2.4 GHz only channels 1, 6 and 11 do not overlap; 5 GHz has many more channels, some needing DFS radar detection.
  • The country setting keeps your router legal: it limits channels and transmit power.
  • An access point creates a network with an SSID; a station scans its scan list and joins it.
  • RouterOS 7 has two WiFi menus: /interface wifi (wifi-qcom packages, WPA3) and the legacy /interface wireless used by the course slides.
  • The radio name labels your router in a RouterOS AP's registration table; the new WiFi menu has none, so use the identity and IP → Neighbors.

Quick check

1. Which three 2.4 GHz channels can three APs use in the same room without overlapping?
  • 1, 6 and 11
  • 1, 2 and 3
  • 4, 8 and 12
  • 36, 40 and 44

A 2.4 GHz transmission is about 20–22 MHz wide but the channels are only 5 MHz apart, so neighbours overlap. Channels 1, 6 and 11 are 25 MHz apart. Channels 36–44 belong to the 5 GHz band.

2. Why does a 5 GHz network usually reach fewer rooms than a 2.4 GHz one?
  • Higher-frequency radio waves go through walls worse
  • 5 GHz routers are limited to half the power by law
  • 5 GHz only works with WPA3 encryption
  • 5 GHz channels are narrower than 2.4 GHz channels

A higher frequency carries more data but is absorbed more by walls and furniture. That is the trade-off: 5 GHz is faster, 2.4 GHz reaches further.

3. What is a station in WiFi?
  • A client device that joins a network created by an access point
  • The device that broadcasts the SSID of the network
  • A channel reserved for MikroTik routers
  • The cable that connects an access point to the switch

A station is a client: your phone, your laptop, or a router in station mode. The access point is the one that creates the network and broadcasts its SSID.

4. What does DFS make an access point do on channels shared with radars?
  • Listen for radars before transmitting and change channel if one appears
  • Lower its speed to 11 Mbps so radars are not disturbed
  • Hide its SSID while a radar is nearby
  • Switch automatically to the 2.4 GHz band for 60 seconds

DFS (Dynamic Frequency Selection) makes the AP listen first (60 s, or 10 minutes on weather-radar channels) and jump to another channel if it detects a radar. That is why an AP on a DFS channel takes a minute to appear.

5. Your router shows the menu /interface wifi but not /interface wireless. What can you conclude?
  • It runs the new WiFi driver package, so it has no radio name or connect list
  • It is broken, because every MikroTik must have /interface wireless
  • It runs the legacy wireless package with WPA3 disabled
  • It can only work as a station, never as an access point

The WiFi packages (wifi-qcom, wifi-qcom-ac) and the legacy wireless package cannot be active together. The new menu supports WPA3 but has no radio name and no connect list; it can be an AP or a station.

6. Why must you set the country of your WiFi interface to Spain?
  • It applies the channels and maximum power that are legal in Spain
  • It translates the WinBox menus into Spanish
  • It makes the router choose the fastest channel in Europe
  • It is needed to get an IP address from the DHCP server

The country setting applies the regulatory domain: which channels are allowed, which need DFS, and the maximum transmit power. Choosing another country to get more power is illegal.

7. A friend's router says 'up to 1200 Mbps'. On a speed test from her laptop over WiFi she gets 300 Mbps. Pick the two true statements.
  • The box figure assumes ideal conditions such as many antennas and wide channels
  • The air is shared and every frame needs an acknowledgement, so real speed is lower
  • The router is faulty, because WiFi always reaches its maximum speed
  • Her laptop must be connected in 6 GHz, which is limited to 300 Mbps

The speed on the box is a theoretical maximum (MIMO, widest channel, perfect signal). In real life the medium is shared and has overhead, so getting a quarter or half of the link rate is normal.

8. The teacher's AP runs the legacy wireless package. Where will it show the radio name 13_JohnDoe that you set on your router?
  • In the Radio Name column of its registration table
  • In the SSID of the class network
  • In the DHCP server leases, as the client hostname
  • In the interface name of the teacher's WiFi card

The radio name is sent from one RouterOS device to another and appears in the registration table of the AP (Wireless → Registration), next to your MAC address.

Your router now speaks WiFi as a client and has a name. In the next lab you will learn to tell it which access points it must not join.