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!