Sun Ethernet Fabric Operating System OSPFv3 Administration Guide

Exit Print View

Updated: July 2015
 
 

Configure the Stub Area, ASBR, and Route Distribution

See Creating the Base Configuration for Example Topologies for prerequisite configurations for SEFOS4, SEFOS5, and SEFOS7. See IPv6 Example Topology Interface and Host Addresses for the sample configuration of the stub, ASBR, and route redistribution areas.

This example shows how to configure SEFOS4 as an ASBR router for redistributing the external routes into the OSPF domain. This example also shows how to configure area 0.0.0.4 of SEFOS5 as a stub area, and how to configure area 0.0.0.4 of SEFOS7 as a stub area with external routes that are not redistributed into the stub area.

  1. Configure SEFOS4 as an ASBR router.
    SEFOS# configure terminal
    SEFOS(config)# ipv6 router ospf
    SEFOS(config-router)# router-id 10.0.0.4
    SEFOS(config-router)# asbr router
    SEFOS(config-router)# redistribute static
    SEFOS(config-router)# exit
    SEFOS(config)# ipv6 route 3333:: 96 fec0::4444:0:2
    SEFOS(config)# exit
    
  2. Configure a stub area in SEFOS5.
    SEFOS# configure terminal
    SEFOS(config)# ipv6 router ospf
    SEFOS(config-router)# router-id 10.0.0.5
    SEFOS(config-router)# area 0.0.0.4 stub
    SEFOS(config-router)# exit
    
  3. Configure a stub area in SEFOS7.
    SEFOS# configure terminal
    SEFOS(config)# ipv6 router ospf
    SEFOS(config-router)# router-id 10.0.0.7
    SEFOS(config-router)# area 0.0.0.4 stub
    SEFOS(config-router)# exit
    
  4. View the configuration details in SEFOS4.
    SEFOS# show ipv6 ospf route
     
    ****************************************************
    Dest/Prefix-Length      NextHop/IfIndex      Cost     Rt.Type     Area
    fec0::3003:0:0/96 fe80::207:2ff:fe03:401/vlan4   2   interArea   0.0.0.0
    fec0::4444:0:0/96                    :: /vlan4   1   intraArea   0.0.0.0
     
    SEFOS# show ipv6 ospf  database as-external detail
     
    Age: 0   Seconds            LS Type: External Lsa
    Link State Id: 0.0.0.2      Adv Rtr Id: 10.0.0.4
    Sequence: 0x80000001        Checksum: 0x0bc4    Length: 56
    Metric Type: Ext Type2      Metric: 0xa
    Prefix Length: 96           Prefix Options: 0x00
    Referenced LS Type: 0
    Address Prefix: 3333::
    Fw Address Prefix: 3333::fec0:0
    External Route Tag: 0
    
  5. Ensure that the external routes are redistributed in SEFOS5.
    SEFOS# show ipv6 ospf route
     
    OSPFV3 Process Routing Table
    Dest/Prefix-Length   NextHop/IfIndex   	   Cost     	Rt.Type     Area
    3333::/96	fec0::4444:0:2/vlan4    10   	type2Ext    0.0.0.0SEFOS# show ipv6 ospf  database as-external detail
    fec0::3003:0:0/96   	     ::/vlan5     1   	intraArea   0.0.0.4
    fec0::4444:0:0/96   	     ::/vlan4     1   	intraArea   0.0.0.3Age: 63  Seconds            LS Type: External LsaLink State Id: 0.0.0.2      Adv Rtr Id: 10.0.0.4Sequence: 0x80000001        Checksum: 0x0bc4    Length: 56Metric Type: Ext Type2      Metric: 0xaPrefix Length: 96           Prefix Options: 0x00Referenced LS Type: 0Addres Prefix: 3333::Fw Addres Prefix: 3333::fec0:0External Route Tag: 0