2017年2月7日 星期二

IPv6 OSPFv3 Virtual Link (2)






R1#show ipv6 ospf neighbor 

            OSPFv3 Router with ID (1.1.1.1) (Process ID 1)

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
2.2.2.2           0   FULL/  -           -        10              OSPFv3_VL0
2.2.2.2           0   FULL/  -        00:00:32    5               Serial1/0
R1#
R1#

R1#show ipv6 route
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
C   2001:1:1:1::/64 [0/0]
     via FastEthernet0/0, directly connected
L   2001:1:1:1::1/128 [0/0]
     via FastEthernet0/0, receive
C   2001:2:2:2::/64 [0/0]
     via Serial1/0, directly connected
L   2001:2:2:2::1/128 [0/0]
     via Serial1/0, receive
O   2001:2:2:2::2/128 [110/64]
     via FE80::C802:3FF:FE44:8, Serial1/0
OI  2001:3:3:3::/64 [110/128]
     via FE80::C802:3FF:FE44:8, Serial1/0
L   FF00::/8 [0/0]
     via Null0, receive
R1#

R1#show ipv6 ospf virtual-links 

            OSPFv3 Router with ID (1.1.1.1) (Process ID 1)

Virtual Link OSPFv3_VL0 to router 2.2.2.2 is up
  Interface ID 10, IPv6 address 2001:2:2:2::2
  Run as demand circuit
  DoNotAge LSA allowed.
  Transit area 1, via interface Serial1/0, Cost of using 64
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Adjacency State FULL (Hello suppressed)
    Index 1/1/2, retransmission queue length 0, number of retransmission 0
    First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
    Last retransmission scan length is 0, maximum is 0
    Last retransmission scan time is 0 msec, maximum is 0 msec
R1#



R1#sh run
Building configuration...
!
hostname R1
!
ipv6 unicast-routing
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 ipv6 address 2001:1:1:1::1/64
 ipv6 enable
 ipv6 ospf 1 area 0
!
interface Serial1/0
 no ip address
 ipv6 address 2001:2:2:2::1/64
 ipv6 enable
 ipv6 ospf 1 area 1
 serial restart-delay 0
!
ipv6 router ospf 1
 router-id 1.1.1.1
 area 1 virtual-link 2.2.2.2
!
line con 0
line vty 0 4
!
end


R1#  




R2#show ipv6 ospf virtual-links 

            OSPFv3 Router with ID (2.2.2.2) (Process ID 1)

Virtual Link OSPFv3_VL0 to router 1.1.1.1 is up
  Interface ID 10, IPv6 address 2001:2:2:2::1
  Run as demand circuit
  DoNotAge LSA allowed.
  Transit area 1, via interface Serial1/0, Cost of using 64
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Adjacency State FULL (Hello suppressed)
    Index 1/1/2, retransmission queue length 0, number of retransmission 0
    First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
    Last retransmission scan length is 0, maximum is 0
    Last retransmission scan time is 0 msec, maximum is 0 msec
R2#copy run sta
Destination filename [startup-config]? 
Building configuration...
[OK]
R2#


R2#show ipv6 ospf nei

            OSPFv3 Router with ID (2.2.2.2) (Process ID 1)

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
1.1.1.1           0   FULL/  -           -        10              OSPFv3_VL0
1.1.1.1           0   FULL/  -        00:00:37    5               Serial1/0
3.3.3.3           0   FULL/  -        00:00:33    6               Serial1/1
R2#



R2#show ipv6 route   
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
O   2001:1:1:1::/64 [110/65]
     via FE80::C801:3FF:FE43:8, Serial1/0
C   2001:2:2:2::/64 [0/0]
     via Serial1/0, directly connected
O   2001:2:2:2::1/128 [110/64]
     via FE80::C801:3FF:FE43:8, Serial1/0
L   2001:2:2:2::2/128 [0/0]
     via Serial1/0, receive
C   2001:3:3:3::/64 [0/0]
     via Serial1/1, directly connected
L   2001:3:3:3::2/128 [0/0]
     via Serial1/1, receive
L   FF00::/8 [0/0]
     via Null0, receive
R2#
R2#

R2#
R2#
R2#sh run
Building configuration...
!
hostname R2
!
ipv6 unicast-routing
!
interface Serial1/0
 no ip address
 ipv6 address 2001:2:2:2::2/64
 ipv6 ospf 1 area 1
