('实用以下是配置实例UPEA的配置文件#sysnameUPEA#vlanbatch5to610to11100to300#rrppenable//使能RRPP协议#stpregion-configuration//创建实例instance1vlan56100to200//实例1映射VLAN5,6,100-200instance2vlan1011201to300activeregion-configuration//激活MSTP域的配置#rrppdomain1//创建并进入RRPP域1control-vlan5//控制VLAN5protected-vlanreference-instance1//域1环1保护的VLAN为实例1映射之VLANring1node-modetransitprimary-portGigabitEthernet1/0/0secondary-portGigabitEthernet2/0/0level0//设置为域1环1传输节点,主口为G1/0/0,从口为2/0/0ring1enable//使能域1环1rrppdomain2//创建并进入RRPP域2control-vlan10//控制VLAN10protected-vlanreference-instance2//域2环1保护VLAN为实例2映射VLANring1node-modetransitprimary-portGigabitEthernet1/0/0secondary-portGigabitEthernet2/0/0level0//设置为域2环1传输节点,主口为文档实用G1/0/0,从口为2/0/0ring1enable//使能域2环1#interfaceGigabitEthernet1/0/0portlink-typetrunkporttrunkallow-passvlan5to610to11100to300stpdisable//去使能端口上的STP功能#interfaceGigabitEthernet2/0/0portlink-typetrunkporttrunkallow-passvlan5to610to11100to300stpdisable#returnUPEB的配置文件#sysnameUPEB#vlanbatch5to610to11100to300#rrppenable#stpregion-configurationinstance1vlan56100to200instance2vlan1011201to300activeregion-configuration#rrppdomain1control-vlan5protected-vlanreference-instance1ring1node-modetransitprimary-portGigabitEthernet1/0/0secondary-portGigabitEthernet2/0/0level0ring1enablerrppdomain2control-vlan10protected-vlanreference-instance2ring1node-modetransitprimary-portGigabitEthernet1/0/0secondary-portGigabitEthernet2/0/0level0ring1enable#interfaceGigabitEthernet1/0/0portlink-typetrunk文档实用porttrunkallow-passvlan5to610to11100to300stpdisable#interfaceGigabitEthernet2/0/0portlink-typetrunkporttrunkallow-passvlan5to610to11100to300stpdisable#returnUPEC的配置文件#sysnameUPEC#vlanbatch5to610to11100to300#rrppenable#stpregion-configurationinstance1vlan56100to200instance2vlan1011201to300activeregion-configuration#rrppdomain1control-vlan5protected-vlanreference-instance1ring1node-modetransitprimary-portGigabitEthernet1/0/0secondary-portGigabitEthernet2/0/0level0ring1enablerrppdomain2control-vlan10protected-vlanreference-instance2ring1node-modetransitprimary-portGigabitEthernet1/0/0secondary-portGigabitEthernet2/0/0level0ring1enable#interfaceGigabitEthernet1/0/0portlink-typetrunkporttrunkallow-passvlan5to610to11100to300stpdisable#interfaceGigabitEthernet2/0/0portlink-typetrunkporttrunkallow-passvlan5to610to11100to300文档实用stpdisable#ReturnPE-AGG的配置文件#sysnamePE-AGG#vlanbatch5to610to11100to300#rrppenable#stpregion-configurationinstance1vlan56100to200instance2vlan1011201to300activeregion-configuration#rrppdomain1control-vlan5protected-vlanreference-instance1ring1node-modemasterprimary-portGigabitEthernet1/0/0secondary-portGigabitEthernet2/0/0level0//设置为域1环1主节点,主口为G1/0/0,副口为2/0/0ring1enablerrppdomain2control-vlan10protected-vlanreference-instance2ring1node-modemasterprimary-portGigabitEthernet2/0/0secondary-portGigabitEthernet1/0/0level0//设置为域2环1主节点,主口为G2/0/0,副口为1/0/0ring1enable#interfaceGigabitEthernet1/0/0portlink-typetrunkporttrunkallow-passvlan5to610to11100to300stpdisable#interfaceGigabitEthernet2/0/0portlink-typetrunkporttrunkallow-passvlan5to610to11100to300stpdisable#return文档实用执行displaystpregion-configuration命令,可以查看实例与VLAN之间的映射关系。例如:displaystpregion-configurationOperconfigurationFormatselector:0Regionname:00e0fc010203Revisionlevel:0InstanceVlansMapped03to9,12to99,301to409411to2,100to200210to11,201to300l在UPEA上执行displayrrppbrief命令,查看结果如下:displayrrppbriefAbbreviationsforSwitchNodeMode:M-Master,T-Transit,E-Edge,A-Assistant-EdgeRRPPProtocolStatus:EnableRRPPWorkingMode:HWRRPPLinkupDelayTimer:0sec(0secdefault).NumberofRRPPDomains:2DomainIndex:1ControlVLAN:major5sub6ProtectedVLAN:ReferenceInstance1HelloTimer:1sec(defaultis1sec)FailTimer:3sec(defaultis3sec)RingRingNodePrimarySecondary/EdgeIsIDLevelModePortPortEnabled----------------------------------------------------------------------------10TGigabitEthernet1/0/0GigabitEthernet2/0/0YesDomainIndex:2ControlVLAN:major10sub11ProtectedVLAN:ReferenceInstance2HelloTimer:1sec(defaultis1sec)FailTimer:3sec(defaultis3sec)RingRingNodePrimarySecondary/EdgeIsIDLevelModePortPortEnabled----------------------------------------------------------------------------10TGigabitEthernet1/0/0GigabitEthernet2/0/0Yes在PE-AGG上执行displayrrppbrief命令,查看结果如:displayrrppbriefAbbreviationsforSwitchNodeMode:M-Master,T-Transit,E-Edge,A-Assistant-EdgeRRPPProtocolStatus:EnableRRPPWorkingMode:HWRRPPLinkupDelayTimer:0sec(0secdefault).文档实用NumberofRRPPDomains:2DomainIndex:1ControlVLAN:major5sub6ProtectedVLAN:ReferenceInstance1HelloTimer:1sec(defaultis1sec)FailTimer:3sec(defaultis3sec)RingRingNodePrimary/CommonSecondary/EdgeIsIDLevelModePortPortEnabled---------------------------------------------------------------------------10MGigabitEthernet1/0/0GigabitEthernet2/0/0YesDomainIndex:2ControlVLAN:major10sub11ProtectedVLAN:ReferenceInstance2HelloTimer:1sec(defaultis1sec)FailTimer:3sec(defaultis3sec)RingRingNodePrimary/CommonSecondary/EdgeIsIDLevelModePortPortEnabled---------------------------------------------------------------------------10MGigabitEthernet2/0/0GigabitEthernet1/0/0Yes详细说明:控制VLAN在RRPP域中,控制VLAN用来传递RRPP协议报文。控制VLAN中只能包含RRPP端口。每个RRPP域配有两个控制VLAN,分别为主控制VLAN和子控制VLAN。配置时只需要指定主控制VLAN,而把比主控制VLANID值大1的VLAN作为子控制VLAN。与控制VLAN相对,数据VLAN用来传输数据报文。数据VLAN中可以包含RRPP端口,也可以包含非RRPP端口第一步:创建实例在需要加入RRPP多实例域的交换机上进行配置stpregion-configuration进入MSTP域视图instanceinstance-idvlan{vlan-id[tovlan-id]}&<1-10>,配置实例和VLAN的映射关系默认实例映射的VLAN01to4094一个域中最多可创建49个实例,其中Instance0为缺省配置,不需要创建。缺省情况下,所有的VLAN都映射到Instance0第二步:配置RRPP环上的接口在需要加入RRPP环的端口上进行以下配置porttrunkallvlanxxxx设置数据VLAN(即普通数据VLAN)控制VLAN由RRPP域视图下的control-vlan命令指定,并配置了ringnode-mode命令后,自动成为RRPP环上各端口允许通过的VLAN。因此,本步骤中仅需指定数据VLAN即可文档实用stpdisable,去使能端口上的STP功能。缺省情况下,设备所有端口上都使能了STP协议。在创建RRPP环前,需要先去使能即将加入RRPP环中的端口的STP功能第三步:创建RRPP域在RRPP域每台交换机上进行如下配置rrppdomaindomain-id创建RRPP域创建RRPP域时要指定域的ID,如果该域已存在则直接进入域视图。第四步:配置保护VLAN在RRPP域每台交换机上进行如下配置rrppdomaindomain-id进入RRPP域视图。protected-vlanreference-instance{{instance-id1[toinstance-id2]}&<1-10>all},配置RRPP域的保护VLAN列表。引用最上面实例名映射的VLANRRPP端口允许通过的VLAN都应该配置为保护VLAN,包括数据VLAN和控制VLAN。第五步:创建控制VLAN在RRPP域每台交换机上进行如下配置rrppdomaindomain-id,进入域视图control-vlanvlan-id,创建控制VLAN控制VLAN创建后不能直接修改,只能通过先删除域,然后再重新配置的方式修改。子控制VLAN也在删除域时被连带删除第六步:创建RRPP环在RRPP域每台交换机上进行如下配置rrppdomaindomain-id,进入域视图。ringring-idnode-mode{mastertransit}primary-portinterface-typeinterfacenumbersecondary-portinterface-typeinterface-numberlevellevel-valuemaster主节点transit传输节点primary-port指定担当主端口secondary-port担当副端口环级别为0表示主环,级别为1表示子环边缘节点和辅助边缘节点所在的环级别系统自动设置为1,不需手动配置。第七步:使能RRPP环在RRPP域每台交换机上进行如下配置rrppdomaindomain-id,进入域视图。ringring-idenable,使能RRPP环。第八步:使能RRPP协议在RRPP域每台交换机上进行如下配置rrppenable,使能RRPP协议(可选)配置链路恢复时延在主节点上进行如下配置rrpplinkup-delay-timerlinkup-delay-timer-value,设置RRPP环从Failed状态文档实用到Complete状态的时间延迟(可选)设置RRPP域定时器的值在RRPP域的主节点上进行如下配置timerhello-timerhello-valuefail-timerfail-value,设置RRPP域定时器的值。Failtimer的值应大于等于Hellotimer的值的三倍(可选)设置RRPP工作模式在RRPP域的主节点上进行如下配置rrppworking-mode{hwgb},设置RRPP的工作模式。当工作模式设置为hw时为华为版本,当工作模式设置为gb时为国标版本。缺省情况下,RRPP的工作模式为华为版本检查配置结果displaystpregion-configuration查看实例与VLAN的映射关系。displayrrppbrief[domaindomain-id]查查看RRPP域的概要信息。displayrrppverbosedomaindomain-id[ringring-id]查看RRPP域的详细信息。displayrrppstatisticsdomaindomain-id[ringring-id]查看RRPP域的报文统计信息。文档',)