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_a
instance by creating a router BGP instance forcust_a
.- Creating the router BGP instance for
cust_a
.switch(config)#router bgp 1switch(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 forcust_a
.- Creating the router BGP instance for
cust_a
switch(config)#router bgp 100switch(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