Thursday, June 30, 2011

How to configure IP Hotspot and bandwidth shaping in mikrotik ?


1)     Install mikrotik OS on your System .
2)     Power on the virtual machine.
3)     with your username and password.(default username and password is admin and blank).
4)     Login
5)     to add ip address :-      
a)     admin@mikrotik>setup
b)    enter a to add ip and gateway.
c)     give Ethernet.. to configure ip. (eg ether1)
d)    then type ipaddress/subnet (eg 192.168.138.131/24
e)     press enter to give default gateway and type your default gateway.
f)     Wan configuration is finished .
g)    And add ipaddress in lan address as above in antoher Ethernet.
h)     Press d to add dhcp server in lan interface .
i)      Give ip address for dhcp (i.e gateway of dhcp clients) .
j)       Give address give out .(i.e for dhcp client address)
k)     Give dns server for address resolution .
l)      Ip address is configured in both interface .
6)     To view ip address configure type > ip address print command.
7)     Try winbox .
8)     Connect xp machine from eth 2 and try web browser to download winbox
Note : winbox is graphical tool for mikrotik configuration .
9)     Windows machine gets automatically ip from dhcp.
10)  Browse ip address of server and download winbox.(eg http://192.168.0.1 and click winbox to download)
11)  Open winbox in connect to type server ip address (i.e 192.168.0.1) and username and password and click on connect .
12)  Lets start to configure hotspot (i.e username and password verification to access internet from LAN
Ø  Click on ip > Hotspot>server tab>  click on hotspot setup.
Ø  Give hotspot interface (i.e ether 2)
Ø  Give local address of hotspot .(i.e 192.168.0.0/24) and click on masquerade. network. > next.
Ø  Select certificate none .> next.
Ø  Add smtp address .> next.
Ø  Add dns server addess  >next.
Ø  Give dns server name (eg hotspot.com) > next
Ø  Create hotspot user to access from lan .(username : prakash passwd : prakash)
Ø  Click on next > ok
13)  Go to xp and browse internet .
14)  Then login page appears and login with username and passwd .
15)  For bandwidth allocation  IP>hotspot>server profile >general>rate limit> give bandwidth .(eg 64k/64k for 64 kb uplink and downlink)


Thanks ,


1 comment: