Basic IP Address Configuration
Basic IP Address Configuration
Section titled “Basic IP Address Configuration”TL;DR (Quick Start)
Section titled “TL;DR (Quick Start)”For the impatient: here’s the 30-second version.
# Add IP address to interface/ip address add address=192.168.1.1/24 interface=ether1Overview
Section titled “Overview”Configure IP addresses on MikroTik RouterOS interfaces for network connectivity.
Prerequisites
Section titled “Prerequisites”- RouterOS 7.0 or later
- Access to router via Winbox, WebFig, or SSH
- At least one active interface (Ethernet, VLAN, Bridge, etc.)
Quick start
Section titled “Quick start”Add an IP address
Section titled “Add an IP address”/ip address add address=192.168.1.1/24 interface=ether1View configured addresses
Section titled “View configured addresses”/ip address printExample output:
Flags: D - DYNAMICColumns: ADDRESS, NETWORK, INTERFACE# ADDRESS NETWORK INTERFACE0 192.168.1.1/24 192.168.1.0 ether1Step-by-step configuration
Section titled “Step-by-step configuration”1. Identify your interface
Section titled “1. Identify your interface”First, list available interfaces:
/interface print2. Add IP address with comment
Section titled “2. Add IP address with comment”/ip address add address=10.0.0.1/24 interface=ether2 comment="LAN Gateway"3. Verify configuration
Section titled “3. Verify configuration”/ip address print detail where interface=ether2Common scenarios
Section titled “Common scenarios”Multiple IPs on one interface
Section titled “Multiple IPs on one interface”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=ether1Remove an IP address
Section titled “Remove an IP address”/ip address remove [find address="192.168.1.2/24"]Disable without removing
Section titled “Disable without removing”/ip address disable [find address="192.168.1.1/24"]Verification
Section titled “Verification”Check that your IP configuration is correct:
# View all addresses/ip address print
# Test connectivity/ping 192.168.1.254 count=3Troubleshooting
Section titled “Troubleshooting”| Issue | Cause | Solution |
|---|---|---|
| ”no such interface” | Interface name typo | Check /interface print |
| ”address already exists” | Duplicate IP | Remove existing or use different IP |
| No connectivity | Wrong subnet/gateway | Verify network settings |
Related topics
Section titled “Related topics”Next steps
Section titled “Next steps”- DHCP Server - automatically distribute IP addresses to clients
- Static Routes - configure routing for multi-network setups
- NAT Masquerade - enable internet access for LAN devices
- Firewall Basics - secure your network
Alternative configurations
Section titled “Alternative configurations”- DHCP Client - obtain IP address automatically from upstream
- DHCP Relay - forward DHCP requests to a central server
Related concepts
Section titled “Related concepts”- Bridge Configuration - combine interfaces into a single network
- Interfaces Overview - understand RouterOS interface types
- IP Pools - manage address ranges for DHCP and other services