My Countingdown

Showing posts with label OSPF. Show all posts
Showing posts with label OSPF. Show all posts

Tuesday, December 13, 2011

Lab 12. OSPF Network Point-to-Multipoint Non Broadcast



R1#
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
 ip address 123.123.123.1 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint non-broadcast
 frame-relay map ip 123.123.123.2 102
 frame-relay map ip 123.123.123.3 103
 no frame-relay inverse-arp
!
router ospf 1
 router-id 1.1.1.1
 network 0.0.0.0 255.255.255.255 area 0
 neighbor 123.123.123.3
 neighbor 123.123.123.2


R2#
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface Serial0/0
 ip address 123.123.123.2 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint non-broadcast
 frame-relay map ip 123.123.123.1 201
 frame-relay map ip 123.123.123.3 201
 no frame-relay inverse-arp
!
router ospf 2
 router-id 2.2.2.2
 network 0.0.0.0 255.255.255.255 area 0
  
R3#
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface Serial0/0
 ip address 123.123.123.3 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint non-broadcast
 frame-relay map ip 123.123.123.1 301
 frame-relay map ip 123.123.123.2 301
 no frame-relay inverse-arp
!
router ospf 3
 router-id 3.3.3.3
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0

Let’s check ospf int typr, ospf nei and routing table

Serial0/0 is up, line protocol is up
  Internet Address 123.123.123.1/24, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64
  Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT

R1(config-router)#do sh ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           0   FULL/  -        00:01:52    123.123.123.3   Serial0/0
2.2.2.2           0   FULL/  -        00:01:52    123.123.123.2   Serial0/0

R1(config-router)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 123.123.123.2, 00:12:10, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 123.123.123.3, 00:04:29, Serial0/0
     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, 00:04:29, Serial0/0
O       123.123.123.2/32 [110/64] via 123.123.123.2, 00:12:10, Serial0/0
C       123.123.123.0/24 is directly connected, Serial0/0

Make sure the ping is working

R2(config-if)#do ping 1.1.1.1
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/25/52 ms

R2(config-if)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/30/96 ms

Lab 11. OSPF Network Point-to-Multipoint



R1#
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
 ip address 123.123.123.1 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint
 frame-relay map ip 123.123.123.2 102
 frame-relay map ip 123.123.123.3 103
 no frame-relay inverse-arp
!
router ospf 1
 router-id 1.1.1.1
 network 0.0.0.0 255.255.255.255 area 0

R2#
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface Serial0/0
 ip address 123.123.123.2 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint
 frame-relay map ip 123.123.123.1 201
 frame-relay map ip 123.123.123.3 201
 no frame-relay inverse-arp
!
router ospf 2
 router-id 2.2.2.2
 network 0.0.0.0 255.255.255.255 area 0

R3#
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface Serial0/0
 ip address 123.123.123.3 255.255.255.0
 encapsulation frame-relay
 ip ospf network point-to-multipoint
 frame-relay map ip 123.123.123.1 301
 frame-relay map ip 123.123.123.2 301
 no frame-relay inverse-arp
!
router ospf 3
 router-id 3.3.3.3
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0

Let’s check the mapping and OSPF type

R1(config-router)#do sh fram map
Serial0/0 (up): ip 123.123.123.2 dlci 102(0x66,0x1860), static,
              CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.3 dlci 103(0x67,0x1870), static,
              CISCO, status defined, active
R1(config-router)#do sh ip ospf int s0/0
Serial0/0 is up, line protocol is up
  Internet Address 123.123.123.1/24, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64

Let’s check the ospf neighbor

R1(config-router)#do sh ip ospf nei
Neighbor ID     Pri   State              Dead Time   Address            Interface
2.2.2.2               0     FULL/  -        00:01:57     123.123.123.2   Serial0/0
3.3.3.3               0     FULL/  -        00:01:57     123.123.123.3   Serial0/0

From OSPF neighbor, OSPF Point-to-Multipoint no DR/BFR elected. Let’s check the routing table and make sure the ping is ok

R3(config)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 123.123.123.1, 00:03:20, Serial0/0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/129] via 123.123.123.1, 00:03:10, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     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, 00:03:10, Serial0/0
O       123.123.123.1/32 [110/64] via 123.123.123.1, 00:03:20, Serial0/0
C       123.123.123.0/24 is directly connected, Serial0/0

R3(config)#do ping 1.1.1.1
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/19/52 ms

