redistribute
16-24 IPv4 Routing Protocol Configuration
Defaults
None.
Mode
Routerconfiguration:G3(su)‐>router(Config‐router)#
Example
Thisexampleshowshowtoconfigureavirtuallinkovertransitionarea0.0.0.2torouterID
192.168.7.2:
G3(su)->router(Config)#router ospf 1
G3(su)->router(Config-router)#area 0.0.0.2 virtual-link 192.168.7.2
redistribute
Usethiscommandtoallowroutinginformationdiscoveredthroughnon‐OSPFprotocolstobe
distributedinOSPFupdatemessages.Thenoformofthiscommandclearsredistribution
parameters.
Syntax
redistribute {connected | rip | static} [metric metric value] [metric-type type-
value] [subnets]
no redistribute {connected | rip | static}
Parameters
Defaults
Ifmetricvalueisnotspecified,0willbeapplied.
Iftypevalueisnotspecified,type2(externalroute)willbeapplied.
Ifsubnetsisnotspecified,onlytheshortestprefixmatchingrouteswillberedistributed.
transmit‐delay
seconds
Specifiestheestimatednumberofsecondsbeforealinkstateupdatepacket
on
theinterfacetobetransmitted.Validvaluesrangefrom1to8192.Default
is1second.
connected Specifiesthatnon‐OSPFinformationdiscoveredviadirectlyconnected
interfaceswillberedistributed.
rip SpecifiesthatRIProutinginformationwillberedistributedinOSPF.
static Specifiesthatnon‐OSPFinformationdiscoveredviastaticrouteswillbe
redistributed.Staticroutesarethosecreatedusingtheiproutecommand
detailedin“ip
route”onpage15‐19.
metricmetricvalue (Optional)Specifiesametricfortheconnected,RIPorstaticredistribution
route.Thisvalueshouldbeconsistentwiththedesignationprotocol.
metric‐typetype
value
(Optional)Specifiestheexternallinktypeassociatedwiththedefault
connected,RIPorstaticrouteadvertisedintotheOSPF
routingdomain.
Validvaluesare1fortype1 external route,and2fortype2externalroute.
subnets (Optional)Specifiesthatconnected,RIP, orstaticroutesthataresubnetted
routeswillberedistributed.