• February 09, 2012, 11:31:02 AM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: clear ip routes  (Read 795 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 2157
    • Michael McNamara
clear ip routes
« on: July 28, 2010, 07:54:32 PM »
How do you clear the ip routing table?

$ clear ip routes 10.107.0.0/16

You need to substitue 10.107.0.0/16 for your network/mask.

Here's the complete command syntax;

$ help clear

Usage:
clear     <sub_commands> <flags>


Privilege: Manager & Operator & User

The clear command allows the user to clear specific router information.

The following sub-commands are supported:

   ip                - clear information related to IP routing.
                       This sub-command has its own options:
      routes         - clears routing information from the IP routing
                       table.  RIP, BGP, and EGP routes are supported.
                       The routing protocol will re-install the route(s)
                       if it has information for that route(s).
      arp            - Clears all ARP entries learned dynamically from this
                       IP interface. When no prefix_length is given, a
                       length of 32 will be assumed. Example :
                       'clear ip arp 192.32.143.196/24' will clear all
                       ARP entries on that subnet learned dynamically.
                       'clear ip arp 192.32.143.196/32' will clear just
                       that entry if learned dynamically.

The following options must be used:
   prefix/prefix_length - clear all routes within specified range.
   Command 'clear ip routes' or 'clear ip hosts' without the above
   options is not supported.


Cheers!
If you've found this site useful and helpful, please help me spread the word. Link to us in your blog or homepage or Tweet about us! - Thanks!