cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16341
Views
10
Helpful
7
Replies

How to clear the mac address table on a 5505

jessica jestol
Level 1
Level 1

I had a site where we had to change out a server and the new server had the same IP. Cleared the arp on the L3 switch and was able to ping the new server from that switch. I could not ping it from the ASA 5505 directly connected to that switch. I could not find a way to clear the mac-address-table on the 5505 so I ended up having to reboot it which dropped the VPN tunnel and caused all kinds of headaches. Is there an easier way to do this?

7 Replies 7

Marvin Rhoads
Hall of Fame
Hall of Fame

johnlloyd_13
Level 9
Level 9

hi,

did you try the clear arp command?

John,

 

The arp table is MAC address to IP address mapping.

 

The MAC address table maps MAC addresses to physical ports in a switch (which function the 5505 includes).

I did try the clear arp command.

Ajay Saini
Level 7
Level 7

Hello,

 

'Clear mac-address-table' will only work in transparent mode. In routed mode, you can only view the mac address table by issuing 'show switch mac-address-table' 

 

https://www.cisco.com/c/en/us/td/docs/security/asa/asa-command-reference/A-H/cmdref1/c3.html#pgfId-2155522

 

The closest you can go in terms of clearing the mac address is 'clear arp' as John mentioned and that should resolve any stale mac address stored in switch fabric as well for ASA 5505.

 

-HTH

AJ

Ah thanks Ajay - I missed the firewall mode restriction on that command. Good catch.

This was my understanding as well but clear arp didn't resolve my issue. Only after rebooting the ASA was the new MAC associated with the correct IP. I cleared connections (even though sh conn didn't show any connections to that IP) and xlates on the off chance the natting was contributing but as I expected, it didn't make any difference.

Review Cisco Networking for a $25 gift card