Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
Highlighted
New Member

Port security issues and MAC address sticky not saving MAC

Hi,

I am doing a practice lab as per attached step by step, and as per page 10-11, I enabled switchport security on ALS2 interfaces f0/6, f0/15-24. Contrary to the lab document, when doing show port-security interface f0/6, Total MAC address is not showing as 1.

 

Additionally on ALS1 I enabled the mac address sticky feature, and again when doing show port-security interface f0/6, Total MAC address is not showing as 1 while also Sticky MAC address is still set to 0.

 

Assigning an IP on the host and pinging the vlan gateway solved the issue, but at that moment the lab doesn't tell you to do so, so I'm worried I'm doing something wrong, since following the lab should provide the same results. Is this because a switch will not learn a MAC address if it doesn´t receive any packet from the host?

 

I am also attaching the pkt file as png for your perusal. Thanks in advance!

2 REPLIES

Re: Port security issues and MAC address sticky not saving MAC

Hi

This is normal as total mac address shows the number of Mac address learned and not yet purged.

If you issue the command "show port-security" you'll see the same number on current address column and if you issue "show port-security address" you'll see the Mac address

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Re: Port security issues and MAC address sticky not saving MAC

As you mentioned that it is showing correct after sending a packet to switch SVI or another host. 

I hope you are performing your lab on Cisco Packet Tracer or other software so there is no traffic without user interaction but in the real network, a system will generate some traffic without user information as DNS test, OS update etc. So you will not face the same issue in a real network.

 

I hope this will be helpful for you.

Thanks,

Deepak Kumar

130
Views
0
Helpful
2
Replies
CreatePlease to create content