Flush Routing, MAC, and ARP Tables for a VLAN

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 Global Configuration mode:

    enable

    configure terminal

  2. Flush IP routing tables by VLAN:

    vlan action <1-4059> flushIp

  3. Flush the MAC address tables by VLAN:
    vlan action <1-4059> 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 VLAN:

    vlan action <1-4059> flushArp

  5. Flush all tables with one command:

    vlan action <1-4059> all

  6. Clear a routing table for a VLAN:

    clear ip route vlan <1-4059>

Example

Switch:1>enable
Switch:1#configure terminal
Switch:1(config-if)#vlan action 123 all
Switch:1(config)#clear ip route vlan 123

Variable Definitions

The following table defines parameters for the vlan action and clear ip route vlan commands.

Variable

Value

<1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.