!
interface Serial1/1
 no ip address
 ipv6 address 2001:3:3:3::2/64
 ipv6 ospf 1 area 2
!
ipv6 router ospf 1
 router-id 2.2.2.2
 area 1 virtual-link 1.1.1.1
!
line con 0
line vty 0 4
!
end

R2#  



R3#sh ipv6 route              
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
       H - NHRP, I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea
       IS - ISIS summary, D - EIGRP, EX - EIGRP external, NM - NEMO
       ND - ND Default, NDp - ND Prefix, DCE - Destination, NDr - Redirect
       O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
OI  2001:1:1:1::/64 [110/129]
     via FE80::C802:3FF:FE44:8, Serial1/1
OI  2001:2:2:2::/64 [110/128]
     via FE80::C802:3FF:FE44:8, Serial1/1
OI  2001:2:2:2::1/128 [110/128]
     via FE80::C802:3FF:FE44:8, Serial1/1
OI  2001:2:2:2::2/128 [110/64]
     via FE80::C802:3FF:FE44:8, Serial1/1
C   2001:3:3:3::/64 [0/0]
     via Serial1/1, directly connected
L   2001:3:3:3::1/128 [0/0]
     via Serial1/1, receive
L   FF00::/8 [0/0]
     via Null0, receive
R3#


R3#show ipv6 ospf neighbor 

            OSPFv3 Router with ID (3.3.3.3) (Process ID 1)

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
2.2.2.2           0   FULL/  -        00:00:32    6               Serial1/1
R3#



R3#
R3#
R3#show run 
Building configuration...
!
hostname R3
!
ipv6 unicast-routing
!
interface Serial1/1
 no ip address
 ipv6 address 2001:3:3:3::1/64
 ipv6 ospf 1 area 2
!         
!
no cdp log mismatch duplex
ipv6 router ospf 1
 router-id 3.3.3.3
!
line con 0
line vty 0 4
!
end

R3# 



2017年2月5日 星期日

OSPF Stub no summary (totally stub)




R1#
R1#
R1#sh run
Building configuration...
!
hostname R1
!
interface Loopback0
 ip address 10.1.1.1 255.255.255.0
!
interface Loopback1
 ip address 10.1.2.1 255.255.255.0
!
interface Loopback2
 ip address 10.1.3.1 255.255.255.0
!
interface Serial1/0
 ip address 192.168.0.1 255.255.255.252
!
interface Serial1/1
 ip address 192.168.1.1 255.255.255.252
!
router ospf 1
 area 0 range 10.1.0.0 255.255.0.0
 area 1 stub no-summary
 redistribute static subnets
 network 10.1.1.0 0.0.0.255 area 0
 network 10.1.2.0 0.0.0.255 area 0
 network 10.1.3.0 0.0.0.255 area 0
 network 192.168.0.0 0.0.0.3 area 1
!
ip route 200.200.200.0 255.255.255.0 192.168.1.2
!
line con 0
line vty 0 4
!         
end

R1#   


R1#   sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 7 subnets, 3 masks
O        10.1.0.0/16 is a summary, 00:52:25, Null0
C        10.1.1.0/24 is directly connected, Loopback0
L        10.1.1.1/32 is directly connected, Loopback0
C        10.1.2.0/24 is directly connected, Loopback1
L        10.1.2.1/32 is directly connected, Loopback1
C        10.1.3.0/24 is directly connected, Loopback2
L        10.1.3.1/32 is directly connected, Loopback2
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.1/32 is directly connected, Serial1/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/30 is directly connected, Serial1/1
L        192.168.1.1/32 is directly connected, Serial1/1
S     200.200.200.0/24 [1/0] via 192.168.1.2
R1#   




R2#
R2#
R2#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is 192.168.0.1 to network 0.0.0.0

O*IA  0.0.0.0/0 [110/65] via 192.168.0.1, 00:06:59, Serial1/0
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.2/32 is directly connected, Serial1/0
R2#ping 200.200.200.200
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 200.200.200.200, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/66/148 ms
R2#
R2#
R2#

R2#sh run
Building configuration...
!
hostname R2
!
interface Serial1/0
 ip address 192.168.0.2 255.255.255.255
