Page 1 of 1

Sript Mikrotik Vlan

Posted: 31 Jan 2023, 17:40
by wifi64
Bonjour à Tous

Hello, I need to add a wifi vlan for wifi cameras on my hotspot.
and a wifi vlan for cloud Phone

I use unifi + cloud Key for the management of wifi hotspots

my gateway is mikrotik

Can you give me a script for my mikrotik please
is someone kind to help me
contact_iconnect.fr

Thanks

Re: Sript Mikrotik Vlan

Posted: 22 May 2023, 23:19
by wifi64
Bonjour à Tous

Hello, I need to add a wifi vlan for wifi cameras on my hotspot.
and a wifi vlan for cloud Phone

I use unifi + cloud Key for the management of wifi hotspots

my gateway is mikrotik

Can you give me a script for my mikrotik please
is someone kind to help me
contact_iconnect.fr

Thanks
Hello I come back to my subject VLAN FOR PHONE NETWORKS WITHOUT GOING THROUGH THE CAPTIVE PORTAL

Mikrotik router + Unifi lan network configuration for guest-bridge and VLAN 200 for Phones

I tested this configuration which seems to work

Can you correct me if there is something to improve

I would like to make this vlan as a Vlan bridge that works on all ports

######### SETUP VLAN
/ interface vlan
add interface=ether2 name=vlan200 vlan-id=200
#
/ ip pool
add name=Pool200 ranges=10.200.0.2-10.200.0.254
/ip address
add address=10.200.0.1/24 interface=vlan200 network=10.200.0.0
#
/ip hotspot
add address-pool=Pool200 addresses-per-mac=1 disabled=yes idle-timeout=1m interface=vlan200 name=vlan200 profile=default
#
/ip dhcp-server
add address-pool=Pool200 disabled=no interface=vlan200 lease-time=1d name=200
/ip dhcp-server network
add address=10.200.0.0/24 gateway=10.200.0.1
#
## FIREWALL
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment="Place staff rules" disabled=yes
add action=masquerade chain=srcnat comment="Masquerade lan network" src-address=10.200.0.0/24
#### SETUP END ##

PLEASE Can you correct me if there is anything to improve :)

Re: Sript Mikrotik Vlan

Posted: 23 May 2023, 08:57
by HSNMSupport
Hi ,
advanced scripting is not included in basic support.
BTW your script seems great.
Have a great day.
S.T.