Hi,
Sorry for the late reply.
Since the devices are connected via switches and all connected to a single port on RUT955, it's possible to use either - port-based or tag-based VLAN. However, tag-based would probably be better as they allow more flexibility, which can be beneficial in the future.
Tag-based
Create one VLAN_1 interface for the current subnet (10.0.0.0/24) and one for a new VLAN_2 (10.0.4.0/24).
- Network -> Interfaces -> Add new instance -> Enter the name (ex. VLAN_1) -> Click add. In the general settings of the interface, select 'static' as a protocol. Assign a subnet.
Set VLAN ID which you will use for VLAN_1 to be untagged on LAN 1 (port1 or whichever port you are using) and set VLAN ID which you will use for VLAN_2 to be tagged.
- Network -> VLAN -> Port based
Assign VLAN_1 interface to VLAN_1 in physical settings. Assign VLAN_2 interface to VLAN_2 in physical settings.
- Network -> Interfaces -> choose your VLANs (VLAN_1, VLAN_2 in the example) and click settings. Go to 'physical settings' and assign a physical interface to a VLAN. For example, 'eth0.10' (depends on VLAN ID).
Whenever you change the IP address on the end device to a new subnet and attach a tag, the device will start using VLAN_2. One by one migrate all end devices to VLAN_2.
Port-based
Create one VLAN_1 for the current subnet (10.0.0.0/24) and one for a new VLAN_2 (10.0.4.0/24).
- Network -> Interfaces -> Add new instance
Assign VLAN_1 to the current port to which all the devices are connected. Assign VLAN_2 to a different LAN port. Connect another ethernet cable to a new port and assign VLAN_2 to that port.
- Network -> VLAN -> Port based
Assign VLAN_1 interface to VLAN_1 in physical settings. Assign VLAN_2 interface to VLAN_2 in physical settings.
- Network -> Interfaces -> choose your VLANs (VLAN_1, VLAN_2 in the example) and click settings. Go to 'physical settings' and assign a physical interface to a VLAN.
When you configure an IP address on one of the end devices to be on a 10.0.4.0/24 network, the device will start using VLAN_2 on the assigned port. Hence, the newly configured end device will be on a 10.0.4.0/24 subnet. Both subnets are operational at the same time but are separated. The downtime is relatively unnoticeable.
RUT240
When it comes to RUT240, it does not have port-based VLAN capabilities as it has only one LAN port. RUT240 has only interface-based VLANs, which use 802.1AD/802.1Q encapsulation protocols. These protocols are used to tag Ethernet frames. More information about VLANs for RUT240 can be found HERE and HERE.
One of the possible solutions:
Since you are about to swap WiFi connection with a wired WAN connection to the Uplink router, WiFi access becomes available. What you can do is try to connect all LAN devices on RUT240 to WiFi. This will leave your LAN ethernet port available. Reconfigure LAN port interface settings. Take devices connected to WiFi, and one by one configure them and connect via ethernet+switches to the ethernet LAN port on RUT240.
Otherwise, you can always try to do what you wanted to do in the beginning. Simply create a new interface instance with a new subnet and start moving end devices to that subnet. Using interfaces in such ways should be avoided if possible. The traffic from different subnets is not separated as needed. This can potentially cause issues regarding management, routing, and other unexpected behavior of the device.
If you choose this approach, ensure that after you are done migrating to a new subnet, there is only one LAN interface assigned to the port.
Device management
When it comes to the management of the devices, I can recommend the following:
Create a separate VLAN for management purposes. Then, in firewall settings on RUT955 (Network -> Firewall -> General settings -> Zones) you can configure firewall zones as you wish. For example, create a rule that allows traffic from Management VLAN to access VLAN 1 and another rule to allow access to VLAN 2. In case there is a need for more VLANs, you can always create a new rule that will allow access from Management VLAN to a new VLAN.
More information about VLAN configuration can be found HERE.
Kind Regards,
Andzej