I want to only allow the device that is connected to the switch port with a specific MAC address and a static IP address to access the network. If the device MAC or IP address is changed, it will not be allowed to access the network.

I use the MAC address table, but I also want to restrict the IP address. How can I accomplish this?

  • Are your switches layer-3 switches?
    – Ron Maupin
    Commented Mar 2, 2016 at 18:52
  • Did any answer help you? if so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Commented Aug 7, 2017 at 20:22

2 Answers 2


You can enable DHCP snooping, ARP inspection, etc. A host with a statically assigned IP address would need an exception to be manually entered in the switch for the port where the statically address host is connected.

You can also use 802.1X to verify that the host is allowed to connect to the network. This requires more infrastructure than just the switch.

You can also use VACLs to restrict traffic.


the best way to do it would be port security with sticky option. that way you can learn and remember the first mac address on the port and the port will go down if it detects any other mac address.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.