Configure redistribution to BGP+ for VRF 0

Configure an IPv6 redistribute entry to announce IPv6 routes of a certain source protocol type into the BGP domain, for example, static, OSPF, IS-IS, RIPng, or direct routes. Use a route policy to control the redistribution of routes.

Note

Note

When a route map with attributes set to origin and local-pref is applied to the BGP redistribute command, the attributes are not applied to the redistributed routes.

Before you begin

  • If required, a route policy exists.

Procedure

  1. Enter BGP Router Configuration mode:

    enable

    configure terminal

    router bgp

  2. Create a redistribution instance:

    redistribute <direct|dvr|ipv6-direct|ipv6-isis|ipv6-static|isis|ospf|ospfv3|rip|ripng|static>

  3. If required, specify a route policy to govern redistribution:

    redistribute <direct|dvr|ipv6-direct|ipv6-isis|ipv6-static|isis|ospf|ospfv3|rip|ripng|static> route-map WORD <0–64>

  4. If required, configure a route metric:

    redistribute <direct|dvr|ipv6-direct|ipv6-isis|ipv6-static|isis|ospf|ospfv3|rip|ripng|static> metric <0–65535>

  5. Enable the instance:

    redistribute <direct|dvr|ipv6-direct|ipv6-isis|ipv6-static|isis|ospf|ospfv3|rip|ripng|static> enable

    Unlike IPv4 redistribution, you do not need to manually apply the IPv6 redistribution instance. Once you enable the IPv6 redistribution instance, it is automatically applied.

Example

Specify a route policy to govern redistribution by using the following command:

Switch:1(router-bgp)#redistribute ipv6–direct route-map policy2

Variable Definitions

The following table defines parameters for the redistribute <ipv6-direct|ipv6-static|ospfv3|ipv6–isis|ripng>command.

Table 1. Variable definitions

Variable

Value

enable

Enables the BGP route redistribution instance. The default value is none.

To configure this option to the default value, use default operator with the command.

To disable this option, use no operator with the command.

metric<0–65535>

Configures the metric to apply to redistributed routes. The default value is 0.

To configure this option to the default value, use default operator with the command.

route-map <Word 0-64>

Configures the route policy to apply to redistributed routes. The default value is none.

To configure this option to the default value, use default operator with the command.

Job Aid

Use the data in the following table to know how route policies are used for BGP from IPv6 perspective.

Table 2. BGP for IPv6 Route Policy Support

REDISTRIBUTE

ACCEPT

ANNOUNCE

IPv6 Direct

IPv6 Static

OSPFv3

IPv6 IS-IS

RIPng

BGP

BGP

MATCH

as-path

Yes

Yes

community

Yes

Yes

Yes

Yes

Yes

Yes

Yes

community-exact

Yes

Yes

extcommunity

Yes

Yes

interface

local-preference

metric

Yes

Yes

network

Yes

Yes

next-hop

Yes

Yes

protocol

route-source

Yes

route-type

Yes

Yes

tag

vrf

vrfids

SET

as-path

Yes

Yes

as-path-mode

Yes

Yes

automatic-tag

community

Yes

Yes

community-mode

Yes

Yes

injectlist

Yes

Yes

Yes

Yes

Yes

ip-preference

local-preference

Yes

Yes

mask

metric

Yes

Yes

Yes

Yes

Yes

Yes

Yes

metric-type

metric-type-internal

next-hop

Yes

Yes

nssa-pbit

origin

Yes

origin-egp-as

tag

weight

Yes