!
router ospf 1
 area 1 stub no-summary
 network 192.168.0.0 0.0.0.3 area 1
!
line con 0
line vty 0 4
!
end

R2#   


R3#
R3#
R3#sh run
Building configuration...
!
hostname R3
!
interface Loopback0
 ip address 200.200.200.200 255.255.255.0
!
interface Serial1/1
 ip address 192.168.1.2 255.255.255.252
!
ip route 10.1.0.0 255.255.0.0 192.168.1.1
ip route 192.168.0.0 255.255.0.0 192.168.1.1
!
line con 0
line vty 0 4
!
end

R3#   


R3#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/16 is subnetted, 1 subnets
S        10.1.0.0 [1/0] via 192.168.1.1
S     192.168.0.0/16 [1/0] via 192.168.1.1
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/30 is directly connected, Serial1/1
L        192.168.1.2/32 is directly connected, Serial1/1
      200.200.200.0/24 is variably subnetted, 2 subnets, 2 masks
C        200.200.200.0/24 is directly connected, Loopback0
L        200.200.200.200/32 is directly connected, Loopback0
R3#

OSPF Stub area



R1#
R1#show ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 7 subnets, 3 masks
O        10.1.0.0/16 is a summary, 00:05:26, Null0
C        10.1.1.0/24 is directly connected, Loopback0
L        10.1.1.1/32 is directly connected, Loopback0
C        10.1.2.0/24 is directly connected, Loopback1
L        10.1.2.1/32 is directly connected, Loopback1
C        10.1.3.0/24 is directly connected, Loopback2
L        10.1.3.1/32 is directly connected, Loopback2
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.1/32 is directly connected, Serial1/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/30 is directly connected, Serial1/1
L        192.168.1.1/32 is directly connected, Serial1/1
S     200.200.200.0/24 [1/0] via 192.168.1.2
R1#


R1#
R1#sh run
Building configuration...
!
hostname R1
!
interface Loopback0
 ip address 10.1.1.1 255.255.255.0
!
interface Loopback1
 ip address 10.1.2.1 255.255.255.0
!
interface Loopback2
 ip address 10.1.3.1 255.255.255.0
!
interface Serial1/0
 ip address 192.168.0.1 255.255.255.252
!
interface Serial1/1
 ip address 192.168.1.1 255.255.255.252
!
router ospf 1
 area 0 range 10.1.0.0 255.255.0.0
 area 1 stub
 redistribute static subnets
 network 10.1.1.0 0.0.0.255 area 0
 network 10.1.2.0 0.0.0.255 area 0
 network 10.1.3.0 0.0.0.255 area 0
 network 192.168.0.0 0.0.0.3 area 1
!
ip route 200.200.200.0 255.255.255.0 192.168.1.2
!
line con 0
line vty 0 4
!         
end

R1# 



// before stub , it is normal area , you can see external route E2 200.200.200.0/24 in R2 routing table.

R2#show ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/16 is subnetted, 1 subnets
O IA     10.1.0.0 [110/65] via 192.168.0.1, 00:00:13, Serial1/0
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.2/32 is directly connected, Serial1/0
O E2  200.200.200.0/24 [110/20] via 192.168.0.1, 00:00:13, Serial1/0
R2#
R2#



// after stub , it is stub area , you can see default route i routing table ,and not see  external route E2 200.200.200.0/24 

R2#
R2#show ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is 192.168.0.1 to network 0.0.0.0

O*IA  0.0.0.0/0 [110/65] via 192.168.0.1, 00:10:21, Serial1/0
      10.0.0.0/16 is subnetted, 1 subnets
O IA     10.1.0.0 [110/65] via 192.168.0.1, 00:10:21, Serial1/0
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.2/32 is directly connected, Serial1/0
R2#



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

R2#
R2#sh run
Building configuration...
!
hostname R2
!
interface Serial1/0
 ip address 192.168.0.2 255.255.255.252
!
router ospf 1
 area 1 stub
 network 192.168.0.0 0.0.0.3 area 1
!
line con 0
line vty 0 4
!
end

R2# 



R3#
R3#
R3#sh run
Building configuration...
!
hostname R3
!
interface Loopback0
 ip address 200.200.200.200 255.255.255.0
!
interface Serial1/1
 ip address 192.168.1.2 255.255.255.252
