Difference between revisions of "Manual:IP/Address"

From MikroTik Wiki
Jump to navigation Jump to search
(New page: <div class=manual> <h2>Summary</h2> <p><b>Sub-menu:</b> <code>/ip address</code></p> <p><b>Standards:</b> <code>IPv4 RFC 791</code></p> <br /> <p> IP addresses serve for a general host id...)
(No difference)

Revision as of 12:17, 19 October 2009


Sub-menu: /ip address

Standards: IPv4 RFC 791

IP addresses serve for a general host identification purposes in IP networks. Typical (IPv4) address consists of four octets. For proper addressing the router also needs the network mask value, id est which bits of the complete IP address refer to the address of the host, and which - to the address of the network. The network address value is calculated by binary AND operation from network mask and IP address values. It's also possible to specify IP address followed by slash "/" and the amount of bits that form the network address.

In most cases, it is enough to specify the address, the netmask, and the interface arguments. The network prefix and the broadcast address are calculated automatically.

It is possible to add multiple IP addresses to an interface or to leave the interface without any addresses assigned to it. In case of bridging or PPPoE connection, the physical interface may bot have any address assigned, yet be perfectly usable. Putting an IP address to a physical interface included in a bridge would mean actually putting it on the bridge interface itself. You can use /ip address print detail to see to which interface the address belongs to.

MikroTik RouterOS has following types of addresses:

  • Static - manually assigned to the interface by a user
  • Dynamic - automatically assigned to the interface by DHCP or an estabilished PPP connections


Property Description
address (IP/Mask; Default: ) IP address
broadcast (IP; Default: roadcasting IP address, calculated by default from an IP address and a network mask
interface (name; Default: ) Interface name the IP address is assigned to
netmask (IP; Default: Delimits network address part of the IP address from the host part
network (IP; Default: IP address for the network. For point-to-point links it should be the address of the remote end

Read only properties

Property Description
actual-interface (name) Name of the actual interface the logical one is bound to. For example, if the physical interface you assigned the address to, is included in a bridge, the actual interface will show that bridge