Site Tools


cisco:labs:00200

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
cisco:labs:00200 [2025/12/26 06:58] Namecisco:labs:00200 [2025/12/26 17:35] (current) Name
Line 72: Line 72:
 12.0.0.0/   auto-summary 12.0.0.0/   auto-summary
 12.0.0.0/24    directly connected, GigabitEthernet1</code> 12.0.0.0/24    directly connected, GigabitEthernet1</code>
 +
 +===== TCL Script =====
 +<code>r1#tclsh
 +r1(tcl)#foreach ipaddr {
 ++>(tcl)#12.0.0.2
 ++>(tcl)#2.2.2.2
 ++>(tcl)#} { ping $ipaddr }
 +Type escape sequence to abort.
 +Sending 5, 100-byte ICMP Echos to 12.0.0.2, timeout is 2 seconds:
 +!!!!!
 +Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
 +Type escape sequence to abort.
 +Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
 +!!!!!
 +Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
 +r1(tcl)#tclquit</code>
 +
 +<code>r2#tclsh
 +r2(tcl)#foreach ipaddr {
 ++>(tcl)#12.0.0.1
 ++>(tcl)#1.1.1.1
 ++>(tcl)#} { ping $ipaddr }
 +Type escape sequence to abort.
 +Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
 +!!!!!
 +Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/2 ms
 +Type escape sequence to abort.
 +Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
 +!!!!!
 +Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
 +r2(tcl)#tclquit</code>
 +
  
cisco/labs/00200.1766732294.txt.gz · Last modified: by Name