!
ip route 10.1.0.0 255.255.0.0 192.168.1.1
ip route 192.168.0.0 255.255.0.0 192.168.1.1
!
line con 0
line vty 0 4
!
end

R3#   


R3#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/16 is subnetted, 1 subnets
S        10.1.0.0 [1/0] via 192.168.1.1
S     192.168.0.0/16 [1/0] via 192.168.1.1
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/30 is directly connected, Serial1/1
L        192.168.1.2/32 is directly connected, Serial1/1
      200.200.200.0/24 is variably subnetted, 2 subnets, 2 masks
C        200.200.200.0/24 is directly connected, Loopback0
L        200.200.200.200/32 is directly connected, Loopback0
R3#

OSPF Totally NSSA area





R1#
R1#show run
Building configuration...
!
hostname R1
!
interface Loopback0
 ip address 10.1.1.1 255.255.255.0
!
interface Loopback1
 ip address 10.1.2.1 255.255.255.0
!
interface Loopback2
 ip address 10.1.3.1 255.255.255.0
!
interface Serial1/0
 ip address 192.168.0.1 255.255.255.252
!
interface Serial1/1
 ip address 192.168.1.1 255.255.255.252
!         
router ospf 1
 area 1 nssa no-summary
 redistribute static subnets
 network 10.1.1.0 0.0.0.255 area 0
 network 10.1.2.0 0.0.0.255 area 0
 network 10.1.3.0 0.0.0.255 area 0
 network 192.168.0.0 0.0.0.3 area 1
 network 192.168.1.0 0.0.0.3 area 0
!
line con 0
line vty 0 4       
!
end

R1#   
R1#
R1#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
C        10.1.1.0/24 is directly connected, Loopback0
L        10.1.1.1/32 is directly connected, Loopback0
C        10.1.2.0/24 is directly connected, Loopback1
L        10.1.2.1/32 is directly connected, Loopback1
C        10.1.3.0/24 is directly connected, Loopback2
L        10.1.3.1/32 is directly connected, Loopback2
O N2     10.2.1.0/24 [110/1] via 192.168.0.2, 00:08:37, Serial1/0
O N2     10.2.2.0/24 [110/1] via 192.168.0.2, 00:08:37, Serial1/0
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.1/32 is directly connected, Serial1/0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/30 is directly connected, Serial1/1
L        192.168.1.1/32 is directly connected, Serial1/1
      192.168.2.0/30 is subnetted, 1 subnets
O N2     192.168.2.0 [110/1] via 192.168.0.2, 00:08:37, Serial1/0
S     200.200.200.0/24 [1/0] via 192.168.1.2

R1#   

(Stub area and totally Stub area can not redistribution other protocol route)


// Normal Area
R2#
R2#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O IA     10.1.1.1/32 [110/65] via 192.168.0.1, 00:00:03, Serial1/0
O IA     10.1.2.1/32 [110/65] via 192.168.0.1, 00:00:03, Serial1/0
O IA     10.1.3.1/32 [110/65] via 192.168.0.1, 00:00:03, Serial1/0
R        10.2.1.0/24 [120/1] via 192.168.2.2, 00:00:06, Serial1/1
R        10.2.2.0/24 [120/1] via 192.168.2.2, 00:00:06, Serial1/1
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.2/32 is directly connected, Serial1/0
      192.168.1.0/30 is subnetted, 1 subnets
O IA     192.168.1.0 [110/128] via 192.168.0.1, 00:00:03, Serial1/0
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/30 is directly connected, Serial1/1
L        192.168.2.1/32 is directly connected, Serial1/1
O E2  200.200.200.0/24 [110/20] via 192.168.0.1, 00:00:03, Serial1/0
R2#   
R2#


// NSSA Area
R2#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O IA     10.1.1.1/32 [110/65] via 192.168.0.1, 00:00:05, Serial1/0
O IA     10.1.2.1/32 [110/65] via 192.168.0.1, 00:00:05, Serial1/0
O IA     10.1.3.1/32 [110/65] via 192.168.0.1, 00:00:05, Serial1/0
R        10.2.1.0/24 [120/1] via 192.168.2.2, 00:00:12, Serial1/1
R        10.2.2.0/24 [120/1] via 192.168.2.2, 00:00:12, Serial1/1
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.2/32 is directly connected, Serial1/0
      192.168.1.0/30 is subnetted, 1 subnets
