Assume you need to configure the MikroTik router for the following network setup:
In the current example we use two networks:
•
The local LAN with network address 192.168.0.0 and 24-bit netmask: 255.255.255.0. The
router's address is 192.168.0.254 in this network
•
The ISP's network with address 10.0.0.0 and 24-bit netmask 255.255.255.0. The router's
address is 10.0.0.217 in this network
The addresses can be added and viewed using the following commands:
[admin@MikroTik] ip address> add address 10.0.0.217/24 interface Public
[admin@MikroTik] ip address> add address 192.168.0.254/24 interface Local
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
#
ADDRESS
NETWORK
BROADCAST
INTERFACE
0
10.0.0.217/24
10.0.0.217
10.0.0.255
Public
1
192.168.0.254/24
192.168.0.0
192.168.0.255
Local
[admin@MikroTik] ip address>
Here, the network mask has been specified in the value of the address argument. Alternatively, the
argument 'netmask' could have been used with the value '255.255.255.0'. The network and
broadcast addresses were not specified in the input since they could be calculated automatically.
Please note that the addresses assigned to different interfaces of the router should belong to
different networks.
Page 36 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.