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> 
 
Use the /ip address add command to add an IP address to an interface. In most cases, it is enough to specify the address, the netmask, and the interface arguments. The network preffix and the brodcast address are calculated automatically, for example:

[MikroTik] ip address> add address=192.168.0.254/24 interface=Local
[MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
  #   ADDRESS            NETWORK         BROADCAST       INTERFACE
  0   192.168.0.254/24   192.168.0.0     192.168.0.255   Local
[MikroTik] ip address> 
 
Description of the arguments: 
  • number : number assigned to the item in the list
  • flag : shows the status of the item 
  • address : local IP address, can be in the form address/mask, where mask is number of bits in the subnet mask. 
  • netmask : network mask to be used with the network prefix. Must be in the decimal form xxx.xxx.xxx.xxx 
  • network : (optional) network prefix to be used with the address. It shows what network can be reached through the interface with the given IP address. If not specified, will be calculated from local address and network mask. For point-to-point links should be the address of the remote end. 
  • broadcast : (optional) broadcast address to be used with the address. If not specified, will be calculated from local address and network mask. 
  • interface : name of the interface the address will be used with

Using Winbox Application

Step 1
Entering to the mikrotik router using IP or Mac

Step 2
Select the IP Address menu like this :












Step 3
Result

0 komentar:

Post a Comment