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