R3(config)#do ping 2.2.2.2
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 = 8/26/80 ms

Lab 10. OSPF Network Point-to-Point




R1>ena
R1#conf t
R1(config)#int s0/0
R1(config-if)#no shu
R1(config-if)#encap fram

R1(config-if)#int s0/0.12 point-to-point
R1(config-subif)#ip add 12.12.12.1 255.255.255.0
R1(config-subif)#fram interface-dlci
R1(config-fr-dlci)#fram interface-dlci 102

R1(config-fr-dlci)#int s0/0.13 point-to-point
R1(config-subif)#ip add 13.13.13.1 255.255.255.0
R1(config-subif)#fram interface-dlci 103

R1(config-fr-dlci)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255

R2>
R2>ena
R2#conf t
R2(config)#int s0/0
R2(config-if)#encap fram
R2(config-if)#no shu

R2(config-if)#int s0/0.12 point
R2(config-subif)#ip add 12.12.12.2 255.255.255.0
R2(config-subif)#frame-relay interface-dlci 201

R2(config-fr-dlci)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255

R3>
R3>en
R3#conf t
R3(config)#int s0/0
R3(config-if)#encap fram
R3(config-if)#no shu

R3(config-if)#int s0/0.13 point
R3(config-subif)#ip add 13.13.13.3 25
R3(config-subif)#ip add 13.13.13.3 255.255.255.0
R3(config-subif)#fram int 301

R3(config-fr-dlci)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
  
Let’s check frame-relay mapping! Make sure the frame map is in active

R1(config-if)#do sh fram map
Serial0/0.12 (up): point-to-point dlci, dlci 102(0x66,0x1860), broadcast
          status defined, active
Serial0/0.13 (up): point-to-point dlci, dlci 103(0x67,0x1870), broadcast
          status defined, active

R2(config-if)#do sh fram map
Serial0/0.12 (up): point-to-point dlci, dlci 201(0xC9,0x3090), broadcast
          status defined, active

R3(config-if)#do sh fram map
Serial0/0.13 (up): point-to-point dlci, dlci 301(0x12D,0x48D0), broadcast
          status defined, active

Now let’s activate OSPF in all router

R1(config-if)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#net 1.1.1.1 0.0.0.0 are 0
R1(config-router)#net 12.12.12.1 0.0.0.0 are 0
R1(config-router)#net 13.13.13.1 0.0.0.0 are 0

R2(config-if)#router ospf 2
R2(config-router)#router- 2.2.2.2
R2(config-router)#net 2.2.2.2 0.0.0.0 are 0
R2(config-router)#net 12.12.12.2 0.0.0.0 are 0

R3(config-if)#router ospf 3
R3(config-router)#router- 3.3.3.3
R3(config-router)#net 3.3.3.3 0.0.0.0 are 0
R3(config-router)#net 13.13.13.3 0.0.0.0 are 0

Check ip ospf type and routing table

R3(config-router)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 13.13.13.1, 00:01:34, Serial0/0.13
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/129] via 13.13.13.1, 00:01:34, Serial0/0.13
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     12.0.0.0/24 is subnetted, 1 subnets
O       12.12.12.0 [110/128] via 13.13.13.1, 00:01:34, Serial0/0.13
     13.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, Serial0/0.13

R3(config-router)#do sh ip ospf int s0/0.13
Serial0/0.13 is up, line protocol is up
  Internet Address 13.13.13.3/24, Area 0
  Process ID 3, Router ID 3.3.3.3, Network Type POINT_TO_POINT, Cost: 64
  Transmit Delay is 1 sec, State POINT_TO_POINT

Make sure the ping is ok

R3(config-router)#do ping 2.2.2.2
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 = 16/40/72 ms

R3(config-router)#do ping 1.1.1.1
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 = 4/31/72 ms

R2(config-router)#do ping 1.1.1.1
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 = 4/20/48 ms

R2(config-router)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/49/84 ms

Lab 9. OSPF Network Broadcast



Before we already make OSPF adjacency using ‘neighbor xxx’ as default frame relay is Non Broadcast. Let’s make another solution using broadcast by adding command ‘ip ospf network broadcast’ in the interface.
  
R1#
int s0/0
  encap frame-relay
  ip addr 123.123.123.1 255.255.255.0
  frame-relay map ip 123.123.123.2 102 broadcast
  frame-relay map ip 123.123.123.3 103 broadcast

