Saturday, 3 June 2017

MIKROTIK:-Hotspot Configuration On VLAN

This is one of the most popular method  in ISP domain because most of the ISP's are using the VLAN in their network  . But there is some additional configuration required for this activity .We can configure the multiple Hotspot server in one physical interface using multiple VLAN and as you can see my picture below there is configured the LINK from mikrotik NAS to switch is trunk link and also I have allowed all the VLAN in that port .


Lets start the configuration .


Lets Start the configuration according to my scenario .


Configure the VLAN first in  Mikrotik .


Here , I have created  only 3 vlan for testing purpose but you can create up to 4096 VLAn in the Mikrotik .

Step-1

Click on Interface >VLAN>Add vlan(+)

/interface vlan
add interface=ether6 name=vlan2 vlan-id=2
add interface=ether6 name=vlan3 vlan-id=3

add interface=ether6 name=vlan4 vlan-id=4

Step-2

Configure The IP address in each VLAN.
Step-3 

Create the HOtspot server on VLAN interface .

I Have created 3 HOTspot servers for VLAN-2,3,4 . and in same way you you can create multiple HOtspot server under one physical interface using VLANs .


Apart from that , No need to change anything in the configuration end . everything would be same as my previous hotspot server configuration .


After completion of these things in the Mikrotik then  you have to create the VLAN(2-4) in cisco switch and the port should be configure the trunk between the switches .And you need to make the access port for providing the access to users .




You don't need to change anything at any where except these changes what I Did on my above picture .


Please find the below commands.

/interface vlan
add interface=ether6 name=VLAN2 vlan-id=2
add interface=ether6 name=VLAN3 vlan-id=3
add interface=ether6 name=VLAN4 vlan-id=4

/ip hotspot profile
set [ find default=yes ] login-by=http-chap,http-pap use-radius=yes
add hotspot-address=192.16.1.1 login-by=http-chap,http-pap name=hsprof1 \
    use-radius=yes

/ip pool

add name=VLAN2 ranges=11.0.0.2-11.0.0.254
add name=VLAN3 ranges=12.0.0.2-12.0.0.254
add name=VLAN4 ranges=13.0.0.2-13.0.0.254

/ip hotspot

add address-pool=VLAN2 disabled=no idle-timeout=none interface=VLAN2 name=\
    server1
add address-pool=VLAN3 disabled=no idle-timeout=none interface=VLAN3 name=\
    server2
add address-pool=VLAN4 disabled=no idle-timeout=none interface=VLAN4 name=\
    server3

/radius
add address=10.0.0.100 secret=secret service=ppp,hotspot timeout=9s

/radius incoming
set accept=yes

/ip address
add address=192.168.2.1/24 interface=VLAN2 network=192.168.2.0
add address=192.168.3.1/24 interface=VLAN3 network=192.168.3.0
add address=192.168.4.1/24 interface=VLAN4 network=192.168.4.0

/ip dns
set cache-size=10000KiB servers=8.8.4.4,8.8.8.8 


1 comment:

  1. hi
    same configure but not opening hotspot loging page what is the problem
    please hlep me

    ReplyDelete