Showing posts with label Mikrotik. Show all posts
Showing posts with label Mikrotik. Show all posts

Wednesday, November 14, 2012

Assign IP address Mikrotik

Using command line

IP address management can be accessed under the /ip address submenu:

[MikroTik] ip address>
IP addresses are given to router to access it remotely and to specify it as a
gateway for other hosts/routers.

    print  Show IP addresses
      get  get value of item's property
     find  Find addresses
      set  Change IP address properties
      add  Add IP address
   remove  Remove IP address
   enable  Enable IP address
  disable  Disable IP address
  comment  Set comment for IP address
   export  Export list of IP addresses
[MikroTik] ip address> 
 

Saturday, November 26, 2011

Setup NAT On Mikrotik

MIKROTIK NAT
This is a short howto explaining how to set up a full-NAT on a Mikrotik RouterOS.
This setup allows you to hide (masquerade) your private IP address from a public network. This means, for example, that in your private network you can have whatever private IP you want which is then in turn translated to the public network IP given to you by your network provider. This tutorial can thus be used by clients who want to connect to a network without requiring a change to the internal IP addressing of their LAN.


Example
In the following example we have a wireless interface which connects to a public wireless network and an Ethernet interface for the local private network.
Suppose we have 192.168.1.2/24 (Internal Private Network) 
Your RouterBoard's Ethernet interface is 192.168.1.1/24 (fixed Private Network IP) 
Your RouterBoard's Wireless card is 10.140.1.30/26 (Public Network) 
The Access Point you connect to is 10.140.1.1/26 (Public Network gateway)