Configuring Route Redistribution to OSPFv3 in GRT mode

Configure a redistribute entry to announce certain routes into the OSPFv3 domain, including static routes, direct routes, RIPng, OSPF routes, IS-IS routes, or Border Gateway Protocol (BGP) routes. Optionally, use a route policy to control the redistribution of routes.

Note

Note

RIPng is not virtualized, therefore RIPng redistribution in OSPFv3 works only in GRT.

Before you begin

  • Enable OSPFv3 globally.

  • Ensure that a route policy exists.

  • Ensure that you set OSPFv3 as the boundary router.

Note

Note

The route policies treat permit and deny rules differently for inbound and outbound traffic.
  • For a redistribute policy (OSPFv3) using a route-map, even if a particular route is not explicitly allowed in the redistribution policy or out-policy with the route-map, then the route is implicitly denied.

  • In order to permit or deny only explicit routes, configure a policy with additional sequences, where, the last sequence permits all routes that are not explicitly permitted or denied.

  • You configure OSPF on a VRF instance the same way you configure the GlobalRouter, except that you must use VRF Router configuration mode and replace ipv6 with ipv6 ospf.

Procedure

  1. Enter OSPF Router Configuration mode:

    enable

    configure terminal

    router ospf

  2. Create the redistribution instance:

    ipv6 redistribute <bgp|direct|isis|rip|static>

    Note

    Note

    The switch loads the existing configuration when you upgrade to the current release. Once you have the configuration file saved using the current release, only the new configuration will be loaded.

  3. Apply a route policy if required:

    ipv6 redistribute <bgp|direct|isis|rip|static> route-map WORD<0-64>

    Note

    Note

    No inter-vrf Route Redistribution is supported for IPv6.

  4. Configure other parameters, as required.
  5. Enable the redistribution.

    ipv6 redistribute <bgp|direct|isis|rip|static> enable

  6. Ensure that the configuration is correct:

    show ipv6 ospf redistribute [vrf WORD<1-16>] [vrfids WORD<0-512>]

  7. Exit to Global Configuration mode:

    exit

  8. Apply the redistribution.

    ipv6 ospf apply redistribute <bgp|direct|isis|rip|static> [vrf WORD<1-16>]

    Changes do not take effect until you apply them.

  9. View all routes that are redistributed into OSPFv3:
    1. View the routes that are redistributed from the GRT to OSPFv3:

      show ipv6 ospf redistribute

    2. View the routes that are redistributed to OSPFv3 for a specific VRF instance:

      show ipv6 ospf redistribute [vrf WORD<1–64>] [vrfids WORD<0–512>]

Example

Redistribute static routes from the GRT to OSPF.

Create the redistribution instance, apply a route policy, enable redistribution, and apply the redistribution.

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#router ospf
Switch:1(config-ospf)#ipv6 redistribute static

WARNING: Routes will not be injected until apply command is issued after enable command
Switch:1(config-ospf)#ipv6 redistribute static route-map policy1             
Switch:1(config-ospf)#ipv6 redistribute static enable 
Switch:1(config-ospf)#exit
Switch:1(config)#ipv6 ospf apply redistribute static 
Switch:1(config)#show ipv6 ospf redistribute 

====================================================================================
                     OSPFv3 Redistribute List - GlobalRouter
====================================================================================
SRC   MET     MTYPE       ENABLE     RPOLICY
------------------------------------------------------------------------------------
STAT   0      type2       TRUE       policy1

Variable Definitions

Use the data in the following table to use the ipv6 redistribute command.

Variable

Value

enable

Enables the OSPF route redistribution instance.

metric <0–65535>

Configures the metric to apply to redistributed routes.

metric-type <type1|type2>

Specifies a type 1 or a type 2 metric. For metric type 1, the cost of the external routes is equal to the sum of all internal costs and the external cost. For metric type 2, the cost of the external routes is equal to the external cost alone.

route-map WORD<0-64>

Configures the route policy to apply to redistributed routes.

<bgp|direct|isis|rip|static>

Specifies the type of routes to redistribute (the protocol source). Valid options are bgp, isis, direct, rip, or static.

Use the data in the following table to use the ipv6 ospf apply redistribute command.

Variable

Value

vrf WORD<1-16>

Specifies the VRF instance.

<bgp|direct|isis|rip|static>

Specifies the type of routes to redistribute (the protocol source). Valid options are bgp, isis, direct, rip, or static.