I presume you have a separate switch you want to use with a single connection to the router and with different VLAN on different ports?
You can just add a VLAN subinterface to your ether2 and assign it some tag, and configure the switch to have untagged and tagged VLAN
on the connecting port. So you keep using untagged VLAN for your existing usage, add the new network as tagged, and then you
can migrate devices to the new network as you wish (i.e. set the switchport to untagged on the new VLAN).
When you don’t have an external switch, you do not need to use VLAN as you can just make a separate group of ports in a separate
network e.g. using a bridge. (remove the master-port setting and put the port in a bridge for your new network).
If you have one downlink to a managed switch, adding a vlan is surely the best way to do it.
Add a vlan interface to your downlink interface (in case it’s a bridge on your router end, add that vlan to the bridge):
/interface vlan add name=v200-smarthome vlan-id=200 interface=ether2 (or bridge-local or whatever)
Then go through the normal process of adding an IP pool and dhcp server to that vlan.
Adjust your firewall in case you want to restrict access to your other network or internet.
On the switch side, create access ports for the devices in question and this should be it.
Make sure the connected devices get addressed properly for the new ranghe - or make them renew their DHCP lease.
There shouldn’t be any general downtime, just for the devices which are currently migrated.
You don’t have to use vlans. You can just add another subnet as well. Just put 192.168.33.1/24 on the same interface as your other network, and then you have 2 subnets.
Alternately, you could set up 192.168.22.0/23 and change all the subnets on your current devices, or set up the DHCP server to hand out the proper netmask and make sure all the devices renew their addresses. Then you have 512 addresses rather than 256.
Simple.
If you really want to add vlans, you should diagram your network so the question can be answered more accurately.
1 Router RB2011UiAS
2 CRS226-24G-2S+ (Switch1 and Switch2)
Router Switchport “e2lan” is connected to Switch1 “ether1-master”
Switch1 “sfp-sfpplus1” is connected to Switch2 “sfp-sfpplus1”
AccessPoint is connected on “ether10” at Switch2
I need the following result:
ether5 & ether6 on Switch1 should be AccessPorts for SmartHome Devices
ether9 on Switch2 should be AccessPort for SmarHome Device
ether10 on Switch2 should be Wireless AccessPoints (Unifi AP) for both Networks (I would have 2 SSIDs) so I think I need a Trunk?
This VLAN Setup is very new for me… I checked also the Wiki but every HowTo or Example is with a Mikrotik Router and a other Brand Switch…