hello guys, I take multiple vlans with multiple DHCP Server, and Cisco Switch gets 802.1Q trunk with my ros,
now I wanna to creat hotspot server, my question is :
- can I use one hotspot server for all clients in each vlan ?
ex. 3 vlans :
code:
/interface vlan
add interface=ether2 l2mtu=1594 name=vlan1 vlan-id=1
add interface=ether2 l2mtu=1594 name=vlan2 vlan-id=2
add interface=ether2 l2mtu=1594 name=vlan3 vlan-id=3
/ip pool
add name=vlan1 ranges=192.168.1.2-192.168.1.200
add name=vlan2 ranges=192.168.2.2-192.168.2.200
add name=vlan3 ranges=192.168.3.2-192.168.3.200
/ip dhcp-server
add address-pool=vlan1 disabled=no interface=vlan1 name=vlan1
add address-pool=vlan2 disabled=no interface=vlan2 name=vlan2
add address-pool=vlan3 disabled=no interface=vlan3 name=vlan3
/ip address
add address=1.1.1.1/30 interface=ether2 network=1.1.1.0
add address=192.168.1.1/24 interface=vlan1 network=192.168.1.0
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
/ip dhcp-server network
add address=192.168.1.0/24 gateway=192.168.1.1
add address=192.168.2.0/24 gateway=192.168.2.1
add address=192.168.3.0/24 gateway=192.168.3.1
/ip route
add dst-address=192.168.0.0/16 gateway=1.1.1.2
now, I wanna:
- One hotspot definition
-Hotspot doing DHCP with each DHCP pool (each vlan pool)
how can I do it ?
thanks !