Skip to content

USB Features

This article describes USB port capabilities and supported USB peripherals for MikroTik RouterBOARD devices. MikroTik routers include USB ports for expanding functionality through external storage devices, serial adapters, cellular modems, and other USB peripherals. Understanding USB specifications, device compatibility, and RouterOS configuration ensures successful integration of USB devices into your deployment.

USB ports on MikroTik devices serve multiple purposes: connecting external storage for logging and file sharing, attaching serial consoles for device management, integrating cellular modems for mobile connectivity, and supporting various USB-to-Ethernet or USB-audio adapters. The specific USB version and port availability vary by device model, with newer devices offering USB 3.0 ports providing higher data transfer rates compared to legacy USB 2.0 ports on older hardware.

RouterOS manages USB devices through dedicated system menus, providing device enumeration, monitoring, and configuration capabilities. Storage devices mount automatically and appear in the file system for logging, backup, or file sharing purposes. Serial devices create interfaces accessible through RouterOS terminal and scripting environments. Understanding these capabilities enables building flexible router configurations that leverage USB connectivity for diverse networking requirements.

MikroTik devices support multiple USB versions depending on model and age, with each generation offering distinct performance characteristics and backward compatibility. USB 1.1 provides 12 Mbps full-speed connectivity suitable for serial devices and low-bandwidth peripherals. USB 2.0 extends this to 480 Mbps high-speed operation, accommodating external storage devices and cellular modems requiring higher throughput. USB 3.0 ports on newer devices reach 5 Gbps super-speed, enabling external SSDs and high-performance storage configurations.

Device specifications list USB port types and speeds, with some models providing multiple USB ports of different generations. The CRS318-3G-18S+2卫星+1XD, for example, includes USB 3.0 ports alongside legacy USB 2.0 connections. Verify your specific device specifications to understand available port capabilities before selecting USB peripherals.

USB 3.0 ports use distinct blue-colored connectors and include additional pins beyond the USB 2.0 configuration. These ports maintain full backward compatibility with USB 2.0 and USB 1.1 devices, automatically negotiating the highest supported speed. When connecting USB 3.0 devices to USB 2.0 ports, performance limits to the slower standard.

USB ports provide limited electrical power to connected devices, with specifications varying by device model and USB port type. Standard USB 2.0 ports typically deliver 500mA at 5V (2.5W), while USB 3.0 ports may provide up to 900mA (4.5W). Some MikroTik devices include USB ports with enhanced power delivery for external drives and cellular modems requiring additional current.

Power limitations affect peripheral selection and operation. External hard drives often require more power than USB ports can provide, necessitating self-powered USB hubs with external power adapters. Bus-powered portable drives may function inconsistently or fail entirely when connected directly to router USB ports. High-power cellular modems similarly benefit from powered hub connections, ensuring stable operation during extended use.

Self-powered USB hubs distribute power from their own AC adapter to connected devices, bypassing router USB power limitations. These hubs enable connecting multiple high-power peripherals while maintaining stable operation. Select hubs with adequate power capacity for your device requirements, typically rated at 2A or higher output per port for demanding peripherals.

Physical USB port placement varies by device form factor, with routerboard devices offering front-panel, rear-panel, or internal USB headers depending on enclosure design. Desktop devices typically provide easily accessible front or rear ports, while rackmount units often position USB connections on the front panel for convenience. Some devices include internal USB headers for embedding flash storage or cellular modems within sealed enclosures.

RouterOS identifies USB ports by their physical location and connected devices, displaying this information in system monitoring commands. The /system resource usb command lists detected devices with port identifiers, useful for diagnosing connectivity issues and tracking device changes over time.

RouterOS supports various USB storage devices for expanding router storage capacity, including flash drives, external hard disk drives, external solid-state drives, and USB memory cards through card readers. These devices store log files, enable file sharing through SMB or FTP services, and provide storage for Dude server data and container images.

USB flash drives offer the simplest storage expansion, with capacities ranging from megabytes to tens of gigabytes in compact form factors. These devices draw minimal power and work reliably with most MikroTik routers. Flash drives suit applications requiring moderate storage for logs, configurations, and occasional file transfers.

External hard drives provide larger storage capacities at lower cost per gigabyte, though they require more power than flash drives. Many portable drives include USB-Y cables that draw power from two USB ports, addressing single-port power limitations. Desktop external drives with dedicated power adapters function reliably without drawing router USB power.

External SSDs deliver high read/write speeds ideal for applications requiring fast storage access, such as traffic logging or container image storage. These devices typically require external power or powered USB hubs, as their performance demands exceed standard USB power delivery.

USB storage devices mount automatically upon connection, appearing in the RouterOS file system immediately. The /disk print command displays detected storage devices with their capacity and naming:

/disk print
# Columns: NAME, TYPE, DISK, SIZE, FREE
# 0 flash1, usb, 0:0, 8000MB, 7562MB

RouterOS organizes storage under the /usb directory hierarchy for USB-attached devices. The /file print command shows files on mounted storage alongside router internal storage:

/file print
# Files appear with their storage location

Configure storage device names for easier identification:

/disk
set 0 name=backup_usb

Storage devices may require formatting for use with RouterOS Disk Storage features. Use the /disk format-drive command with caution, as this erases all data on the selected drive:

/disk format-drive 0

After formatting, the drive appears in /file operations and can be used for log storage, Dude data, or container mounts.

