Tuesday, September 14, 2010

OSPF Mock Lab - Another Challenge To Solve (Solution 1)

So after a little long I am back with Solution of OSPF mock lab challenge. But good part is that someone actually solved the puzzle and won the prize. 

Yup...Manish Salaria

Although his solution was different from mine and looks easier to configure, but if you will get into details about how packet is flowing between R2's loop-back and R6's loop-back then things might get little complicated to understand in first look.

Anyways here I am posting his solution, soon this week I'll post mine too. With his solution though I am not putting any explanation here but mine solution will be having detailed walk through.

I changed interface numbering a little bit as I tested this on different PC running Linux and different Set of IOS.  So you may want to adjust interface numbering under initial configuration I gave in first post.


Here is quick GNS topology I used: Click on Image for better view




So here we go: 


R1:
R1#sh ip int b | e una|do
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  123.123.123.1   YES manual up                    up     
FastEthernet1/0            14.14.14.1      YES manual up                  up     
Loopback0                  11.11.11.11     YES manual up                   up  



R1#sh run int s0/0
Building configuration...

Current configuration : 337 bytes
!
interface Serial0/0
 ip address 123.123.123.1 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint
 serial restart-delay 0
 no arp frame-relay
 frame-relay map ip 123.123.123.1 102
 frame-relay map ip 123.123.123.2 102 broadcast
 frame-relay map ip 123.123.123.3 103 broadcast
 no frame-relay inverse-arp
end


R1#sh run | s r o
router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 network 14.14.14.1 0.0.0.0 area 1
 network 123.123.123.1 0.0.0.0 area 0


R1#sh ip ro | b ^G  
Gateway of last resort is 14.14.14.4 to network 0.0.0.0

     33.0.0.0/24 is subnetted, 1 subnets
O       33.33.33.0 [110/65] via 123.123.123.3, 02:39:10, Serial0/0
     22.0.0.0/24 is subnetted, 1 subnets
O       22.22.22.0 [110/65] via 123.123.123.2, 02:39:10, Serial0/0
     144.144.0.0/32 is subnetted, 1 subnets
O       144.144.144.144 [110/2] via 14.14.14.4, 02:18:00, FastEthernet1/0
     11.0.0.0/24 is subnetted, 1 subnets
C       11.11.11.0 is directly connected, Loopback0
     123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       123.123.123.3/32 [110/64] via 123.123.123.3, 02:39:10, Serial0/0
O       123.123.123.2/32 [110/64] via 123.123.123.2, 02:39:10, Serial0/0
C       123.123.123.0/24 is directly connected, Serial0/0
     14.0.0.0/24 is subnetted, 1 subnets
C       14.14.14.0 is directly connected, FastEthernet1/0
O*E2 0.0.0.0/0 [110/1] via 14.14.14.4, 02:18:00, FastEthernet1/0



R2:


R2#sh prot | e una|do  
Global values:
  Internet Protocol routing is enabled
Serial0/0 is up, line protocol is up
  Internet address is 123.123.123.2/24
Loopback0 is up, line protocol is up
  Internet address is 22.22.22.22/24


R2#sh run int s0/0
Building configuration...

Current configuration : 289 bytes
!
interface Serial0/0
 ip address 123.123.123.2 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint
 serial restart-delay 0
 no arp frame-relay
 frame-relay map ip 123.123.123.1 201 broadcast
 frame-relay map ip 123.123.123.2 201
 no frame-relay inverse-arp
end





R2#sh run | s r o
router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
 network 123.123.123.2 0.0.0.0 area 0



 R2#sh ip ro | b ^G
Gateway of last resort is 123.123.123.1 to network 0.0.0.0

     33.0.0.0/24 is subnetted, 1 subnets
O       33.33.33.0 [110/129] via 123.123.123.1, 02:43:09, Serial0/0
     22.0.0.0/24 is subnetted, 1 subnets
C       22.22.22.0 is directly connected, Loopback0
     144.144.0.0/32 is subnetted, 1 subnets
O IA    144.144.144.144 [110/66] via 123.123.123.1, 02:41:42, Serial0/0
     11.0.0.0/24 is subnetted, 1 subnets
O       11.11.11.0 [110/65] via 123.123.123.1, 02:43:09, Serial0/0
     123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       123.123.123.3/32 [110/128] via 123.123.123.1, 02:43:09, Serial0/0
