[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Redistributing Routes into BGP
BGP can learn about routes from sources other than
BGP updates from peers. Routes known to other protocols can be redistributed into BGP. Similarly, routes manually configured
on a router—static routes—can be redistributed into BGP.
After the routes are redistributed, BGP advertises the routes. When
you redistribute routes, BGP sets the origin attribute for the route
to Incomplete. See Understanding the Origin Attribute for more information about origins.
The following commands configure three static routes
on router Boston and configure router Boston to redistribute the static
routes and routes from OSPF into BGP for the network structure shown
in Figure 14:
- host2(config)#ip route 172.30.0.0 255.255.0.0
192.168.10.12
- host2(config)#ip route 172.16.8.0 255.255.248.0
10.211.5.7
- host2(config)#ip route 192.168.4.0 255.255.254.0
10.14.147.2
- host2(config)#router bgp 29
- host2(config-router)#neighbor 10.1.1.2 remote-as
92
- host2(config-router)#redistribute static
- host2(config-router)#redistribute ospf
Figure 14: Redistributing Routes into
BGP

clear bgp ipv6 redistribution
clear ip bgp redistribution
disable-dynamic-redistribute
- Use to halt the dynamic
redistribution of routes that are initiated by changes to a route
map.
- Dynamic redistribution is enabled by default.
- This command takes effect immediately.
- Example
- host1(config-router)#disable-dynamic-redistribute
- Use the no version to reenable
dynamic redistribution.
- See disable-dynamic-redistribute.
redistribute
- Use to redistribute static routes and routes from other
protocols into BGP.
- Specify the source protocol from which routes are being
redistributed with one of the following keywords: isis, ospf, static, or connected. Use the static keyword to redistribute IP static routes. Use the connected keyword to redistribute routes that are established automatically
by virtue of having enabled IP on an interface.
- You can specify a route map to filter the redistribution
of routes from the source routing protocol into BGP. If you do not
specify the route-map option, all routes
are redistributed.
- Use the metric keyword to set
the multiexit discriminator (MED) for routes redistributed into BGP.
The default MED is the value of the IGP metric for the redistributed
route.
- Use the weight keyword to set
the weight for routes redistributed into BGP in the range 0–65535.
The default weight is 32768.
- You can specify the type(s) of OSPF routes to redistribute
into BGP: internal routes (ospf match internal), external routes of metric type 1 (ospf match external 1), or external routes of metric
type 2 (ospf match external 2).
- This command takes effect immediately.
- Use the no version to end the
redistribution of routes into BGP.
- See redistribute.
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]