cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
643
Views
1
Helpful
6
Replies

How do I clear dynamically learned mac addresses from my switch?

kevindo93
Level 1
Level 1

I have typed in the following to attempt clearing the dynamically learned mac addresses:

"clear mac address-table dynamic"

"clear mac-address table dynamic"

"clear port-security all interface"

"clear mac address-table"

All of these commands result in "invalid input detected at __ marker"

What am I doing wrong or what information will I need to be able to do what I need to do?

kevindo93_1-1703617164609.pngkevindo93_2-1703617217679.png

 

 

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

Hello @kevindo93 

The prompt > mean than your are not in the enable mode '#'.

'>' indicates that you are in user EXEC mode rather than privileged EXEC mode. To clear the MAC address table, you need to be in privileged EXEC mode.

Do enable command and enter the command to clear mac address table.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

6 Replies 6

M02@rt37
VIP
VIP

Hello @kevindo93 

The prompt > mean than your are not in the enable mode '#'.

'>' indicates that you are in user EXEC mode rather than privileged EXEC mode. To clear the MAC address table, you need to be in privileged EXEC mode.

Do enable command and enter the command to clear mac address table.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I think it worked based off of the screenshot

kevindo93_0-1703618471286.png

However, the following question in my lab asks "Do I see any MAC addresses? Why or Why not?" 
Based off of that screenshot, it looks like it's still showing the dynamically learned MAC addresses. So, why did the command not clear it? 

@kevindo93 

Note that Packet Tracer offers simulated IOS with functionality on the grounds of partial features...

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

So, do you mean that it won't clear the mac address table because I'm using packet tracer which is a simulated environment that offers functionality on partial features?

Can you share the 

Show port-secuirty mac 

MHM

@kevindo93 

You do it well with this command !

clear mac address-table dynamic

Test an icmp between 2 PC connected to your Switch. Check the MAC table and do a clear. Observe the table again.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.
Review Cisco Networking for a $25 gift card