From: Dan Shechter Gelles (dans@danbsd.a.la)
Date: Sat May 29 2004 - 19:26:48 GMT-3
If you have word on the lab, then you can use "mail merge" as a scripting
tool.
Any way, that a very good Idea of yours to check connectivity!
With notepad: write the list off routes, but before any route write the
letter 'Z' and afterwards, write the letter 'X'
Z 192.168.10.0 255.255.255.0 X
Z 192.168.11.0 255.255.252.0 X
then, use the replace function of notepad to replace all 'Z' to 'show ip
route' :
show ip route 192.168.10.0 255.255.255.0 X
show ip route 192.168.11.0 255.255.252.0 X
and replace all 'X' to ' | include not ' :
show ip route 192.168.10.0 255.255.255.0 | include not
show ip route 192.168.11.0 255.255.252.0 | include not
Then use the output to check every router and switch!
RTR# show ip route 192.168.10.0 255.255.255.0 | include not
RTR# show ip route 192.168.11.0 255.255.252.0 | include not
% Subnet not in table
Then you know that 192.168.11.0 255.255.252.0 is not in table
On Sat, 29 May 2004, Michael Snyder wrote:
> This is repost on how to make a script to check the routing table. It's
> not replacement for ping scripts, but an addition to them. Ping scripts
> can be fooled by default routes, this method below can't be.
>
> -Michael
>
> ------------------------------------------------------------------------
>
> I was working on a lab this morning, and for some reason my three way
> redistribution wasn't working.
>
> After jumping router to router for 30 minutes, I thought gee I wish I
> had a command to show me every missing route.
>
> So I wrote one. It's a variation of an old fashion ping script.
>
> I'll walk you thru how I composed the script. It took me about 5
> minutes.
>
> ------------------------------------------------------------------------
>
> First I did a `show run | i ip address`
>
> And pasted the results to notepad from every router.
>
> ------------------------------------------------------------------------
>
>
> ip address 170.1.1.1 255.255.255.255
> ip address 150.50.200.1 255.255.255.0
> ip address 170.1.150.1 255.255.255.0
>
> ip address 170.1.2.2 255.255.255.255
> ip address 172.16.1.1 255.255.255.0
> ip address 172.16.3.1 255.255.255.0
> ip address 172.16.2.1 255.255.255.0
> ip address 172.16.0.1 255.255.255.0
> no ip address
> no ip address
> ip address 170.1.100.2 255.255.255.0
> ip address 170.1.150.2 255.255.255.0
> ip address 150.50.9.5 255.255.255.252
>
> ip address 170.1.4.4 255.255.255.255
> ip address 192.168.10.1 255.255.255.0
> no ip address
> ip address 170.1.100.4 255.255.255.0
> no ip address
>
> ip address 170.1.5.5 255.255.255.255
> ip address 170.1.200.5 255.255.255.224
> no ip address
> ip address 170.1.100.5 255.255.255.0
> no ip address
> no ip address
>
> ip address 170.1.6.6 255.255.255.255
> ip address 170.1.200.6 255.255.2.224
> no ip address
> ip address 170.1.100.6 255.255.255.0
> ip address 170.1.32.6 255.255.255.0
> no ip address
>
> ip address 170.1.7.7 255.255.255.255
> ip address 170.1.200.7 255.255.255.224
> ip address 170.1.24.7 255.255.255.0
>
> ip address 170.1.8.8 255.255.255.255
> ip address 150.50.4.8 255.255.255.0
> ip address 170.1.24.8 255.255.255.0
>
> ip address 170.1.9.9 255.255.255.255
> ip address 170.1.32.9 255.255.255.0
> no ip address
> ip address 170.1.15.9 255.255.255.192
>
> ------------------------------------------------------------------------
>
> Next in notepad, I did a replace all of `no ip address` with a null
> string. Then I went thru the listing deleting the empty lines.
>
> ------------------------------------------------------------------------
>
> ip address 170.1.1.1 255.255.255.255
> ip address 150.50.200.1 255.255.255.0
> ip address 170.1.150.1 255.255.255.0
> ip address 170.1.2.2 255.255.255.255
> ip address 172.16.1.1 255.255.255.0
> ip address 172.16.3.1 255.255.255.0
> ip address 172.16.2.1 255.255.255.0
> ip address 172.16.0.1 255.255.255.0
> ip address 170.1.100.2 255.255.255.0
> ip address 170.1.150.2 255.255.255.0
> ip address 150.50.9.5 255.255.255.252
> ip address 170.1.4.4 255.255.255.255
> ip address 192.168.10.1 255.255.255.0
> ip address 170.1.100.4 255.255.255.0
> ip address 170.1.5.5 255.255.255.255
> ip address 170.1.200.5 255.255.255.224
> ip address 170.1.100.5 255.255.255.0
> ip address 170.1.6.6 255.255.255.255
> ip address 170.1.200.6 255.255.255.224
> ip address 170.1.100.6 255.255.255.0
> ip address 170.1.32.6 255.255.255.0
> ip address 170.1.7.7 255.255.255.255
> ip address 170.1.200.7 255.255.255.224
> ip address 170.1.24.7 255.255.255.0
> ip address 170.1.8.8 255.255.255.255
> ip address 150.50.4.8 255.255.255.0
> ip address 170.1.24.8 255.255.255.0
> ip address 170.1.9.9 255.255.255.255
> ip address 170.1.32.9 255.255.255.0
> ip address 170.1.15.9 255.255.255.192
>
> ------------------------------------------------------------------------
>
> This lab uses a summary address of 172.16.0.0/22, so I chose to pull out
> the 172.16.1.1/24 routes and use the summary instead.
>
> Here's a important part, I needed a unique post-delimiter on the ends
> of the statements for text search and replace later. So I quickly
> appended the ` char to the ends of the statements by hand. Each
> statement begins the same `ip address` text, so I don't need a
> pre-delimiter here.
>
> ------------------------------------------------------------------------
>
> ip address 170.1.1.1 255.255.255.255 `
> ip address 150.50.200.1 255.255.255.0 `
> ip address 170.1.150.1 255.255.255.0 `
> ip address 170.1.2.2 255.255.255.255 `
> ip address 172.16.0.0 255.255.252.0 `
> ip address 170.1.100.2 255.255.255.0 `
> ip address 170.1.150.2 255.255.255.0 `
> ip address 150.50.9.5 255.255.255.252 `
> ip address 170.1.4.4 255.255.255.255 `
> ip address 192.168.10.1 255.255.255.0 `
> ip address 170.1.100.4 255.255.255.0 `
> ip address 170.1.5.5 255.255.255.255 `
> ip address 170.1.200.5 255.255.255.224 `
> ip address 170.1.100.5 255.255.255.0 `
> ip address 170.1.6.6 255.255.255.255 `
> ip address 170.1.200.6 255.255.255.224 `
> ip address 170.1.100.6 255.255.255.0 `
> ip address 170.1.32.6 255.255.255.0 `
> ip address 170.1.7.7 255.255.255.255 `
> ip address 170.1.200.7 255.255.255.224 `
> ip address 170.1.24.7 255.255.255.0 `
> ip address 170.1.8.8 255.255.255.255 `
> ip address 150.50.4.8 255.255.255.0 `
> ip address 170.1.24.8 255.255.255.0 `
> ip address 170.1.9.9 255.255.255.255 `
> ip address 170.1.32.9 255.255.255.0 `
> ip address 170.1.15.9 255.255.255.192 `
>
> ------------------------------------------------------------------------
>
> Here's the payoff. Using notepad, replace all `ip address` with `show
> ip route` Also replace our delimiting char ` with `| i not`
>
> ------------------------------------------------------------------------
>
> show ip route 170.1.1.1 255.255.255.255 | i not
> show ip route 150.50.200.1 255.255.255.0 | i not
> show ip route 170.1.150.1 255.255.255.0 | i not
> show ip route 170.1.2.2 255.255.255.255 | i not
> show ip route 172.16.0.0 255.255.252.0 | i not
> show ip route 170.1.100.2 255.255.255.0 | i not
> show ip route 170.1.150.2 255.255.255.0 | i not
> show ip route 150.50.9.5 255.255.255.252 | i not
> show ip route 170.1.4.4 255.255.255.255 | i not
> show ip route 192.168.10.1 255.255.255.0 | i not
> show ip route 170.1.100.4 255.255.255.0 | i not
> show ip route 170.1.5.5 255.255.255.255 | i not
> show ip route 170.1.200.5 255.255.255.224 | i not
> show ip route 170.1.100.5 255.255.255.0 | i not
> show ip route 170.1.6.6 255.255.255.255 | i not
> show ip route 170.1.200.6 255.255.255.224 | i not
> show ip route 170.1.100.6 255.255.255.0 | i not
> show ip route 170.1.32.6 255.255.255.0 | i not
> show ip route 170.1.7.7 255.255.255.255 | i not
> show ip route 170.1.200.7 255.255.255.224 | i not
> show ip route 170.1.24.7 255.255.255.0 | i not
> show ip route 170.1.8.8 255.255.255.255 | i not
> show ip route 150.50.4.8 255.255.255.0 | i not
> show ip route 170.1.24.8 255.255.255.0 | i not
> show ip route 170.1.9.9 255.255.255.255 | i not
> show ip route 170.1.32.9 255.255.255.0 | i not
> show ip route 170.1.15.9 255.255.255.192 | i not
>
> ------------------------------------------------------------------------
>
> Ok, lets try it on R4
>
> ------------------------------------------------------------------------
>
> R4#
> R4#
> R4# show ip route 170.1.1.1 255.255.255.255 | i not
> R4# show ip route 150.50.200.1 255.255.255.0 | i not
> % Network not in table
> R4# show ip route 170.1.150.1 255.255.255.0 | i not
> R4# show ip route 170.1.2.2 255.255.255.255 | i not
> R4# show ip route 172.16.0.0 255.255.252.0 | i not
> R4# show ip route 170.1.100.2 255.255.255.0 | i not
> R4# show ip route 170.1.150.2 255.255.255.0 | i not
> R4# show ip route 150.50.9.5 255.255.255.252 | i not
> % Network not in table
> R4# show ip route 170.1.4.4 255.255.255.255 | i not
> R4# show ip route 192.168.10.1 255.255.255.0 | i not
> R4# show ip route 170.1.100.4 255.255.255.0 | i not
> R4# show ip route 170.1.5.5 255.255.255.255 | i not
> R4# show ip route 170.1.200.5 255.255.255.224 | i not
> % Subnet not in table
> R4# show ip route 170.1.100.5 255.255.255.0 | i not
> R4# show ip route 170.1.6.6 255.255.255.255 | i not
> R4# show ip route 170.1.200.6 255.255.255.224 | i not
> % Subnet not in table
> R4# show ip route 170.1.100.6 255.255.255.0 | i not
> R4# show ip route 170.1.32.6 255.255.255.0 | i not
> R4# show ip route 170.1.7.7 255.255.255.255 | i not
> % Subnet not in table
> R4# show ip route 170.1.200.7 255.255.255.224 | i not
> % Subnet not in table
> R4# show ip route 170.1.24.7 255.255.255.0 | i not
> % Subnet not in table
> R4# show ip route 170.1.8.8 255.255.255.255 | i not
> % Subnet not in table
> R4# show ip route 150.50.4.8 255.255.255.0 | i not
> % Network not in table
> R4# show ip route 170.1.24.8 255.255.255.0 | i not
> % Subnet not in table
> R4# show ip route 170.1.9.9 255.255.255.255 | i not
> R4# show ip route 170.1.32.9 255.255.255.0 | i not
> R4# show ip route 170.1.15.9 255.255.255.192 | i not
> R4#
>
> ------------------------------------------------------------------------
>
> There's my missing routes!!! For some reason rip isn't making it into
> ospf on R4.
>
> How would I use this in the lab? I would make this table early on, and
> update it throughout lab. Every lab is only going to have about 40
> routes or less, so the overhead of keeping a universal route script is
> acceptable, even you did it by hand without using notepad search and
> replace features.
>
> ------------------------------------------------------------------------
>
> At the bottom of this post, I am appending some new writing on a
> difference field of study of mine. It's the surest way I have of wide
> distribution. Think of it as an extended sig section. :)
>
> ------------------------------------------------------------------------
>
> Clouds Move Earth
>
> Every have a something nagging you in the back of your mind? Earth's Ice
> ages have been with me. If you look at graph of the last 500,000 years
> the pattern it's very periodic.
>
> Every 100,000 years or so we have a large buildup of ice at the poles.
>
> Like many others before me, I believe I've figured it out.
>
>
> Thought Exhibit #1
>
> Solar Flux from the sun is around 1400 watts/m^2
>
> http://solarsails.jpl.nasa.gov/introduction/how-sails-work.html
>
> The comment I would make here, is that is isn't an insignificant amount.
> To paraphase from the NASA web page posted above, it's enough to run a
> hair drier per area meter squared, 24 hours a day.
>
> Ourselves, our pets, our livestock, etc; run from this power. When you
> watch your dog, you are watching a photon process in action. That's not
> to mention you are using photons to watch the action which was caused by
> photons.
>
> Note here - Photon's include all of the EM frequency spectrum. Your cell
> phone uses photons, so does infrared heat lamps, and also AM radio; just
> as a few examples.
>
>
> Thought Exhibit #2
>
> Our Planet where we (us light sensing, photon powered, carbon based
> computers) live, is pulled to the center of the gravity well of our sun.
> We are also pushed away from the sun by solar flux.
>
> Radiation pressure which aids solar stability, also pushes at our planet
> everyday for the last 4 billon years or so.
>
> The round numbers I worked with in a previous thread was in the 100,000
> pounds per second range for the earth from solar flux. I fell safe using
> this as a first approximation. Compared to the mass of the earth, it is
> very small number but very consistent number. I believe it's safe to
> say, that from day one, earth has had radiation pressure pushing on it,
> just like it's had the sun's gravity pulling on it.
>
> You simply don't get two more fundamental forces in the universe than
> gravity and photons. One pulls, one pushes; both at infinite distances.
>
>
> Thought Exhibit #3
>
> Photons Momentum as it is in all cases, is a direct function of the
> energy of the photons.
>
> http://www.grc.nasa.gov/WWW/K-12/Numbers/Math/Mathematical_Thinking/sunl
> ight_exerts_pressure.htm
>
> NASA has a great calculation on the radiation pressure on earth.
> In last line, it states
> "For Earth, r = 6.37 x 103 km and m = 5.98 x 1024 kg, and the ratio5
> a/gs comes out to1.63 x 10-14
> The perturbation of the Earth due to the pressure of sunlight is too
> small to detect by any ordinary means."
>
> Which is ironic, because it is this very orbit perturbation that I
> strongly believe helps regulate Earth Ice ages!
>
>
> Thought Exhibit #4
>
> This section is the most important one of this post. The rest is just a
> logical conclusion of this section.
>
> It comes from basic theory of solar sails. It is that reflected light
> gives you a double push. Here's a quote from a one of the related web
> pages.
>
> "Two thing are happening: (1) the photon is absorbed by the sail,
> transferring its momentum p = E/c to the sail. Then (2) the photon is
> re-emitted, but in order to do so a momentum -p is transferred to the
> photon, but since momentum must be conserved then an additional +p must
> be given to the sail. The sail thus gains +2p, since reflection is
> actually an absorption followed by a re-emission.
>
> Another way to look at it is, the photon's original momentum is +p. The
> photon's final momentum is -p (same value, opposite direction). The
> change in momentum is 2p, which is the momentum imparted to the sail."
>
> So the reflected light (index) of our planet will affect the amount of
> force received from solar pressure. In basic terms, the color of the
> planet will affect it's Orbit!!!!!!!!!!!!! If the normal incoming
> radiation push is 100,000,000 pounds per second, and it goes up to
> 150,000,000 pounds per second. Well that's going to change things.
> Importantly since we don't know how much orbit perturbation it takes to
> change temperature on our world, we can't rule out this factor in any
> form or fashion.
>
> In a nutshell.
>
> We absorb light we get a value of solar push.
>
> We reflect light, we get double the value of solar push.
>
> Our reflective index of our planet will, and does, change the orbit of
> our planet.
>
>
> Thought Exhibit #5
>
> Now we just tie it together. Our friend water, does the rest.
>
> Snow greatly increases our reflective index.
>
> Clean white clouds increase our reflective index.
>
> Both water and blue glacier ice absorb photons, reducing our reflective
> index.
>
> They also absorb and keep heat from the photons.
>
>
> Thought Exhibit #6
>
> Let's cycle thru the system modes.
>
> 1} Let's start with the earth heating up causing lots of rain and cloud
> cover.
>
> 2} This causes the orbit to start to slightly increase. We're also
> delivering lots of water to the poles at this time.
>
> 3} Because gravity and photon pressure are nonlinear, the change in
> orbit causes drops in surface temperature, but ocean temperature lags
> behind, adding moisture, clouds, and snow to the surface.
>
> 4} Ocean temperature equalizes with surface temperature. Cloud formation
> decreases allowing snow to start melting.
>
> 5} Snow slowly melts allowing blue glacier ice to be exposed to photons.
> Solar radiation pressure decreases, changing the orbit again.
>
> 6} Temperature of the ocean and blue ice lag behind earth surface
> temperature. The poles slowly melt and ocean temperature increases.
>
> 7} Ocean increases moisture output, cycle repeats.
>
>
> Two notes
>
> 1) Each one is a multi-thousand year process, and I think you could
> write a 500 page book on any one of them.
> 2) The process also applies if the sun changes it's solar output, thus
> protecting earth in favor of liquid water.
>
> In summary, Water's two reflective states of Snow and Clouds greatly
> affect the reflective index of our planet.
>
> They can, and do move, our orbit in the favor of liquid water.
>
> _______________________________________________________________________
> 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 : Wed Jun 02 2004 - 11:12:19 GMT-3