int lo0
  ip addr 1.1.1.1 255.255.255.255

R2#
int s0/0
  encap frame-relay
  ip addr 123.123.123.2 255.255.255.0
  frame-relay map ip 123.123.123.1 201 broadcast
  frame-relay map ip 123.123.123.3 201

int lo0
  ip addr 2.2.2.2 255.255.255.255

R3#
int s0/0
   encap frame-relay
   ip addr 123.123.123.3 255.255.255.0


   frame-relay map ip 123.123.123.1 301 broadcast
   frame-relay map ip 123.123.123.2 301
int lo0
   ip addr 3.3.3.3 255.255.255.255

Check frame mapping. It should be active

R1#sh fram map
Serial0/0 (up): ip 123.123.123.2 dlci 102(0x66,0x1860), static,
              broadcast,
              CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.3 dlci 103(0x67,0x1870), static,
              broadcast,
              CISCO, status defined, active

R2(config)#do sh fram map
Serial0/0 (up): ip 123.123.123.1 dlci 201(0xC9,0x3090), static,
              broadcast,
              CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.3 dlci 201(0xC9,0x3090), static,
              CISCO, status defined, active

R3#sh fram map
Serial0/0 (up): ip 123.123.123.2 dlci 301(0x12D,0x48D0), static,
              CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.1 dlci 301(0x12D,0x48D0), static,
              broadcast,
              CISCO, status defined, active

Make sure IP point to point already ok by test ping

R1#ping 123.123.123.2 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/23/52 ms

R1#ping 123.123.123.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/11/28 ms

R2(config)#do ping 123.123.123.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/19/52 ms

R2(config)#do ping 123.123.123.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/31/92 ms

Now, lets configure OSPF so the ip loopback can be ping

R1(config)#router ospf 1
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R1(config-router)#network 123.123.123.1 0.0.0.0 area 0

R2(config)#router ospf 2
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0
R2(config-router)#network 123.123.123.2 0.0.0.0 area 0

R3(config-if)#router ospf 3
R3(config-router)#network 3.3.3.3 0.0.0.0 area 0
R3(config-router)#network 123.123.123.3 0.0.0.0 area 0

Let’s make the OSPF to broadcast type

R1(config-router)#int s0/0
R1(config-if)#ip ospf network broadcast

R2(config-router)#int s0/0
R2(config-if)#ip ospf net broadc

R3(config-router)#int s0/0
R3(config-if)#ip ospf net broad

And make sure R1 is DR as hub!

R1(config-router)#int s0/0
R1(config-if)#ip ospf prio 255

R2(config-router)#int s0/0
R2(config-if)#ip ospf prio 0

R3(config-router)#int s0/0
R3(config-if)#ip ospf prio 0

Let’s check the routing table!

R2(config-if)#do sh ip ospf nei
Neighbor ID     Pri    State                 Dead Time   Address            Interface
1.1.1.1              255   FULL/DR         00:00:39     123.123.123.1   Serial0/0

R2(config-if)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 123.123.123.1, 00:01:00, Serial0/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 123.123.123.3, 00:01:00, Serial0/0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, Serial0/0

R2(config-if)#do ping 1.1.1.1
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/13/24 ms

R2(config-if)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/28/92 ms

Lab 8. OSPF Network Non Broadcast



Now, let's make example for OSPF Non Broadcast. By default, using Frame Relay is Non broadcast 

R1#
int s0/0
encap frame-relay
ip addr 123.123.123.1 255.255.255.0
frame-relay map ip 123.123.123.2 102 broadcast
frame-relay map ip 123.123.123.3 103 broadcast

int lo0
ip addr 1.1.1.1 255.255.255.255

R2#
int s0/0
  encap frame-relay
  ip addr 123.123.123.2 255.255.255.0
  frame-relay map ip 123.123.123.1 201 broadcast
  frame-relay map ip 123.123.123.3 201

int lo0
  ip addr 2.2.2.2 255.255.255.255

R3#
int s0/0
   encap frame-relay
   ip addr 123.123.123.3 255.255.255.0 
   frame-relay map ip 123.123.123.1 301 broadcast
   frame-relay map ip 123.123.123.2 301
int lo0
   ip addr 3.3.3.3 255.255.255.255

Check frame mapping. It should be active

R1#sh fram map
Serial0/0 (up): ip 123.123.123.2 dlci 102(0x66,0x1860), static,
              broadcast,
              CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.3 dlci 103(0x67,0x1870), static,
              broadcast,
              CISCO, status defined, active

