Is this just a similar process followed if I were to do ROAS for InterVLAN routing for example except taking out the WAN and having it all internal to the LAN? Just trying to relate it to something I know a bit more about. Since VLAN-A would need to ingress the routing engine to reach VLAN-B which would be tagged with a new VLAN upon egress.
Assume the following:
Base interface ether2 on Router, with no ip address.
VLAN-A vlan 100 ip address 192.168.100.1/24 on router using ether2 as parent/base interface
VLAN-B vlan 200 ip address 192.168.200.1/24 on router using ether2 as parent/base interface
Here you could use this
/interface vlan
add interface=ether2 name="VLAN-A" vlan-id=100
add interface=ether2 name="VLAN-B" vlan-id=200
Then you would add ip addresses to VLAN-A and VLAN-B and create dhcp servers for each vlan.
To have a router on a stick (ROAS), you need a vlan aware switch. Assuming you have a vlan aware switch configured with port 1 with vlan 100 (VLAN-A) and 200 (VLAN-B) both tagged (and pvid 1 unused) and that port was connected to a single port on the router, (say ether2).
In addition on the vlan aware switch, you would create "access ports" for vlan 100 for VLAN-A devices and access ports for vlan 200 for VLAN-B devices. An access port is a port that has only one vlan defined, it is the pvid, and the port is set for untagged traffic.
Then non-vlan-aware devices could be attached to the access ports, and they would get an ip address from the correct dhcp server.
In this case if PC on VLAN-A sent a packet to a PC on VLAN-B the packet would start with no tag, be received by the access port on the switch, classified into the vlan specified by the pvid, exit on the port 1 with a vlan 100 tag, be received on ether2 of the router, it would notice the tag, and deliver to vlan 100 interface that would remove the tag and ethernet header, deliver to the router via the VLAN-A interface, the router would see it was destined for an address in the 192.168.200.0/24 network, would see it had a connected route for 192.168.200.0/24 via VLAN-B (192.168.200.1) and forward the packet to VLAN-B (the vlan interface would then add a tag for vlan 200, and send out ether2. The switch would receive the ethernet frame with vlan tag 200, (classify into vlan 200) and send to the access port with the mac address of the VLAN-B PC associated with it and because it is an untagged port, for pvid 200, it would send the packet without a tag. The PC would receive it just as if it was a direct connection from a non-vlan-aware device on the same wire.
Did you look the article (and youtube video it references) that I posted in
post #3 ? It would be worth your time if you want to understand.