cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
923
Views
0
Helpful
4
Replies

MAC address port security

Murray Bown
Level 1
Level 1

Hi all, having looked around this forum and not finding the answer i thought I'd post a question.

I have a WS-C2960-48TT-L, 12.2(25)SEE3 and I need to configure port security, specifically I need to configure the same set of computer MAC address' on every port on the switch so that they can plug into any port.

Ant help greatly appreciated.

4 Replies 4

skarthic
Cisco Employee
Cisco Employee

Thanks for the reply. I have followed that document but when i try to apply the command

"switchport port-security mac-address 0014.22f8.d44d"

I receive the following error

"Found duplicate mac-address 0014.22f8.d44d."

This is the config I am trying to use.

switchport mode access
switchport port-security maximum 2
switchport port-security
switchport port-security mac-address 0014.22f8.d44d

Hi,

Looks like the port security doesnot allow you to configure the same MAC in multiple ports..

Instead try using MAC ACL

Switch(config)#mac access-list extended ?
  WORD  access-list name

Switch(config)#mac access-list extended MAC_ACL

Switch(config-ext-macl)#permit ?
  H.H.H  48-bit source MAC address
  any    any source MAC address
  host   A single source host

Switch(config-ext-macl)#permit host 222.222.222 any ---------------> Use the MAC address for the permitted host

Switch(config)#int gigabitEthernet 1/0/1
Switch(config-if)#mac access-group MAC_ACL In

You can create an ACL to allow certain hosts and apply them in the L2 ports..

Regards.

Hi,

I will give this a go today.

Thanks

Review Cisco Networking for a $25 gift card