R2(config)#do sh fram map
Serial0/0 (up): ip 123.123.123.1 dlci 201(0xC9,0x3090), static,
              broadcast,
              CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.3 dlci 201(0xC9,0x3090), static,
              CISCO, status defined, active

R3#sh fram map
Serial0/0 (up): ip 123.123.123.2 dlci 301(0x12D,0x48D0), static,
              CISCO, status defined, active
Serial0/0 (up): ip 123.123.123.1 dlci 301(0x12D,0x48D0), static,
              broadcast,
              CISCO, status defined, active

Make sure IP point to point already ok by test ping

R1#ping 123.123.123.2 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/23/52 ms

R1#ping 123.123.123.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/11/28 ms

R2(config)#do ping 123.123.123.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/19/52 ms

R2(config)#do ping 123.123.123.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.123.123.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/31/92 ms

Now, lets configure OSPF so the ip loopback can be ping

R1(config)#router ospf 1
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
R1(config-router)#network 123.123.123.1 0.0.0.0 area 0

R2(config)#router ospf 2
R2(config-router)#network 2.2.2.2 0.0.0.0 area 0
R2(config-router)#network 123.123.123.2 0.0.0.0 area 0

R3(config-if)#router ospf 3
R3(config-router)#network 3.3.3.3 0.0.0.0 area 0
R3(config-router)#network 123.123.123.3 0.0.0.0 area 0

Check OSPF neighbor

R1(config-router)#do sh ip ospf neighbor

R1(config-router)#

R2(config-if)#do sh ip ospf nei

R2(config-if)#




Hmm, actually default frame relay is Non Broadcast. It means no any OSPF adjacency to the neighbor by default. So we need to introduce all neighbors in OSPF

R3(config-if)#do sh ip ospf int s0/0
Serial0/0 is up, line protocol is up
  Internet Address 123.123.123.3/24, Area 0
  Process ID 3, Router ID 3.3.3.3, Network Type NON_BROADCAST, Cost: 64

 As we use hub, we need introduce all neighbors in hub only. In this example R1 is hub and R2 and R3 is spoke.

R1(config-if)#router ospf 1
R1(config-router)#neighbor 123.123.123.2
R1(config-router)#nei 123.123.123.3

Let's check the OSPF neighbor and routing table in R1, R2, and R3.

R1(config-router)#do sh ip ospf nei
Neighbor ID     Pri   State                        Dead Time   Address             Interface
2.2.2.2            1      FULL/DROTHER    00:01:46      123.123.123.2   Serial0/0
3.3.3.3            1      FULL/DR                 00:01:35      123.123.123.3   Serial0/0

R2(config-if)#do sh ip ospf nei
Neighbor ID     Pri   State                         Dead Time   Address             Interface
1.1.1.1             1     FULL/BDR               00:01:41      123.123.123.1   Serial0/0

R3(config-if)#do sh ip ospf nei
Neighbor ID     Pri   State                         Dead Time   Address             Interface
1.1.1.1             1     FULL/BDR               00:01:36      123.123.123.1   Serial0/0

R1(config-router)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 123.123.123.3, 00:05:27, Serial0/0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, Serial0/0

R2(config-if)#do sh ip rout
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, Serial0/0

R3(config-if)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 123.123.123.1, 00:05:41, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, Serial0/0

If we see in R2 and R3 the routing table is not complete. Than from neighbor information,  3.3.3.3 is the DR. So, this is the problem. R1 is hub and should be DR. Let's change R1 to be DR and R2/R3 can not be DR.

R1(config-router)#INT S0/0
R1(config-if)#ip ospf priority 255
R1(config-if)#shut
R1(config-if)#no shut

R2(config)#int s0/0
R2(config-if)#ip ospf prio 0
R2(config-if)#shut
R2(config-if)#no shu

R3(config-if)#int s0/0
R3(config-if)#ip ospf prio 0
R3(config-if)#shut
R3(config-if)#no shu

Just wait a moment... This is frame relay :)

*Mar  1 00:36:06.643: %OSPF-5-ADJCHG: Process 1, Nbr 0.0.0.0 on Serial0/0 from ATTEMPT to DOWN, Neighbor Down: Dead timer expired
*Mar  1 00:36:06.831: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Serial0/0 from LOADING to FULL, Loading Done
*Mar  1 00:36:06.955: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial0/0 from LOADING to FULL, Loading Done

