Skip to content
MikroTik RouterOS Docs

Basic IP Address Configuration

For the impatient: here’s the 30-second version.

# Add IP address to interface
/ip address add address=192.168.1.1/24 interface=ether1

Configure IP addresses on MikroTik RouterOS interfaces for network connectivity.

  • RouterOS 7.0 or later
  • Access to router via Winbox, WebFig, or SSH
  • At least one active interface (Ethernet, VLAN, Bridge, etc.)
/ip address add address=192.168.1.1/24 interface=ether1
/ip address print

Example output:

Flags: D - DYNAMIC
Columns: ADDRESS, NETWORK, INTERFACE
# ADDRESS NETWORK INTERFACE
0 192.168.1.1/24 192.168.1.0 ether1

First, list available interfaces:

/interface print
/ip address add address=10.0.0.1/24 interface=ether2 comment="LAN Gateway"
/ip address print detail where interface=ether2

You can add multiple IP addresses to a single interface:

/ip address add address=192.168.1.1/24 interface=ether1
/ip address add address=192.168.1.2/24 interface=ether1
/ip address remove [find address="192.168.1.2/24"]
/ip address disable [find address="192.168.1.1/24"]

Check that your IP configuration is correct:

# View all addresses
/ip address print
# Test connectivity
/ping 192.168.1.254 count=3
IssueCauseSolution
”no such interface”Interface name typoCheck /interface print
”address already exists”Duplicate IPRemove existing or use different IP
No connectivityWrong subnet/gatewayVerify network settings
  • DHCP Client - obtain IP address automatically from upstream
  • DHCP Relay - forward DHCP requests to a central server