Let's say we have 4 machines connected to a layer 2, managed switch which is connected to a layer 3 switch. Say that 22.214.171.124/24 is routed to the layer 3 switch. Our goal is to have 126.96.36.199-63 usable only by the first machine, 188.8.131.52-127 usable only by the second machine and so on.
If I understand correctly, from the layer 3 switch, we have to create 4 VLAN's and assign 184.108.40.206/26 to the first, 220.127.116.11/26 to the second and so on. This will VLAN tag the Ethernet frames. We then have, on the layer 2 switch, to assign a VLAN for each port and mark it as tagged.
- Does the VLAN number configured on the L2 and L3 switches have to be the same?
- What will be the broadcast IP address for each machine?
- What will be the usable IP addresses for each machine?
We normally only use L3 switches, so in that case, for the first machine, for instance, the broadcast IP address would have been 18.104.22.168 and 22.214.171.124-62 would have been usable.