O       123.123.123.1/32 [110/64] via 123.123.123.1, 02:43:09, Serial0/0
C       123.123.123.0/24 is directly connected, Serial0/0
     14.0.0.0/24 is subnetted, 1 subnets
O IA    14.14.14.0 [110/65] via 123.123.123.1, 02:43:09, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 123.123.123.1, 02:22:04, Serial0/0
 

R3:


R3#sh prot | e una|do
Global values:
  Internet Protocol routing is enabled
Serial0/0 is up, line protocol is up
  Internet address is 123.123.123.3/24
Loopback0 is up, line protocol is up
  Internet address is 33.33.33.33/24


R3#sh run int s0/0
Building configuration...

Current configuration : 289 bytes
!
interface Serial0/0
 ip address 123.123.123.3 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint
 serial restart-delay 0
 no arp frame-relay
 frame-relay map ip 123.123.123.1 301 broadcast
 frame-relay map ip 123.123.123.3 301
 no frame-relay inverse-arp
end
 

 R3#sh run | s r o
 router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 network 123.123.123.3 0.0.0.0 area 0


R3#sh ip ro | b ^G
Gateway of last resort is 123.123.123.1 to network 0.0.0.0

     33.0.0.0/24 is subnetted, 1 subnets
C       33.33.33.0 is directly connected, Loopback0
     22.0.0.0/24 is subnetted, 1 subnets
O       22.22.22.0 [110/129] via 123.123.123.1, 02:46:13, Serial0/0
     144.144.0.0/32 is subnetted, 1 subnets
O IA    144.144.144.144 [110/66] via 123.123.123.1, 02:44:36, Serial0/0
     11.0.0.0/24 is subnetted, 1 subnets
O       11.11.11.0 [110/65] via 123.123.123.1, 02:46:13, Serial0/0
     123.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O       123.123.123.2/32 [110/128] via 123.123.123.1, 02:46:13, Serial0/0
O       123.123.123.1/32 [110/64] via 123.123.123.1, 02:46:13, Serial0/0
C       123.123.123.0/24 is directly connected, Serial0/0
     14.0.0.0/24 is subnetted, 1 subnets
O IA    14.14.14.0 [110/65] via 123.123.123.1, 02:46:13, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 123.123.123.1, 02:24:58, Serial0/0




R4:


R4#sh prot | e una|do
Global values:
  Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
  Internet address is 14.14.14.4/24
FastEthernet1/0 is up, line protocol is up
  Internet address is 45.45.45.4/24
Loopback0 is up, line protocol is up
  Internet address is 44.44.44.44/24
Loopback1 is up, line protocol is up
  Internet address is 144.144.144.144/24


R4#sh run | s r r
router rip
 version 2
 network 44.0.0.0
 network 45.0.0.0
 no auto-summary




R4#sh run | s r o
router ospf 1
 router-id 4.4.4.4
 log-adjacency-changes
 network 14.14.14.4 0.0.0.0 area 1
 default-information originate always


  
R4#sh ip ro | b  ^G
Gateway of last resort is 45.45.45.5 to network 0.0.0.0

     155.155.0.0/24 is subnetted, 1 subnets
R       155.155.155.0 [120/1] via 45.45.45.5, 00:00:24, FastEthernet1/0
     33.0.0.0/24 is subnetted, 1 subnets
O IA    33.33.33.0 [110/66] via 14.14.14.1, 02:28:36, FastEthernet0/0
     22.0.0.0/24 is subnetted, 1 subnets
O IA    22.22.22.0 [110/66] via 14.14.14.1, 02:28:36, FastEthernet0/0
     144.144.0.0/24 is subnetted, 1 subnets
C       144.144.144.0 is directly connected, Loopback1
     11.0.0.0/24 is subnetted, 1 subnets
O IA    11.11.11.0 [110/2] via 14.14.14.1, 02:28:36, FastEthernet0/0
     123.0.0.0/32 is subnetted, 3 subnets
O IA    123.123.123.3 [110/65] via 14.14.14.1, 02:28:36, FastEthernet0/0
O IA    123.123.123.2 [110/65] via 14.14.14.1, 02:28:36, FastEthernet0/0
O IA    123.123.123.1 [110/1] via 14.14.14.1, 02:28:36, FastEthernet0/0
     44.0.0.0/24 is subnetted, 1 subnets
