LEDs
TL;DR (Quick Start)
Section titled âTL;DR (Quick Start)âFor the impatient: configure LED for interface activity.
# Show available LEDs/system/leds/print
# Set LED to show interface activity/system/leds/add leds=user-led interface=ether1 type=interface-activityTurn off all LEDs (dark mode):
/system/leds/settings/set all-leds-off=immediateOverview
Section titled âOverviewâWhat this does: RouterOS allows configuring each LEDâs behavior to display interface activity, wireless signal strength, modem signal, or custom on/off states controlled by scripts.
When to use this:
- Indicating network activity on specific interfaces
- Displaying wireless or LTE signal strength
- Creating an âinternet connectedâ indicator
- Reducing light pollution with dark mode
- Custom status indicators via scripts
Prerequisites:
- Device with configurable LEDs (most RouterBOARDs)
- Knowledge of available LED names on your device
LED Types
Section titled âLED Typesâ| Type | Description |
|---|---|
interface-activity | Blinks on interface traffic (TX/RX) |
interface-receive | Blinks on incoming traffic only |
interface-transmit | Blinks on outgoing traffic only |
interface-speed | Indicates link speed |
interface-speed-1G | On when link is 1 Gbps |
interface-status | On when interface is up |
wireless-status | On when wireless is enabled |
wireless-signal-strength | Multiple LEDs show signal level |
modem-signal | Multiple LEDs show LTE/modem signal |
modem-technology | Indicates modem connection type |
flash-access | Blinks on flash/disk access |
poe-out | Indicates PoE output status |
poe-fault | Indicates PoE fault |
fan-fault | Indicates fan failure |
ap-cap | CAPsMAN managed AP indicator |
on | LED always on |
off | LED always off |
Configuration Steps
Section titled âConfiguration StepsâStep 1: List Available LEDs
Section titled âStep 1: List Available LEDsâView LEDs on your device:
/system/leds/printExample output:
Flags: X - disabled # LEDS TYPE INTERFACE 0 user-led interface-activity ether1 1 led1 wireless-signal-strength wlan1Step 2: Configure LED Behavior
Section titled âStep 2: Configure LED BehaviorâSet an LED to show interface activity:
/system/leds/set [find leds=user-led] type=interface-activity interface=ether1Or add a new configuration:
/system/leds/add leds=user-led type=interface-activity interface=ether1Step 3: Verify Configuration
Section titled âStep 3: Verify Configurationâ/system/leds/printCommon Scenarios
Section titled âCommon ScenariosâScenario: Interface Activity Indicator
Section titled âScenario: Interface Activity IndicatorâShow traffic on a specific interface:
/system/leds/add leds=user-led interface=ether1 type=interface-activityScenario: Wireless Signal Strength
Section titled âScenario: Wireless Signal StrengthâDisplay WiFi signal using multiple LEDs:
/system/leds/add leds=led1,led2,led3,led4,led5 interface=wlan1 type=wireless-signal-strengthMore LEDs light up as signal strength increases.
Scenario: LTE/Modem Signal Strength
Section titled âScenario: LTE/Modem Signal StrengthâConfigure LEDs for LTE signal indication:
/system/leds/add leds=led1,led2,led3,led4,led5 interface=lte1 \ type=modem-signal modem-signal-treshold=-91Signal range [-91..-51] is divided among LEDs:
- First LED: Signal above -91 dBm
- Last LED: Signal at -51 dBm (excellent)
Scenario: Internet Connection Indicator
Section titled âScenario: Internet Connection IndicatorâUse Netwatch to control LED based on internet connectivity:
Step 1: Create LED configuration
/system/leds/add leds=user-led type=on disabled=noNote the entry number (e.g., 0).
Step 2: Configure Netwatch
/tool/netwatch/add host=8.8.8.8 interval=10s \ up-script="/system/leds/set 0 disabled=no" \ down-script="/system/leds/set 0 disabled=yes"LED turns off when internet is unreachable.
Scenario: Turn Off All LEDs (Dark Mode)
Section titled âScenario: Turn Off All LEDs (Dark Mode)âReduce light pollution:
/system/leds/settings/set all-leds-off=immediateOptions:
never: LEDs always on (default)immediate: Turn off immediatelyafter-1min: Turn off after 1 minute idleafter-1h: Turn off after 1 hour idle
Scenario: LED Controlled by Script
Section titled âScenario: LED Controlled by ScriptâToggle LED on/off via script:
# Turn LED on/system/leds/set [find leds=user-led] type=on disabled=no
# Turn LED off/system/leds/set [find leds=user-led] disabled=yesScenario: Mode Button LED Toggle
Section titled âScenario: Mode Button LED ToggleâToggle LED with the mode button:
Step 1: Create toggle script
/system/script/add name=led-toggle source={ :local entry [/system/leds/find leds=user-led] :local state [/system/leds/get $entry disabled] /system/leds/set $entry disabled=(!$state)}Step 2: Assign to mode button
/system/routerboard/mode-button/set enabled=yes on-event=led-toggleScenario: Link Speed Indicator
Section titled âScenario: Link Speed IndicatorâShow when link is at specific speed:
/system/leds/add leds=led1 interface=ether1 type=interface-speed-1GLED lights when interface is running at 1 Gbps.
Scenario: PoE Output Status
Section titled âScenario: PoE Output StatusâIndicate PoE output on a port:
/system/leds/add leds=poe-led interface=ether5 type=poe-outVerification
Section titled âVerificationâConfirm LED configuration:
Check 1: View LED Configuration
Section titled âCheck 1: View LED Configurationâ/system/leds/printExpected: LEDs listed with correct type and interface.
Check 2: Check Global Settings
Section titled âCheck 2: Check Global Settingsâ/system/leds/settings/printExpected: all-leds-off setting as configured.
Check 3: Test LED Manually
Section titled âCheck 3: Test LED ManuallyâTemporarily set LED to on:
/system/leds/set [find leds=user-led] type=on disabled=noVerify LED illuminates, then restore original config.
Troubleshooting
Section titled âTroubleshootingâ| Symptom | Cause | Solution |
|---|---|---|
| LED not responding | Entry disabled | Set disabled=no |
| No LEDs listed | Device has no configurable LEDs | Check device specifications |
| Dark mode not working | Device doesnât support feature | Not all hardware supports dark mode |
| Signal LEDs all off | Interface not specified or down | Verify interface name and status |
| Activity LED always on | Constant traffic on interface | Normal behavior; try different interface |
| LED command not found | Wrong LED name | Check available LEDs with /system/leds/print |
Debug: List Available LED Names
Section titled âDebug: List Available LED Namesâ/system/leds/printUse exact LED names from this output.
Debug: Check Interface Status
Section titled âDebug: Check Interface StatusâFor interface-based LEDs:
/interface/print where name=ether1Ensure interface exists and is running.
Common Mistakes
- Wrong LED name - LED names are device-specific; check with
printfirst - Missing interface - Activity/speed types require
interfaceproperty - Disabled entry - Setting
type=offvsdisabled=yesare different; disabled hides the entry - Dark mode on unsupported device - Some devices canât turn off all LEDs due to hardware design
Dark Mode Device Support
Section titled âDark Mode Device Supportâ| Device Type | Dark Mode Support |
|---|---|
| CRS305, CRS309, CRS317 | Full |
| RB5009, RB4011 | Full |
| hAP series | Partial (some LEDs) |
| cAP series | Partial |
| NetMetal, LHG series | Full |
| SXT, Cube, LDF series | Full |
| hEX, hAP lite | Partial |
Related Topics
Section titled âRelated Topicsâ- RouterBOARD - mode button configuration
- Health Monitoring - system status indicators
Automation
Section titled âAutomationâInterfaces
Section titled âInterfacesâ- Interfaces Overview - interface-linked LEDs
- Ethernet Interfaces - port activity LEDs
Reference
Section titled âReferenceâKey Commands Reference
Section titled âKey Commands Referenceâ| Command | Description |
|---|---|
/system/leds/print | View LED configurations |
/system/leds/add | Add LED configuration |
/system/leds/set | Modify LED configuration |
/system/leds/remove | Remove LED configuration |
/system/leds/settings/print | View global LED settings |
/system/leds/settings/set | Modify global settings |
LED Properties
Section titled âLED Propertiesâ| Property | Type | Default | Description |
|---|---|---|---|
leds | string | - | LED name(s) to control |
type | enum | - | LED behavior type |
interface | string | - | Interface for activity/status types |
modem-signal-treshold | integer | -91 | Threshold for modem signal (-113..-51) |
disabled | yes/no | no | Disable this LED entry |
Global Settings (/system/leds/settings)
Section titled âGlobal Settings (/system/leds/settings)â| Property | Type | Default | Description |
|---|---|---|---|
all-leds-off | enum | never | Dark mode: never/immediate/after-1min/after-1h |
LED Type Reference
Section titled âLED Type Referenceâ| Type | Requires Interface | Multiple LEDs | Description |
|---|---|---|---|
interface-activity | Yes | No | TX/RX traffic blink |
interface-receive | Yes | No | RX traffic only |
interface-transmit | Yes | No | TX traffic only |
interface-speed | Yes | No | Link speed indicator |
interface-speed-1G | Yes | No | On at 1 Gbps |
interface-status | Yes | No | On when link up |
wireless-signal-strength | Yes | Yes | Signal bars |
modem-signal | Yes | Yes | LTE signal bars |
on | No | No | Always on |
off | No | No | Always off |