Sript Mikrotik Vlan
HSNM Hardware and VM configurations. Sms, Email, Backup, Database

Rate this topic
   Post Reply
3 posts   •   Page 1 of 1
wifi64
Posts: 34
Joined: 05 Sep 2022, 09:10

Sript Mikrotik Vlan

by wifi64 » 31 Jan 2023, 17:40

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

wifi64
Posts: 34
Joined: 05 Sep 2022, 09:10

Re: Sript Mikrotik Vlan

by wifi64 » 22 May 2023, 23:19

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 :)

HSNMSupport
Posts: 1553
Joined: 26 Jul 2016, 09:16

Re: Sript Mikrotik Vlan

by HSNMSupport » 23 May 2023, 08:57

Hi ,
advanced scripting is not included in basic support.
BTW your script seems great.
Have a great day.
S.T.

Rate this topic

Who is online

Users browsing this forum: No registered users and 11 guests

It is currently 21 Nov 2024, 16:51