ZXR105900ESeriesCongurationGuide(IPv4Routing)
S3(config-ospf-1)#network2.2.2.40.0.0.3area0.0.0.2
S3(config-ospf-1)#area1virtual-link1.1.1.3
S3(config-ospf-1)#exit
ConguringSham-link
BecausethepriorityofanOSPFrouteishigherthanthatofaBGProute,anOSPFprivate
routeisusuallytherstchoiceifbothapublicnetworkrouteandanOSPFprivatenetwork
routeareavailable.However,comparingwiththepublicnetworkroute,theprivatenetwork
routeisnotsuitableforcarryingalargeowbecauseitsbandwidthissmaller.Therefore,
amechanismisrequiredtoenablethepublicnetworktosharetheprivatenetworkow.
Thepublicandprivatenetworkcanbeselectedexiblytocarrytheow.
AsshowninFigure3-12,S1andS2areinthesamearea.TherearetwotypesofLSAs
learntbyS1whenitaccessesS2.OneisLSAsoftype3advertisedbyaPErouter,another
isLSAsoftype1oodedbyarea0.InaccordancewiththeOSPFrouteselectionpolicy,
theroutecalculatedbyLSAsoftype1isoptimal,sotheOSPFprivatenetworkrouteis
selected.Sham-linkisconguredtoenablethepublicnetworktosharetheow.
Figure3-12Sham-link
Enablesham-linkbetweenPErouters,establishneighborhood,andestablishan
interactivedatabase.Aprivatenetworkrouterbelongingtothesameareacanlearntwo
inner-arearoutes:onerouteusessham-link(MPLSVPNBackbone),anotherusesthe
privatenetwork.Toselectaroute,modifymetricattribute.
Toconguresham-linkonPEs,performthefollowingsteps:
StepCommandFunction
1ZXR10(config)#routerospf<area-id>EntersOSPFconguration
mode.
2ZXR10(config-ospfv2)#area<area-id>sham-link<ip-addr
ess1><ip-address2>cost<cost>
SetsupMPLSVPNbetween
twoPErouterstotransmit
OSPFprotocolpackets.
3-36
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential