Routing - redistribute command
When configuring routing on a Cisco router, the redistribute
command is used by many routing protocols, including EIGRP, OSPF, and BGP, to allow routes learned from one source to be advertised by another.
The redistribute
command has several options for the source of the redistribution. Take a look at the following context sensitive help. In this particular case, we are configuring redistribution into the existing EIGRP process of the router:
R1(config)#router eigrp 1 R1(config-router)#redistribute ? bgp Border Gateway Protocol (BGP) connected Connected eigrp Enhanced Interior Gateway Routing Protocol (EIGRP) isis ISO IS-IS lisp Locator ID Separation Protocol (LISP) mobile Mobile routes odr On Demand stub Routes ospf Open Shortest Path First (OSPF) rip Routing Information Protocol (RIP) static Static routes vrf Specify a source virtual routing/forwarding instance R1(config-router)#redistribute
The source of the redistribution can be any of those sources listed above. In particular, notes the following sources:
- Connected - This redistributes directly connected networks, that is, those networks defined by the IPv4 or IPv6 addresses and subnet masks (or prefixes) of the configured and active interfaces on the router. For more details, take a look at the the difference between the network and redistribute connected commands.
- Static - This keyword will allow you to redistribute any static route that has been configured on the local router using the
ip route
oripv6 route
commands.