USB storage serves multiple applications in RouterOS deployments. Log storage offloads verbose logging from internal flash memory, extending router lifespan and enabling detailed troubleshooting data retention. Configure log storage destination:

/system logging action
set disk disk-file-name=/usb/logs/system.log

SMB file sharing enables USB storage access from network clients, transforming the router into a simple network-attached storage device:

/ip smb shares
add name=usb_storage path=/usb directory=/usb
/ip smb users
add name=guest password="" read-only=yes directory=/usb

Container storage utilizes USB drives for container image libraries and application data, enabling resource-intensive container deployments without consuming internal storage:

/container
add storage=usb1 interface=veth1 image=library/nginx:latest

USB-to-serial adapters enable console access to routers and network devices lacking native USB console ports. These adapters appear as serial devices in RouterOS, accessible through the /system serial-port menu and terminal connections.

Common USB serial chipsets receive broad support in RouterOS, including adapters based on FTDI, Prolific, and CH340 chips. When connected, these adapters enumerate as serial ports:

/system resource usb print
# Lists USB devices including serial adapters
/system serial-port print
# Shows available serial ports

Connect to serial console ports through RouterOS terminal:

/system telnet
/system ssh

The /tool fetch command accesses serial console data, useful for capturing boot sequences or debugging output:

/tool fetch address=0.0.0.0 port=usb1 mode=read

Some cellular modems present serial interfaces rather than network interfaces, requiring PPP configuration for connectivity. These modems use AT commands for control and PPP for data transmission, appearing as serial devices in RouterOS.

Configure PPP cellular interfaces using detected serial ports:

/interface ppp-client
add dial-command="ATD*99#" port=usb1 data-channel=2 info-channel=1 \
name=cellular0

Modem-specific AT commands initialize hardware features or adjust behavior:

/system at-chat
add port=usb1 input="AT+QSIMDET=0,1"

Monitor PPP interface status:

/interface ppp-client monitor [find]

USB Ethernet adapters extend router network interfaces when additional physical ports are required or when specific network connections cannot use existing ports. These adapters appear as standard ethernet interfaces in RouterOS, configurable through the standard interface menus.

MikroTik USB-RM1 and USB-AM support provides automatic recognition and configuration of supported USB Ethernet devices. Third-party adapters based on common chipsets often function correctly, though driver availability varies by RouterOS version.

Configure USB Ethernet interfaces identically to built-in ports:

/interface ethernet
set usb1 name=wan2
set [find where name=wan2] master-port=none

Monitor USB Ethernet interface statistics:

/interface ethernet monitor usb1

USB Ethernet performance typically limits to USB 2.0 speeds for adapters without USB 3.0 support. Throughput remains adequate for management access and low-bandwidth connections but may bottleneck high-speed data transfers.

RouterOS automatically detects and configures connected USB devices, listing them in system resource output:

/system resource usb print
# Detected: DEVICEID, VENDOR, NAME, SERIAL
# 0: 1d6b:0002, Linux 2.6.39, dwc_otg_hcd, f1051400
# 1: 0424:2514, Standard Microsystems, USB 2.0 Hub, 12345678
# 2: 058f:1234, Alcor Micro, Flash Drive, DEF12345

Device information includes vendor and product identifiers useful for compatibility verification and troubleshooting. The output displays all detected devices including hubs, adapters, and storage.

Monitor device connections in real-time:

/system monitor
# Shows device events as they occur

USB connectivity issues stem from power limitations, driver compatibility, or physical connection problems. Systematic troubleshooting identifies root causes.

Verify device detection first:

/system resource usb print

Missing devices indicate physical connection issues, power problems, or incompatible hardware. Try connecting through a powered USB hub to address power limitations.

Check for error messages in system logs:

/log print
# Look for USB-related errors

Re-seat USB connections and try alternative ports. Some devices require specific USB ports or initialization time before detection.

Test devices on alternative systems to isolate router issues from device failures. Faulty USB ports occasionally affect only certain device types or USB versions.

USB ports provide potential attack vectors for physical access scenarios. Unauthorized users may connect malicious storage devices or use USB devices to exploit router vulnerabilities. Consider disabling unused USB ports through device configuration or physical port covers in sensitive deployments.

Restrict USB device access through policy configurations where supported. Monitor USB device connections through logging to detect unauthorized access attempts.

RouterOS does not implement USB device authentication beyond basic enumeration. Any USB device connecting to router ports receives power and may be detected by the system. Physical security measures remain the primary defense against unauthorized USB device connections.

Disable USB storage auto-mounting for sensitive deployments:

/system device-mode
set usb-storage=disabled
# View connected USB devices
/system resource usb print
# List serial ports including USB serial
/system serial-port print
# Configure storage device name
/disk set 0 name=usb_storage
# Format storage drive
/disk format-drive 0
# Monitor USB Ethernet interface
/interface ethernet monitor usb1
# Configure PPP cellular interface
/interface ppp-client add port=usb1 name=cellular0
Device TypeSupport LevelTypical Use Case
Flash DrivesFullLog storage, file sharing
External HD/SSDFullExpanded storage, containers
Serial AdaptersFullConsole access
Cellular ModemsFullMobile connectivity
USB HubsFullPort expansion
USB EthernetVariesAdditional interfaces
  • /system resource usb print - View connected USB devices
  • /disk format-drive - Format USB storage
  • /interface ppp-client add - Create PPP cellular interface
  • /system serial-port print - List serial ports
  • /interface ethernet - Configure USB Ethernet interfaces