From: Arvind Yadav (arvindyadav@comcast.net)
Date: Wed Feb 04 2004 - 01:24:40 GMT-3
this is excellent.
----- Original Message -----
From: "Michael Snyder" <msnyder@revolutioncomputer.com>
To: <ccielab@groupstudy.com>
Sent: Saturday, January 31, 2004 6:39 PM
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
>
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Fri Mar 05 2004 - 07:13:45 GMT-3