redistribute
Syntax
redistribute {bgp | connected | static} [route-map <route-map-name>]
no redistribute {bgp | connected | static} [route-map <route-map-name>]
Description
Redistributes routes originating from other protocols to OSPF.
The
no
form of this command disables redistributing routes originating from other protocols to OSPF.
Command context
config-ospf
Parameters
bgp
Specifies redistributing BGP (Border Gateway Protocol) routes to OSPF.
connected
Specifies redistributing connected (directly attached subnet or host) routes to OSPF.
static
Specifies redistributing static routes to OSPF.
route-map <route-map-name>
Specifies the name of a route map. To create a route map, use the route-map command.
Authority
Administrators
Examples
Redistributing routes to OSPF:
switch# configure terminal switch(config)# router ospf 1 switch(config-ospf-1)# redistribute connected switch(config-ospf-1)# redistribute bgp switch(config-ospf-1)# redistribute static switch(config-ospf-1)# redistribute static route-map static_networks
Disabling redistributing routes to OSPF:
switch# configure terminal switch(config)# router ospf 1 switch(config-ospf-1)# no redistribute connected switch(config-ospf-1)# no redistribute bgp switch(config-ospf-1)# no redistribute static