TABLE 24 CLI display of IP route table (continued)
Field Description
Cost The route's cost.
Type The route type, which can be one of the following:
• B - The route was learned from BGP.
• D - The destination is directly connected to this Layer 3 switch.
• R - The route was learned from RIP.
• S - The route is a static route.
• * - The route and next-hop gateway are resolved through the ip
default-network setting.
• O - The route is an OSPF route. Unless you use the ospf option
to display the route table, "O" is used for all OSPF routes. If you
do use the ospf option, the following type codes are used:
• O - OSPF intra area route (within the same area).
• IA - The route is an OSPF inter area route (a route that passes
from one area into another).
• E1 - The route is an OSPF external type 1 route.
• E2 - The route is an OSPF external type 2 route.
Clearing IP routes
If needed, you can clear the entire route table or specic individual routes.
To clear all routes from the IP route table, enter the following command.
device# clear ip route
To clear route 10.157.22.0/24 from the IP routing table, enter the clear ip route command.
device# clear ip route 10.157.22.0/24
Syntax: clear ip route [ ip-addr ip-mask ]
or
Syntax: clear ip route [ ip-addr/mask-bits ]
Displaying IP
trac statistics
To display IP trac statistics, enter the show ip trac command at any CLI level.
device# show ip traffic
IP Statistics
139 received, 145 sent, 0 forwarded
0 filtered, 0 fragmented, 0 reassembled, 0 bad header
0 no route, 0 unknown proto, 0 no buffer, 0 other errors
ICMP Statistics
Received:
0 total, 0 errors, 0 unreachable, 0 time exceed
0 parameter, 0 source quench, 0 redirect, 0 echo,
0 echo reply, 0 timestamp, 0 timestamp reply, 0 addr mask
0 addr mask reply, 0 irdp advertisement, 0 irdp solicitation
Sent:
0 total, 0 errors, 0 unreachable, 0 time exceed
0 parameter, 0 source quench, 0 redirect, 0 echo,
0 echo reply, 0 timestamp, 0 timestamp reply, 0 addr mask
0 addr mask reply, 0 irdp advertisement, 0 irdp solicitation
UDP Statistics
1 received, 0 sent, 1 no port, 0 input errors
Displaying IP conguration information and statistics
FastIron Ethernet Switch Layer 3 Routing
134 53-1003627-04