C       44.44.44.0 is directly connected, Loopback0
     14.0.0.0/24 is subnetted, 1 subnets
C       14.14.14.0 is directly connected, FastEthernet0/0
     45.0.0.0/24 is subnetted, 1 subnets
C       45.45.45.0 is directly connected, FastEthernet1/0
R*   0.0.0.0/0 [120/1] via 45.45.45.5, 00:00:24, FastEthernet1/0



R5:


R5#sh prot | e una|do
Global values:
  Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
  Internet address is 45.45.45.5/24
FastEthernet1/0 is up, line protocol is up
  Internet address is 56.56.56.5/24
Loopback0 is up, line protocol is up
  Internet address is 55.55.55.55/24
Loopback1 is up, line protocol is up
  Internet address is 155.155.155.155/24


R5#sh run | i ip route
ip route 0.0.0.0 0.0.0.0 45.45.45.4
 

 R5#sh run | s r r
 router rip
 version 2
 network 45.0.0.0
 network 155.155.0.0
 default-information originate
 no auto-summary



R5#sh run | s r o    
router ospf 1
 router-id 5.5.5.5
 log-adjacency-changes
 network 56.56.56.5 0.0.0.0 area 2
 default-information originate



R5#sh ip ro | b ^G
Gateway of last resort is 45.45.45.4 to network 0.0.0.0

     155.155.0.0/24 is subnetted, 1 subnets
C       155.155.155.0 is directly connected, Loopback1
     55.0.0.0/24 is subnetted, 1 subnets
C       55.55.55.0 is directly connected, Loopback0
     66.0.0.0/24 is subnetted, 1 subnets
O       66.66.66.0 [110/2] via 56.56.56.6, 00:01:00, FastEthernet1/0
     56.0.0.0/24 is subnetted, 1 subnets
C       56.56.56.0 is directly connected, FastEthernet1/0
     44.0.0.0/24 is subnetted, 1 subnets
R       44.44.44.0 [120/1] via 45.45.45.4, 00:00:07, FastEthernet0/0
     45.0.0.0/24 is subnetted, 1 subnets
C       45.45.45.0 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 [1/0] via 45.45.45.4

 

R6:


R6#sh prot | e una|do
Global values:
  Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
  Internet address is 56.56.56.6/24
Loopback0 is up, line protocol is up
  Internet address is 66.66.66.66/24


 R6#sh run | s r o
 router ospf 1
 router-id 6.6.6.6
 log-adjacency-changes
 network 56.56.56.6 0.0.0.0 area 2



R6#sh ip ro | b ^G
Gateway of last resort is 56.56.56.5 to network 0.0.0.0

     55.0.0.0/24 is subnetted, 1 subnets
O       55.55.55.0 [110/2] via 56.56.56.5, 02:12:56, FastEthernet0/0
     66.0.0.0/24 is subnetted, 1 subnets
C       66.66.66.0 is directly connected, Loopback0
     56.0.0.0/24 is subnetted, 1 subnets
C       56.56.56.0 is directly connected, FastEthernet0/0
O*E2 0.0.0.0/0 [110/1] via 56.56.56.5, 02:03:20, FastEthernet0/0

Final Reachability Check using TCL:


tclsh
foreach address {
123.123.123.1
14.14.14.1
11.11.11.11
123.123.123.2
22.22.22.22
123.123.123.3
33.33.33.33
14.14.14.4
45.45.45.4
44.44.44.44
144.144.144.144
45.45.45.5
56.56.56.5
55.55.55.55
155.155.155.155
56.56.56.6
66.66.66.66
} {ping $address}



HTH...
Deepak Arora



Thursday, September 9, 2010

CCIE Troubleshooting Labs - From Tripple CCIE DAN Shechter

If you preparing for CCIE R&S then you must aware about 2 Hours Long Hands On Complex Troubleshooting Section it has got since Ver 4 Blueprint introduced.

To help people further; Popular CCIE Instructor Narbik K along with CCIE DAN S have written a TS Workbook. 


Apart from that DAN is running a blog where he posts TS tickets in free for R&S candidates.

So here is quick link to DAN's Blog : http://dans-net.com/TS_mini/

If you interested in buying whole TS workbook please visit : 


Also worth to mention that 1 complete TS Lab out of that workbook is free to download as sample.

and of-course...they are not paying me anything to share all this info :-)

HTH...
Deepak Arora

Tuesday, September 7, 2010

