Change Network Setup from "normal" to vlan based?

Hello,

I plan to change my home network from “normal” network to various vlans.

But I’m not sure how I can do this.

Following situation, I have a network with IP Range 192.168.22.0/24

I’ll plan to split it with a own range for Smart Home like a second network 192.168.33.0/24 because I get more and more ip based appliance.

How can I do this without change whole network configuration? And also important without a long outage?

Any ideas how does this work?
Thanks a lot!

Br, Jonny

PS: This will be my first vlan setup :slight_smile:



Gesendet von meinem SM-G935F mit Tapatalk

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 add an ip address to that vlan:

/ip address add address=192.168.33.1/24 interface=v200-smarthome

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.

-Chris

Thanks a lot for your explanation, yes I have 2 crs226 switch behind the router.

I’ll try your explanation and will come back!
Thanks!

Gesendet von meinem SM-G935F mit Tapatalk

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.

Hello,

I’ve tried now the Setup, but I’m failed :frowning:

I have the following Setup:

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…

I hope someone can help me with this setup.

Thanks!
Br, Jonny

Anyone who can help me?

If someone can help me via Skype sessions (screen sharing) I would also spent some money for this support.

Thanks
Br, Jonny

Gesendet von meinem SM-G935F mit Tapatalk