0

I was wondering if someone could help me with the needed cisco commands to configure a switch to only allow certain mac addresses on certain ports. So that one mac adres can only connect to the network through a specific port.

Also how to be able to configure to use port 24 as a trusted port and have all other ports set as untrusted (while still using the above mentioned allowing certain MAC addresses on specific ports)

This would be greatly appreciated!

Thanks in advance, Dempsey

1 Answers1

2

You can do that using many switch cisco features, something like:

port-security

set port security 1/1-2 enable            # enable port security
set port security 1/1-2 port max 5        # allow 5 MAC address
set port security 1/1-2 violation protect # drop packet beyond 5 MAC address

mac access-list

mac access-list extended ARP_Packet # creat ARP access-list

permit host X.X.X host Y.Y.Y # define action, allow or deny

end

static MAC

arpa X.X.X IP

Hope this helps.

cuonglm
  • 2,346
  • 2
  • 15
  • 20