Let's say we have 4 machines connected to a layer 2, managed switch which is connected to a layer 3 switch. Say that 126.96.36.199/24 is routed to the layer 3 switch. Our goal is to have 188.8.131.52-63 usable only by the first machine, 184.108.40.206-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 220.127.116.11/26 to the first, 18.104.22.168/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 22.214.171.124 and 126.96.36.199-62 would have been usable.