Frame-Relay Switching & Unnumbered Interfaces

So after staying away from my blog I am back again with some more exiting stuff for today.

As everyone know that New CCIE Ver 4 Lab consists many new topics. One topic among that all new exiting stuff is Frame-Relay Switching. I have already explained FR Switching in by previous blog post HERE

But that was all basic stuff. Now today we gonna add little more stuff over top of it.

The idea came into mind when one friend sent me a scenario and diagram asking about it's solution in my opinion. He was attempting one mock lab today. So I thought to bring that idea here for everyone.


Here is the quick diagram - Click on image for better view :)


Here were the quick requirements:


1. Use LMI type CISCO over FR-SW
2. On R1 & R3 LMI Autosense should be enabled
3. On R1 & R3 don't use any Static FR Mappings or Inverse ARP
4. Use PPP Over FR between R1 and R3
5. Take any IP Address from any available physical interface 
   as mentioned in diagram.
6. Keep In mind that in future you are supposed to run Multi-Link
    , so plan things accordingly at this initial stage. 


Cool...isn't it ?   :-)


What would be your solution ?


Here is mine:

Lets configure FR-SW first:

!        
frame-relay switching

!
FR-SW#sh run int s0/0
Building configuration...

Current configuration : 191 bytes
!
interface Serial0/0
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay lmi-type cisco
 frame-relay intf-type dce
 frame-relay route 231 interface Serial0/1 233
end
!
FR-SW#
FR-SW#sh run int s0/1
Building configuration...

Current configuration : 191 bytes
!
interface Serial0/1
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay lmi-type cisco
 frame-relay intf-type dce
 frame-relay route 233 interface Serial0/0 231
end
!
FR-SW#


Now lets hop on to R1 and configure it:

R1#sh run int multilink1
Building configuration...

Current configuration : 121 bytes
!
interface Multilink1
 ip unnumbered FastEthernet0/0
 no peer neighbor-route
 ppp multilink
 ppp multilink group 1
end

!
R1#sh run int Virtual-Template1
Building configuration...

Current configuration : 89 bytes
!
interface Virtual-Template1
 no ip address
 ppp multilink
 ppp multilink group 1
end

!
R1#sh run int s0/0
Building configuration...

Current configuration : 171 bytes
!
interface Serial0/0
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay interface-dlci 231 ppp Virtual-Template1
 no frame-relay inverse-arp
end

!
R1#sh run int f0/0
Building configuration...

Current configuration : 89 bytes
!
interface FastEthernet0/0
 ip address 10.0.0.1 255.0.0.0
 duplex auto
 speed auto
end

!
R1#sh run | s r o
router ospf 1
 log-adjacency-changes
 network 10.0.0.1 0.0.0.0 area 0

!

Now Lets hop on to R3:


R3#sh run int mu1
Building configuration...

Current configuration : 121 bytes
!
interface Multilink1
 ip unnumbered FastEthernet0/0
 no peer neighbor-route
 ppp multilink
 ppp multilink group 1
end

!
R3#sh run int Virtual-temp1
Building configuration...

Current configuration : 89 bytes
!
interface Virtual-Template1
 no ip address
 ppp multilink
 ppp multilink group 1
end

!
R3#sh run int s0/0
Building configuration...

Current configuration : 171 bytes
!
interface Serial0/0
 no ip address
 encapsulation frame-relay
 clock rate 2000000
 frame-relay interface-dlci 233 ppp Virtual-Template1
 no frame-relay inverse-arp
end

!
R3#sh run int f0/0
Building configuration...

Current configuration : 89 bytes
!
interface FastEthernet0/0
 ip address 20.0.0.1 255.0.0.0
 duplex auto
 speed auto
end

!
R3#sh run | s r o
router ospf 1
 log-adjacency-changes
 network 20.0.0.1 0.0.0.0 area 0

!

Lets verify reach-ability from R1's Ethernet to R2's Ethernet interface since we disabled PPP peer neighbor route:


R1#ping 20.0.0.1 so f0/0 r 10

Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 20.0.0.1, timeout is 2 seconds:
Packet sent with a source address of 10.0.0.1
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 116/196/260 ms



Ping me on IM if you don't understand something just in case, because All I presented here was just verification and config I did without much theory details.


BTW... FR LMI Autosense feature is enabled by default in IOS 12.4T which is default in R&S Lab.

HTH....

Deepak Arora