Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

OSPFv3 AF NSSA conditional default route injection

Hi,

I'm deploying OSPFv3 AF and have trouble injecting a default route (conditionally) with a NSSA. I'm trying to do this on a CE as we have firewalls connected here.

 

The below scenario works with OSPFv2 by the way.

 

The basic configuration is this:

 

!PE:
 

ipv6 unicast-routing
!
interface FastEthernet1/0
 ip address 10.0.12.1 255.255.255.0
 speed auto
 duplex auto
 ipv6 enable
 ospfv3 12 ipv6 area 12
!
router ospfv3 12
 !
 address-family ipv6 unicast
  area 12 nssa
 exit-address-family
!

 

 

!CE:
ipv6 unicast-routing
!
interface FastEthernet1/0
 description -> PE
 ip address 10.0.12.2 255.255.255.0
 speed auto
 duplex auto
 ipv6 enable
 ospfv3 12 ipv6 area 12
!
router ospfv3 12
 !
 address-family ipv6 unicast
  area 12 nssa default-information-originate
 exit-address-family
!
ipv6 route ::/0 Null0

 

! CE show outputs:

CE#sh ospfv3 12 ipv6 nei

          OSPFv3 12 address-family ipv6 (router-id 2.2.2.2)

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
1.1.1.1           1   FULL/BDR        00:00:34    3               FastEthernet1/0
CE#sh ospfv3 12 ipv6 data

          OSPFv3 12 address-family ipv6 (router-id 2.2.2.2)

        Router Link States (Area 12)

ADV Router       Age         Seq#        Fragment ID  Link count  Bits
 1.1.1.1         389         0x80000002  0            1           None
 2.2.2.2         388         0x80000003  0            1           E

        Net Link States (Area 12)

ADV Router       Age         Seq#        Link ID    Rtr count
 2.2.2.2         388         0x80000001  3          2

        Link (Type-8) Link States (Area 12)

ADV Router       Age         Seq#        Link ID    Interface
 1.1.1.1         397         0x80000002  3          Fa1/0
 2.2.2.2         448         0x80000002  3          Fa1/0
CE#

 

! PE show output:

PE#sh ipv6 route
IPv6 Routing Table - default - 1 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
       I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
       EX - EIGRP external, 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
L   FF00::/8 [0/0]
     via Null0, receive
PE#

 

If I do a redist connected on the CE, it clears the P-bit and I see a default route (unconditionally) on the PE:

*Apr 14 08:42:31.855: %OSPFv3-4-NSSA_NO_FA: OSPF process 12 lacks forwarding address for type 7 LSA 0.0.0.0 in NSSA 12 - P-bit cleared

 

Now on the PE I see:

PE#sh ipv6 route
IPv6 Routing Table - default - 2 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
       B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
       I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
       EX - EIGRP external, 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
ON2 ::/0 [110/1]
     via FE80::C803:5FF:FEAC:1C, FastEthernet1/0
L   FF00::/8 [0/0]
     via Null0, receive
PE#

 

The question is:

How do I conditionally inject a default route with OSPFv3 AF NSSA?

 

Thanks

/JZ

 

3 REPLIES
Bronze

Hi,A quick check of the

Hi,

A quick check of the config guide shows that their examples of default origination in OSPFv3 use the 'default information-originate' command, this can be tied in with a route-map, in order to match a certain condition. i.e. statement is configured under the process, not using the 'area' command.

 

1. create prefix -list matching routes (these form the matching condition)

2. create a route-map - with a permit statement matching the prefix-list.

3. default information-originate route-map [map name]

 

HTH

 

Mike

 

New Member

Hi Mike,Thanks for your input

Hi Mike,

Thanks for your input. Could you please send me a link to the source of this information?

I'm looking here and see no such example.

Best regards,

/JZ

Bronze

Hi, This may be my mistake -

Hi,

 

This may be my mistake - I enclose a link to the command reference for the IOS image I found this from, it is an IOS-XML version.

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipv6/command/ipv6-cr-book/ipv6-d2.html#wp3802563151

 

Sorry if I have confused this matter.

 

Very best wishes

 

Mike

 

 

245
Views
0
Helpful
3
Replies