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 or local user group members with execution rights for this command.
Examples
Redistributing routes to OSPF:
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(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