It depends on the class of the switch, for example:
- Wifi routers and home routers have
LAN Isolation
LAN Isolation, however this one is usually disabled by default - Layer 2/3 campus class switches usually have
ARP filtering
ARP filtering, but if it's not enabled than you can spoofMAC
MAC orIP address
IP address from different VLAN (you can use same MAC or different one for any IP address). The one I mean here is the one implemented at the Layer 3 gateway. - Some new campus like switches (as of 2016) have
LAN Isolation
LAN Isolation built-in as well, however it's not enabled by default, which helps withARP spoofing
ARP spoofing - Some networks require
IEEE 802.1X authentication
IEEE 802.1X authentication to connect to the port, usually corporate equipment must be used and not private one. This is very often preventingARP spoofing
ARP spoofing but not always, depends on how it is used, sometimes it's easy to defeat. - Some networks have
MAC learning
MAC learning and do not allow spoofing (e.g. allow only specific MAC on single port), this is quite rare but existent. So this works by monitoring the switches and blocking attackers. - Some networks might require you to supply you MAC which is configured for the port, and this way it can also prevent from sending malicious ARP requests / responses
- Depending on switch vendor there might be other features helping with ARP spoofing, usually at Layer 2 switch like
Dynamic ARP Inspection
Dynamic ARP Inspection. - It is quite easy to make switch policy so that each customer port can exchange packets only with router port without need of
LAN Isolation
LAN Isolation feature, however not many people do it