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 BGPvrf cust_a
instance by creating a router BGP instance for
cust_a
.
- Creating the router BGP instance for
cust_a
.switch(config)# router bgp 1 switch(config-router) # vrf cust_a
- 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
.
- Creating the router BGP instance for
cust_a
switch(config)# router bgp 100 switch(config-router)# vrf cust_a
- Configuring the address family IPv6 unicast to the router
switch(config-router-bgp)# address-family ipv6 unicast
- Redistributing the router to OSPFv3
switch(config-router-ipv6-uc)# redistribute ospfv3
- Redistributing the router configured with
ipv6-af-us
to OSPFv3switch(config-router-bgp-vrf-ipv6-af-uc)# redistribute ospfv3