redistribute (BGP)

To inject routes from one routing domain into the Border Gateway Protocol (BGP), use the redistribute command. To remove the redistribute command from the configuration file and restore the system to its default condition in which the software does not redistribute routes, use the no form of this command.

redistribute { direct | eigrp instance-tag | ospf instance-tag | rip instance-tag | static } [ route-map map-name ]

no redistribute {{ direct | eigrp instance-tag | ospf instance-tag | rip instance-tag | static } [ route-map map-name ]

Syntax Description

direct
Distributes routes that are directly connected on an interface.
eigrp instance-tag
Specifies the name of an EIGRP instance. The instance-tag can be any case-sensitive, alphanumeric string up to 20 characters.
ospf instance-tag
Distributes routes from the OSPF protocol. This protocol is supported in the IPv4 address family. The instance-tag can be any case-sensitive, alphanumeric string up to 20 characters.
rip instance-tag
Distributes routes from the RIP protocol. The instance-tag can be any case-sensitive, alphanumeric string up to 20 characters.
static
Redistributes IP static routes.
route-map map-name
(Optional) Specifies the identifier of a configured route map. Use a route map to filter which routes are redistributed into EIGRP.

Command Default

Disabled

Command Modes

Address family configuration mode
Router configuration mode
Router VRF configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

Use the redistribute command to import routes from other routing protocols into BGP. You should always use a route map to filter these routes to ensure that BGP redistributes only the routes that you intend to redistribute.

You must configure a default metric to redistribute routes from another protocol into BGP. You can configure the default metric with the default-metric command or with the route map configured with the redistribute command.

This command requires the LAN Enterprise Services license.

Examples

This example shows how to redistribute BGP routes into an EIGRP autonomous system:

switch(config)# router bgp 64496
switch(config-router) address-family ipv4 unicast
switch(config-router-af)# redistribute eigrp 100
 

Related Commands

Command
Description
default-metric (BGP)
Sets the default metrics for routes redistributed into BGP.