log in Nanostation m2 with vlan via cable or wifi

Hi all

i have this wireless network.
20170511_174944.jpg
my question is :
What is the way i should do in Nanostaion setting or in Mikrotik Router to access to Nanostation from anywhere in my network via cable or wifi?
is there anyone can help me plz ?

help plz ?

hi4ibb, you’ve got a lot going on their! Thanks for posting a drawing it really helps us.

So your goal is to be able to login and manage each NanoStation all the time. Their is 2 ways to accomplish this:

  1. Use an IP address for VLAN102 and VLAN103 on each device respective to which device is bridged.
  2. Use an IP on your management network of 10.0.1.0/24 like you are currently doing but place the IP on lan0 of the Nanostation appropriately. By appropriately we have to talk about VLANs and bridging a little more. Right now you have created a bridge with Lan0.102 and Wlan0 or Lan0.103 and Wlan0 as bridge0. That’s all fine and dandy. You will want to make the management IP address on the LAN0 interface. When this is done on the MikroTik side you have to make the VLAN (bridge1) appear as the native VLAN of the link to the Ubiquiti devices. So for the Ubiquiti device on VLAN102 the MikroTik needs to have the port going to the Ubiquiti device setup to send VLAN102 tagged and bridge1 untagged. We do this by creating a VLAN interface for the port for VLAN102. We then add the underlying interface to bridge1 as a bridge port.

So, let’s play. Let’s focus on NanoStation102 (my name for the VLAN102 NanoStation). Let’s say it is plugged into ether3. I’m going to assume you’ve removed it from any default Ethernet switch chip. For this demonstration it’s just simpler to not complicate the setup with it.

/interface vlan add name=ether3-vlan102 interface=ether3 vlan-id=102
/interface bridge port add bridge=bridge1 interface=ether3
/ip address add interface=ether3-vlan102 address=100.100.102.1/24
/ip address add interface=bridge1 address=10.0.1.1/24

Ker-blamo. You’ve got a port setup and with IP addresses assigned to the VLAN interface and to the bridge1 interface. For the Ubiquiti change the configuration mode to “Advanced” and set the management interface to LAN0. You can set the IP address to 10.0.1.2/24 with 10.0.1.1 set as the default gateway. You can keep LAN0.102 and WLAN0 in bridge0 and configured however that makes you happy from a wireless perspective.

Rinse and repeat for the VLAN103 device with the appropriate tweaks. Additionally you can make a bridge for each VLAN, add the VLAN interface as a bridge port and assign the IP to the new bridge. This would allow you to add additional ports to VLAN103 in your environment if necessary.