redistribute

Syntax

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

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.

Theno该命令删除协议的形式。

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 or local user group members with execution rights for this command.

Example: OSPFv2 redistribute routes to BGP instance

The following is an example of redistributing OSPFv2 routes to a BGPvrf cust_ainstance by creating a router BGP instance forcust_a.
  1. Creating the router BGP instance forcust_a.
    switch(config)#router bgp 1switch(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 BGPvrf cust_ainstance by creating a router BGP instance forcust_a.
  1. Creating the router BGP instance forcust_a
    switch(config)#router bgp 100switch(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 withipv6-af-usto OSPFv3
    switch(config-router-bgp-vrf-ipv6-af-uc)#redistribute ospfv3