cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1954
Views
0
Helpful
2
Replies

Automatic clear the MAC address in cisco switch

chanda_eng
Level 1
Level 1

Dear Team,

I have some question regarding to MAC Address on swtich. I have 2 switch connect together with port-security configure on switchA port11 which connect to switchB port01 that have PC1 connected to port02 of switchB. SwitchA configure "port-security maximum 2". After switchA learned MAC address from SwitchB it store both SwitchB mac address and PC1 mac address. After i remove PC1 and replace by PC2 on switchB, I found on port11 of switchA still store the mac address of PC1 that i already removed. And PC2 also cannot access to anywhere due to the maximum reached on port11 of switchA. So what to do next to clear the old mac address and renew by the new mac address of PC2. Please help ! The bellow is the configuration:

----------------------------------------------------------

interface FastEthernet0/11
 switchport access vlan 10
 switchport mode access
 switchport port-security maximum 2
 switchport port-security
 switchport port-security aging time 1
 switchport port-security violation restrict
 switchport port-security aging type inactivity
 switchport port-security mac-address sticky
 switchport port-security aging static

------------------------------------------------------------------

-------------------------------------------------------
P-SW01-ITOFC#sh mac  address-table interface f0/11
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
  10    3cce.733d.5681    STATIC      Fa0/11 
  10    d4be.d949.4423    STATIC      Fa0/11 


HP-SW01-ITOFC#sh port-security i
HP-SW01-ITOFC#sh port-security interface f0/11
Port Security              : Enabled
Port Status                : Secure-up
Violation Mode             : Restrict
Aging Time                 : 1 mins
Aging Type                 : Inactivity
SecureStatic Address Aging : Enabled
Maximum MAC Addresses      : 2
Total MAC Addresses        : 2
Configured MAC Addresses   : 0
Sticky MAC Addresses       : 2
Last Source Address:Vlan   : d4be.d949.4423:10
Security Violation Count   : 0
----------------------------------------------

 

 

- See more at: https://supportforums.cisco.com/discussion/12536741/automatic-clear-mac-address-cisco-switch#sthash.mPf0zsxu.dpuf

1 Accepted Solution

Accepted Solutions

InayathUlla Sharieff
Cisco Employee
Cisco Employee

could you share the pkt file ( you need to zip it and then upload it).

Else try removing 2 commands:-

switchport port-security mac-address sticky
 switchport port-security aging static 

View solution in original post

2 Replies 2

InayathUlla Sharieff
Cisco Employee
Cisco Employee

could you share the pkt file ( you need to zip it and then upload it).

Else try removing 2 commands:-

switchport port-security mac-address sticky
 switchport port-security aging static 

This configuration is in Real Switch and i just create diagram in pkt file for your understand only. But if you want it i can create the similar situation in pkt file. please check int the zip file. thanks