OSPFv3 NSSA area configuration example

Network requirements

As shown in Figure 89:

Figure 89: Network diagram

Configuration procedure

  1. Configure IPv6 addresses for interfaces. (Details not shown.)

  2. Configure basic OSPFv3 (see "OSPFv3 stub area configuration example").

  3. Configure Area 1 as an NSSA area:

    # Configure Switch A.

    [SwitchA] ospfv3
    [SwitchA-ospfv3-1] area 1
    [SwitchA-ospfv3-1-area-0.0.0.1] nssa
    [SwitchA-ospfv3-1-area-0.0.0.1] quit
    [SwitchA-ospfv3-1] quit
    

    # Configure Switch B.

    [SwitchB] ospfv3
    [SwitchB-ospfv3-1] area 1
    [SwitchB-ospfv3-1-area-0.0.0.1] nssa
    [SwitchB-ospfv3-1-area-0.0.0.1] quit
    [SwitchB-ospfv3-1] quit
    

    # Display OSPFv3 routing information on Switch A.

    [SwitchA] display ospfv3 1 routing
    
                   OSPFv3 Process 1 with Router ID 1.1.1.1
    -------------------------------------------------------------------------
     I  - Intra area route,  E1 - Type 1 external route,  N1 - Type 1 NSSA route
     IA - Inter area route,  E2 - Type 2 external route,  N2 - Type 2 NSSA route
     *  - Selected route
    
     *Destination: 2001::/64
      Type       : IA                                        Cost     : 2
      NextHop    : FE80::20C:29FF:FE74:59C6                  Interface: Vlan200
      AdvRouter  : 2.2.2.2                                   Area     : 0.0.0.1
      Preference : 10
    
     *Destination: 2001:1::/64
      Type       : I                                         Cost     : 1
      Nexthop    : ::                                        Interface: Vlan200
      AdvRouter  : 1.1.1.1                                   Area     : 0.0.0.1
      Preference : 10
    
     *Destination: 2001:2::/64
      Type       : IA                                        Cost     : 3
      NextHop    : FE80::20C:29FF:FE74:59C6                  Interface: Vlan200
      AdvRouter  : 2.2.2.2                                   Area     : 0.0.0.1
      Preference : 10
    
     Total: 3
     Intra area: 1         Inter area: 2         ASE: 0         NSSA: 0
    
  4. Configure route redistribution:

    # Configure an IPv6 static route, and configure OSPFv3 to redistribute the static route on Switch A.

    [SwitchA] ipv6 route-static 1234:: 64 null 0
    [SwitchA] ospfv3 1
    [SwitchA-ospfv3-1] import-route static
    [SwitchA-ospfv3-1] quit
    

    # Display OSPFv3 routing information on Switch D.

    [SwitchD] display ospfv3 1 routing
    
                   OSPFv3 Process 1 with Router ID 4.4.4.4
    -------------------------------------------------------------------------
     I  - Intra area route,  E1 - Type 1 external route,  N1 - Type 1 NSSA route
     IA - Inter area route,  E2 - Type 2 external route,  N2 - Type 2 NSSA route
     *  - Selected route
    
     *Destination: 2001::/64
      Type       : IA                                        Cost     : 2
      NextHop    : FE80::20C:29FF:FEB9:F2EF                  Interface: Vlan400
      AdvRouter  : 3.3.3.3                                   Area     : 0.0.0.2
      Preference : 10
    
     *Destination: 2001:1::/64
      Type       : IA                                        Cost     : 3
      NextHop    : FE80::20C:29FF:FEB9:F2EF                  Interface: Vlan400
      AdvRouter  : 3.3.3.3                                   Area     : 0.0.0.2
      Preference : 10
    
     *Destination: 2001:2::/64
      Type       : I                                         Cost     : 1
      NextHop    : ::                                        Interface: Vlan400
      AdvRouter  : 4.4.4.4                                   Area     : 0.0.0.2
      Preference : 10
    
     *Destination: 1234::/64
      Type       : E2                                        Cost     : 1
      NextHop    : FE80::20C:29FF:FEB9:F2EF                  Interface: Vlan400
      AdvRouter  : 2.2.2.2                                   Area     : 0.0.0.2
      Preference : 10
    
     Total: 4
     Intra area: 1         Inter area: 2         ASE: 1         NSSA: 0
    

    The output shows an AS external route imported from the NSSA area exists on Switch D.