Chapter3OSPFConguration
ConguringanOSPFDefaultRoute
Ifarouterobtainsadefaultroutethroughotherprotocolsorisconguredwithastaticroute,
itneedstoadvertisetheroute.Ifadefaultroutedoesnotexist,advertisereachableroutes
innormalmode.Afteryourunthiscommandonarouter,therouterbecomeanASBR.
StepCommandFunction
1ZXR10(config)#routerospf<process-id>[vrf<vrf-name>]EntersOSPFconguration
mode.
2ZXR10(config-ospfv2)#notifydefaultroute
[always][metric<metric-value>][metric-type
<type>][route-map<map-tag>]
Whenrouterobtainsdefault
route0/0throughother
protocolsorisconguredwith
theroute,itneedstoadvertise
thisroute.
ForadescriptionoftheparametersinStep2,refertothefollowingtable:
ParameterDescription
alwaysIfalwaysisspecied,itmeansthatthedefaultrouteis
advertisednomatterwhetheritexists.Ifnot,whetherto
advertisethedefaultrouteisdeterminedbywhetherthe
defaultrouteexistsintheroutingtable.Ifthedefaultroute
exists,itwillbeadvertised.
metric<metric-value>Metricofthedefaultroute.Range:1-16777214,default:1.
metric-type<type>Typeofthedefaultroute.Value:ext-1andext-2,default:
ext-2.
route-map<map-tag>Nameoftheroutemapforgeneratingthedefaultroute.
Length:1-16characters.
ConguringanOSPFVirtualLink
OnOSPFnetworks,allareasmustbeconnectedtothebackbonearea.Anvirtuallinkcan
beusedtoconnectaremoteareatothebackboneareathroughotherareas.
TocongureanOSPFvirtuallink,performthefollowingsteps:
StepCommandFunction
1ZXR10(config)#routerospf<process-id>[vrf<vrf-name>]EntersOSPFroutingmode.
3-33
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential