Vlan – Single client per VLAN in /24 network

private-vlanvlan

I have a single /24 IP network. I want to make a VLAN (or something) and distribute a single IP and gateway per client. Each client should not be able to talk to each other.

What is the best way to do this?

Update:

I am using MikroTik router and a Cisco 2950 layer 2 switch.

Best Answer

Cisco Catalyst switches have the concept of private vlans which should accomplish what you are trying to do.

In some situations, you need to prevent Layer 2 (L2) connectivity between end devices on a switch without the placement of the devices in different IP subnets. This setup prevents the waste of IP addresses. Private VLANs (PVLANs) allow the isolation at Layer 2 of devices in the same IP subnet. You can restrict some ports on the switch to reach only specific ports [snip].

This document should work for 2960 model switches as well:

Configuring Isolated Private VLANs on Catalyst Switches