Oups, now the neighbor adjacency already up again. Let's check again the OSPF neighbor and routing table :)

R1(config-if)#do sh ip ospf nei
Neighbor ID     Pri   State                        Dead Time   Address            Interface
2.2.2.2              0    FULL/DROTHER    00:01:57     123.123.123.2   Serial0/0
3.3.3.3              0    FULL/DROTHER    00:01:50     123.123.123.3   Serial0/0

R2(config-if)#do sh ip ospf nei
Neighbor ID     Pri    State                 Dead Time   Address            Interface
1.1.1.1             255   FULL/DR         00:01:56     123.123.123.1   Serial0/0

R3(config-if)#do sh ip ospf nei
Neighbor ID     Pri     State                Dead Time   Address            Interface
1.1.1.1             255   FULL/DR         00:01:37     123.123.123.1   Serial0/0

R1(config-if)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 123.123.123.2, 00:04:01, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 123.123.123.3, 00:04:01, Serial0/0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, Serial0/0

R2(config-if)#do sh ip rout
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 123.123.123.1, 00:04:15, Serial0/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 123.123.123.3, 00:04:15, Serial0/0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, Serial0/0

R3(config-if)#do sh ip rou
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 123.123.123.1, 00:04:32, Serial0/0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 123.123.123.2, 00:04:22, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.123.123.0 is directly connected, Serial0/0

Now R2 should be able to ping to R3 and vice versa

R2(config-if)#do ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/32/108 ms

R3(config-if)#do ping 2.2.2.2
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/29/84 ms

Lab 7. OSPF Totally Not So Stubby Area (NSSA)




In NSSA, we still find LSA type 3 or inter area OSPF routing table. To make only default route come up in routing table we can make the area to be Totally NSSA.


R2(config-router)#router ospf 2
R2(config-router)#area 1 nssa no-summary

Now check the routing table in R3

R3(config)#do sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is 23.23.23.2 to network 0.0.0.0

     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/11] via 23.23.23.2, 00:14:00, FastEthernet0/0
     33.0.0.0/32 is subnetted, 3 subnets
C       33.33.33.1 is directly connected, Loopback1
C       33.33.33.3 is directly connected, Loopback3
C       33.33.33.2 is directly connected, Loopback2
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     23.0.0.0/24 is subnetted, 1 subnets
C       23.23.23.0 is directly connected, FastEthernet0/0
O*IA 0.0.0.0/0 [110/11] via 23.23.23.2, 00:00:37, FastEthernet0/0

R3(config)#do sh ip ospf data

            OSPF Router with ID (3.3.3.3) (Process ID 3)

                Router Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum Link count
2.2.2.2         2.2.2.2         1129        0x80000004 0x0074F0 2
3.3.3.3         3.3.3.3         1128        0x80000004 0x0085D3 2

                Net Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum
23.23.23.3      3.3.3.3         1123        0x80000003 0x005475

                Summary Net Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum
0.0.0.0         2.2.2.2         63          0x80000001 0x00FC31

                Type-7 AS External Link States (Area 1)

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         2.2.2.2         490         0x80000001 0x00D0D8 0
33.33.33.1      3.3.3.3         1136        0x80000001 0x00DC3D 0
33.33.33.2      3.3.3.3         1139        0x80000001 0x00D246 0
33.33.33.3      3.3.3.3         1139        0x80000001 0x00C84F 0

Let’s try ping to area 100 (IP 100.100.100.1-100.100.100.3) and routing external from EIGRP (IP 100.100.100.4-100.100.100.7). It should be ping able.

R3(config)#do ping 100.100.100.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/54/96 ms

R3(config)#do ping 100.100.100.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/40/72 ms

R3(config)#do ping 100.100.100.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/36/52 ms

R3(config)#do ping 100.100.100.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/37/68 ms

R3(config)#do ping 100.100.100.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/40/76 ms

R3(config)#do ping 100.100.100.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/46/80 ms

R3(config)#do ping 100.100.100.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.100.100.7, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/50/88 ms

And make sure routing external RIP from R3 still in R1 and ping able.

R1(config)#do ping 33.33.33.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.33.33.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/48/88 ms

R1(config)#do ping 33.33.33.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.33.33.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/46/80 ms

R1(config)#do ping 33.33.33.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 33.33.33.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/36/56 ms