OSPF Commands
XSR CLI Reference Guide 5-101
Syntax of the “no” Form
Thenoformofthiscommandcancelstheredistributionofroutes:
no redistribute from_protocol [metric metricvalue]
Mode
Routerconfiguration:XSR(config-router)#
Default
Disabled
Examples
Thisexampleredistributesstaticroutesfrom5hopsawayintoRIP:
XSR(config-router)#router rip
XSR(config-router)#redistribute static 5
Thefollowingexampleredistributesintra,interandexternalOSPFroutesintoRIP:
XSR(config-router)#redistribute ospf match internal match external
ThefollowingexampleimportsallOSPFroutesintoRIPwiththedefaultRIPmetricof1.Itis
equivalenttothecommandenteredearlier.
XSR(config-router)#redistribute ospf

router ospf

ThiscommandenablestheOpenShortestPathFirst(OSPF)protocol.
Syntax
router ospf process-id
Syntax of the “no” Form
ThenoformofthiscommanddisablesOSPF:
no router ospf process-id
Mode
Globalconfiguration:XSR(config)#
metric-value CostofaroutebeingredistributedintoOSPF,rangingfrom0to16,777,214.
metric-type OSPFexteriormetrictype.
1/2 OSPFexternalType1or2metrics.
route-map-
number
Numberoftheassociatedroutemap.
process-id ProcessIDnumber.