redistribute

Syntax

redistribute <protocol> [route-map <route-map-name>]
		
[no] redistribute <protocol> [route-map <route-map-name>]
		

Description

Specifies the protocol routes to redistribute to BGP VRF context. Any routes existing in the BGP VRF context are leaked as a VPNv4 or VPNv6 prefixes to other VRFs based on BGP route-targets.

The no form of this command removes the protocol.

Command context

config

Parameters

redistribute

Required: redistributes routes from another routing protocol.

connected

Optional: redistribute directly attached networks.

ospfv3

Optional: redistributes OSPFv2 routes.

static

Optional: redistributes static routes.

route-map

Optional: applies route map policy for redistribution.

Authority

Administrators

Example: OSPFv2 redistribute routes to BGP instance

The following is an example of redistributing OSPFv2 routes to a BGP vrf cust_a instance by creating a router BGP instance for cust_a.
  1. Creating the router BGP instance for cust_a.
    switch(config)# router bgp 1
    switch(config-router) # vrf cust_a
    
  2. Redistributing the router to BGP.
    switch(config-router-bgp)# redistribute ospf

Example: OSPFv3 redistribute routes to BGP instance

The following is an example of redistributing OSPFv3 routes to a BGP vrf cust_a instance by creating a router BGP instance for cust_a.
  1. Creating the router BGP instance for cust_a
    switch(config)# router bgp 100
    switch(config-router)# vrf cust_a
  2. Configuring the address family IPv6 unicast to the router
    switch(config-router-bgp)# address-family ipv6 unicast
  3. Redistributing the router to OSPFv3
    switch(config-router-ipv6-uc)# redistribute ospfv3
  4. Redistributing the router configured with ipv6-af-us to OSPFv3
    switch(config-router-bgp-vrf-ipv6-af-uc)# redistribute ospfv3