Wednesday, January 25, 2012

How to install and configure MikroTik v2.9.2.7 L6

 1- First of all, download the needed files to install and crack MikroTik 2.9.2.7:

          - Mikrotik v2.9.2.7 ISO image: http://download.mikrotik.com/mikrotik-2.9.2.7.iso
          - Winbox: http://www.mikrotik.com/download/winbox.exe

2- Burn both ISO files (MikroTik v2.9.2.7) to CD
3- Set the PC to boot from the CD-ROM and insert the Mikrotik v2.9.2.7 CD.
4- The main setup page should show up:
5- Select packages using the ‘a’ Select all then press ‘i’ to start installing.
6- Answer with ‘n’ when you asked if you want to keep the old configuration, make sure that you made
     backup of your important files on the hard disk or you will lose it.then press ‘y’.
7- Wait until the setup process is finished and press ‘Enter’ to reboot:
8- Eject the CD, and use the default username: ‘admin’ with null password when the logon screen shows up
9- Here is the main screen of the mikrotik. To start configuring the OS, type ‘setup’ and press ‘Enter’:
     Follow instuction one screen or using step 10.
10- Change interface name: ether1=WAN, ether2=LAN, ether3=HOTSPOT

     [admin@Mikrotik] >interface ethernet set ether1 name=WAN
     [admin@Mikrotik] >interface ethernet set ether2 name=LAN
     [admin@Mikrotik] >interface ethernet set ether3 name=HOTSPOT

11- Configure Public interface "WAN" assume that ip 192.168.2.44 is a public ip

     [admin@Mikrotik] >ip address add address=192.168.2.44/24 interface=WAN
    
12- Add the default gateway

     [admin@Mikrotik] >ip route add gateway=192.168.2.1
     [admin@Mikrotik] >ping 192.168.2.1 
     192.168.2.1 64 byte ping: ttl=255 time=1 ms 
     192.168.2.1 64 byte ping: ttl=255 time=1 ms 
     192.168.2.1 64 byte ping: ttl=255 time=1 ms 
     3 packets transmitted, 3 packets received, 0% packet loss 
     round-trip min/avg/max = 1/1.0/1 ms

13-  Configure Local interface "LAN"

     [admin@Mikrotik] >ip address add address=192.168.1.1/24 interface=LAN

14- It is time to add HOTSPOT interface

     [admin@Mikrotik] >ip address add address=192.168.0.1/24 interface=HOTSPOT

15- Add DNS. 1=117.120.24.1 as primary-dns and 203.223.32.3 as secondary-dns

     [admin@Mikrotik] >ip dns add primary-dns=117.120.24.1 allow-remote-requests=yes
     [admin@Mikrotik] >ip dns add secondary-dns=203.223.32.3 allow-remote-requests=yes

16- Configure firewall masquerading (This step for using the internet)

     [admin@Mikrotik] >ip firewall nat add chain=srcnat action=masquerade out-interface=WAN
     [admin@Mikrotik] >ping www.mikrotik.com 
     159.148.147.196 32 byte ping: ttl=550 time=46 ms 
     159.148.147.196 32 byte ping: ttl=545 time=46 ms 
     159.148.147.196 32 byte ping: ttl=564 time=46 ms 
     3 packets transmitted, 3 packets received, 0% packet loss 
     round-trip min/avg/max = 1/1.0/1 ms

17- Configure Hotspot on HOTSPOT interface and add user admin with password 123456

     [admin@Mikrotik] > ip hotspot setup
     hotspot interface: HOTSPOT
     local address of network: 192.168.0.1/24
     masquerade network: yes
     address pool of network: 192.168.0.2-192.168.0.254
     select certificate: none
     ip address of smtp server: 0.0.0.0
     dns servers: 117.120.24.1
     dns name: www.sambath.com.kh
     name of local hotspot user: admin
     password for the user: 123456

18- Set HotSpot to use User Manager for HotSpot server users,

     [admin@Mikrotik] >ip hotspot profile set hsprof1 use-radius=yes 

19- Add radius client to consult User Manager for HotSpot service. 

      [admin@Mikrotik] >radius add service=hotspot address=127.0.0.1 secret=123456

20- First, you need to download and install User Manager package; Create User Manager subscriber 
     (root customer). Note that when using a version 3.0 or newer, a subscriber called 'admin' is created
     automatically - you can skip the following stage. 
     
     [admin@Mikrotik] > tool user-manager customer add login="admin" password="1" permissions=owner 

21- Add HotSpot router information to router list,

     [admin@Mikrotik] >tool user-manager router add subscriber=admin ip-address=127.0.0.1 
shared-secret=123456

22- Add HotSpot user information, Rate limited, Uptime-limited and more... now it time to user web interface.
Type the following address in your web browser: http://Router_IP_address/userman 
where "Router_IP_address" must be replaced with IP address of your router, so the ip is 192.168.2.44
Then login with step 20 above. User manager web interface show. Try it yourself.

______________________________________________________________________________
For further information visit the following official Mikrotik websites:
Mikrotik WiKi : http://wiki.mikrotik.com/wiki/Main_Page

No comments:

Post a Comment