Flushing Routing, MAC, and ARP Tables for a Port

Flush or clear the routing tables for administrative and troubleshooting purposes. The clear and flush commands perform the same function; they remove the contents of the table.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Flush IP routing tables by port:

    action flushIp

  3. Flush the MAC address tables by port:
    action flushMacFdb
    Note

    Note

    Flushing MAC address tables multiple times in a very short period of time can cause undefined errors. Wait at least 10 seconds between MAC flushes on VSP 8600 Series.

  4. Flush ARP tables by port:

    action flushArp

  5. Flush all tables with one command:

    action flushAll

  6. Exit to Global Configuration mode:

    exit

  7. Clear a routing table for a port:

    clear ip route gigabitethernet {slot/port[sub-port]}

Example

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#interface gigabitEthernet 1/1
Switch:1(config-if)#action flushAll
Switch:1(config-if)#exit
Switch:1(config)#clear ip route gigabitethernet 1/1

Variable Definitions

The following table defines parameters for the clear ip route gigabitethernet command.

Variable

Value

{slot/port[/sub-port]}

Identifies a single slot and port. If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.