From: Michael Snyder (msnyder@revolutioncomputer.com)
Date: Sat Jan 31 2004 - 22:30:27 GMT-3
The `show ip route summ | i Total` is optional. It was the forerunner
of the script technique, when I was trying to find a way to check my
home labs.
I kept it; because it could show you extra routes that the script
doesn't. As a rule, the total number of routes (second value of the
Total line) should be the same on all routers.
-----Original Message-----
From: Danny.Andaluz@triaton-na.com [mailto:Danny.Andaluz@triaton-na.com]
Sent: Saturday, January 31, 2004 7:05 PM
To: msnyder@revolutioncomputer.com
Subject: RE: How to make a route not present script
This is great, Michael. I tried it and it works well. One question
though. Why the "show ip route summ | I Total" at the end? Is it
absolutely necessary to do this?
Thanks,
Danny
-----Original Message-----
From: Michael Snyder [mailto:msnyder@revolutioncomputer.com]
Sent: Saturday, January 31, 2004 6:39 PM
To: ccielab@groupstudy.com
Subject: How to make a route not present script
I posted detailed instructions a few months back.
These are different that ping scripts
1) Can't be fooled by a default route.
2) Can't be fooled by the wrong mask size.
3) Assumes that the route should be present.
Anyway, been using them for a while to check my home labs. Very happy
with the technique.
Mainly you do a `show run | i ip address` on each router;
R1#show run | i ip address
ip address 200.0.0.1 255.255.255.255
ip address 150.50.200.1 255.255.255.0
ip address 192.168.20.1 255.255.255.192
no ip address
Then cut the results to notepad, and using a series of search and
replace, you end up with the following.
; --- R1 ---
show ip route 200.0.0.1 255.255.255.255 | i not
show ip route 150.50.200.1 255.255.255.0 | i not
show ip route 192.168.20.1 255.255.255.192 | i not
; --- R2 ---
show ip route 200.0.0.2 255.255.255.255 | i not
show ip route 192.168.10.2 255.255.255.0 | i not
show ip route 192.168.20.2 255.255.255.192 | i not
; show ip route 192.168.25.2 255.255.255.0 | i not
; --- R4 ---
show ip route 200.0.0.4 255.255.255.255 | i not
show ip route 192.168.40.4 255.255.255.0 | i not
show ip route 192.168.10.4 255.255.255.0 | i not
; --- R5 ---
show ip route 200.0.0.5 255.255.255.255 | i not
show ip route 192.168.100.5 255.255.255.0 | i not
show ip route 192.168.10.5 255.255.255.0 | i not
; show ip route 192.168.25.5 255.255.255.0 | i not
; --- R6 ---
show ip route 200.0.0.6 255.255.255.255 | i not
show ip route 192.168.100.6 255.255.255.0 | i not
show ip route 192.168.10.6 255.255.255.0 | i not
show ip route 192.168.90.1 255.255.255.252 | i not
; --- R7 ---
show ip route 200.0.0.7 255.255.255.255 | i not
show ip route 192.168.100.7 255.255.255.0 | i not
show ip route 192.168.11.5 255.255.255.252 | i not
; --- R8 ---
show ip route 200.0.0.8 255.255.255.255 | i not
show ip route 192.168.80.8 255.255.255.224 | i not
show ip route 192.168.11.6 255.255.255.252 | i not
; --- R9 ---
show ip route 200.0.0.9 255.255.255.255 | i not
show ip route 192.168.90.2 255.255.255.252 | i not
show ip route 192.168.19.9 255.255.255.192 | i not
; external BBx
show ip route 192.168.1.0 255.255.255.0 | i not
show ip route 192.168.2.0 255.255.255.0 | i not
show ip route 192.168.3.0 255.255.255.0 | i not
show ip route 192.168.4.0 255.255.255.0 | i not
show ip route summ | i Total
The beauty here is the technique compares an ideal route list against
the actual route table on the router.
The difference being, `I wonder if I have all the routes?` to `Why isn't
the isis connected route on R4?`
Michael Snyder
Lead Network Engineer
CCNP/DP, CSS1, MCSE NT/2000
Revolution Computer Systems
(270) 443-7400
This archive was generated by hypermail 2.1.4 : Mon Feb 02 2004 - 09:07:52 GMT-3