Site Tools


cisco:labs:00300

Differences

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

Link to this comparison view

Next revision
Previous revision
cisco:labs:00300 [2025/12/26 06:21] – created Namecisco:labs:00300 [2025/12/26 17:51] (current) Name
Line 1: Line 1:
-====== Lab 00300 OSPF 2 Routers, IOS-XE ======+====== Lab 00300 OSPFv2 2 Routers, IOS-XE ======
  
-{{ :cisco:labs:00200.jpg?700 |}}+{{ :cisco:labs:00300.jpg?700 |}}
  
   - Complete [[cisco:labs:00000|Lab 00000 Initial Config 2 Routers, IOS-XE]]\\    - Complete [[cisco:labs:00000|Lab 00000 Initial Config 2 Routers, IOS-XE]]\\ 
Line 8: Line 8:
 <code>en <code>en
 conf t conf t
-router rip +router ospf 1 
- network 1.0.0.0 + network 1.1.1.1 0.0.0.0 area 
- network 12.0.0.0</code>+ network 12.0.0.1 0.0.0.0 area 0</code>
  
 ===== Router 2 ===== ===== Router 2 =====
 <code>en <code>en
 conf t conf t
-router rip +router ospf 1 
- network 2.0.0.0 + network 2.2.2.2 0.0.0.0 area 
- network 12.0.0.0</code>+ network 12.0.0.2 0.0.0.0 area 0</code>
  
  
 ===== Verification ===== ===== Verification =====
-<code>show ip route | b Gate+<code>r1#show ip route | b Gate
 Gateway of last resort is not set Gateway of last resort is not set
  
       1.0.0.0/32 is subnetted, 1 subnets       1.0.0.0/32 is subnetted, 1 subnets
 C        1.1.1.1 is directly connected, Loopback0 C        1.1.1.1 is directly connected, Loopback0
-R     2.0.0.0/[120/1] via 12.0.0.2, 00:00:27, GigabitEthernet1+      2.0.0.0/32 is subnetted, 1 subnets 
 +O        2.2.2.2 [110/2] via 12.0.0.2, 00:01:42, GigabitEthernet1
       12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks       12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
 C        12.0.0.0/24 is directly connected, GigabitEthernet1 C        12.0.0.0/24 is directly connected, GigabitEthernet1
 L        12.0.0.1/32 is directly connected, GigabitEthernet1</code> L        12.0.0.1/32 is directly connected, GigabitEthernet1</code>
 +
 +<code>r1#show ip ospf nei
 +
 +Neighbor ID     Pri   State           Dead Time   Address         Interface
 +2.2.2.2             FULL/DR         00:00:36    12.0.0.2        GigabitEthernet1</code>
  
 <code>r1#ping 2.2.2.2 <code>r1#ping 2.2.2.2
Line 40: Line 46:
 Gateway of last resort is not set Gateway of last resort is not set
  
-R     1.0.0.0/[120/1] via 12.0.0.1, 00:00:24, GigabitEthernet1+      1.0.0.0/32 is subnetted, 1 subnets 
 +O        1.1.1.1 [110/2] via 12.0.0.1, 00:03:30, GigabitEthernet1
       2.0.0.0/32 is subnetted, 1 subnets       2.0.0.0/32 is subnetted, 1 subnets
 C        2.2.2.2 is directly connected, Loopback0 C        2.2.2.2 is directly connected, Loopback0
Line 46: Line 53:
 C        12.0.0.0/24 is directly connected, GigabitEthernet1 C        12.0.0.0/24 is directly connected, GigabitEthernet1
 L        12.0.0.2/32 is directly connected, GigabitEthernet1</code> L        12.0.0.2/32 is directly connected, GigabitEthernet1</code>
 +
 +<code>r2#show ip ospf nei
 +
 +Neighbor ID     Pri   State           Dead Time   Address         Interface
 +1.1.1.1             FULL/BDR        00:00:38    12.0.0.1        GigabitEthernet1</code>
  
 <code>r2#ping 1.1.1.1 <code>r2#ping 1.1.1.1
Line 52: Line 64:
 !!!!! !!!!!
 Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms</code> Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms</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/00300.1766730106.txt.gz · Last modified: by Name