O IA     192.168.1.0 [110/128] via 192.168.0.1, 00:00:05, Serial1/0
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/30 is directly connected, Serial1/1
L        192.168.2.1/32 is directly connected, Serial1/1
O N2  200.200.200.0/24 [110/20] via 192.168.0.1, 00:00:05, Serial1/0
R2#  



// Totally NSSA  Area

R2#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is 192.168.0.1 to network 0.0.0.0

O*IA  0.0.0.0/0 [110/65] via 192.168.0.1, 00:00:35, Serial1/0
      10.0.0.0/24 is subnetted, 2 subnets
R        10.2.1.0 [120/1] via 192.168.2.2, 00:00:14, Serial1/1
R        10.2.2.0 [120/1] via 192.168.2.2, 00:00:14, Serial1/1
      192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.0.0/30 is directly connected, Serial1/0
L        192.168.0.2/32 is directly connected, Serial1/0
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/30 is directly connected, Serial1/1
L        192.168.2.1/32 is directly connected, Serial1/1
O N2  200.200.200.0/24 [110/20] via 192.168.0.1, 00:00:35, Serial1/0
R2#  
R2#


R2#  
R2#
R2#sh run
Building configuration...
!
hostname R2
!interface Serial1/0
 ip address 192.168.0.2 255.255.255.252
!         
interface Serial1/1
 ip address 192.168.2.1 255.255.255.252
!
router ospf 1
 area 1 nssa no-summary
 redistribute rip metric 1 subnets
 network 192.168.0.0 0.0.0.3 area 1
!
router rip
 version 2
 redistribute ospf 1 metric 1
 network 192.168.2.0
 no auto-summary  
!
line con 0
line vty 0 4
!
end

R2#  

R3#
R3#
R3#sh run
Building configuration...
!
hostname R3
!
interface Loopback0
 ip address 200.200.200.200 255.255.255.0
!
interface Serial1/1
 ip address 192.168.1.2 255.255.255.252
!
ip route 10.1.0.0 255.255.0.0 192.168.1.1
ip route 10.2.0.0 255.255.0.0 192.168.1.1
ip route 192.168.0.0 255.255.0.0 192.168.1.1
!
line con 0
line vty 0 4
!
end

R3#   


R3#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/16 is subnetted, 2 subnets
S        10.1.0.0 [1/0] via 192.168.1.1
S        10.2.0.0 [1/0] via 192.168.1.1
S     192.168.0.0/16 [1/0] via 192.168.1.1
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/30 is directly connected, Serial1/1
L        192.168.1.2/32 is directly connected, Serial1/1
      200.200.200.0/24 is variably subnetted, 2 subnets, 2 masks
C        200.200.200.0/24 is directly connected, Loopback0
L        200.200.200.200/32 is directly connected, Loopback0
R3# 




R4#sh run
Building configuration...
!
hostname R4
!
interface Loopback0
 ip address 10.2.1.1 255.255.255.0
!
interface Loopback1
 ip address 10.2.2.1 255.255.255.0
!
interface Serial1/1
 ip address 192.168.2.2 255.255.255.252
!
router rip
 version 2
 redistribute ospf 1
 network 10.0.0.0
 network 192.168.2.0
 no auto-summary
!
line con 0
line vty 0 4
!
end

R4#   

R4#
R4#sh ip route
Codes: L - local, 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, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is 192.168.2.1 to network 0.0.0.0

R*    0.0.0.0/0 [120/1] via 192.168.2.1, 00:00:19, Serial1/1
      10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C        10.2.1.0/24 is directly connected, Loopback0
L        10.2.1.1/32 is directly connected, Loopback0
C        10.2.2.0/24 is directly connected, Loopback1
L        10.2.2.1/32 is directly connected, Loopback1
      192.168.0.0/30 is subnetted, 1 subnets
R        192.168.0.0 [120/1] via 192.168.2.1, 00:00:19, Serial1/1
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/30 is directly connected, Serial1/1
L        192.168.2.2/32 is directly connected, Serial1/1
R     200.200.200.0/24 [120/1] via 192.168.2.1, 00:00:19, Serial1/1
R4#
R4#