配置VLANStacking批发业务应用实例通过本任务配置批发业务,使ISP提供的业务能迅速发放到指定的用户群。组网图VLANStacking批发业务应用组网图如图26-1所示。用户1、2和用户3、4分别由不同的ISP提供宽带业务。MA5600应用VLANStacking特性,为用户报文打上两层VLANTag(外层VLANTag用于标识ISP,内层VLANTag用于标识用户)后,将用户报文转发至二层网络中。二层交换机根据外层VLANTag将用户报文转发到指定的ISPBRAS设备。ISPBRAS设备剥离外层VLANTag,并通过内层VLANTag识别用户。用户通过ISPBRAS认证后,可以获得ISP提供的各种业务。图26-1批发业务配置组网图数据规划批发业务数据规划如表26-1所示。表26-1批发业务数据规划表配置项数据ISP1用户群上行端口:0/7/0配置项数据上行VLANID(外层VLANTag):60VLAN类型:SmartVLANVLAN属性:Stacking用户1:ADSL2+端口:0/2/0VPI/VCI:0/35(与Modem侧的配置一致)内层VLANTag:11用户2:ADSL2+端口:0/2/1VPI/VCI:0/35(与Modem侧的配置一致)内层VLANTag:12ISP2用户群上行端口:0/7/0上行VLANID(外层VLANTag):61VLAN类型:SmartVLANVLAN属性:Stacking用户3:ADSL2+端口:0/3/0VPI/VCI:0/35(与Modem上的配置一致)内层VLANTag:11用户4:ADSL2+端口:0/3/1VPI/VCI:0/35(与Modem侧的配置一致)内层VLANTag:12配置流程批发业务配置流程如图26-2所示。图26-2批发业务配置流程图操作步骤1.创建VLAN。huawei(config)#vlan60-61smart2.设置VLAN属性。huawei(config)#vlanattrib60-61stacking3.加入上行端口。huawei(config)#portvlan60-610/704.加入业务虚端口。5.huawei(config)#service-portvlan60adsl0/2/0vpi0vci35rx-cttr0tx-cttr06.huawei(config)#service-portvlan60adsl0/2/1vpi0vci35rx-cttr0tx-cttr07.huawei(config)#service-portvlan61adsl0/3/0vpi0vci35rx-cttr0tx-cttr0huawei(config)#service-portvlan61adsl0/3/1vpi0vci35rx-cttr0tx-cttr08.设置内层VLANTag。9.huawei(config)#stackinglabel0/2/01110.huawei(config)#stackinglabel0/2/11211.huawei(config)#stackinglabel0/3/011huawei(config)#stackinglabel0/3/11212.保存数据。huawei(config)#save操作结果用户1、用户2通过ISP1BRAS设备认证后,可以获得ISP1提供的业务。用户3、用户4通过ISP2BRAS设备认证后,可以获得ISP2提供的业务。26.3批量配置VLANstacking在系统扩容的应用场景中,需要对新增加单板的业务批量配置StackingVLAN内层标签,提高易用性。前提条件业务单板状态正常,并且已建立好业务虚端口。只能对属性为Stacking的VLAN进行配置。配置之前必须使用service-port命令建立好业务虚端口。缺省情况下,所有业务虚端口的StackingVLAN内层标签值为1。背景信息批量配置某一单板下业务虚端口的StackingVLAN内层标签时,第一个业务虚端口的标签值配置为baselabel,后面的业务虚端口的标签值依次加1。批量配置整个系统的业务虚端口StackingVLAN内层标签时,第一个业务虚端口的标签值配置为baselabel,后面的业务虚端口的标签值依次加1。操作步骤1.使用stackinglabel命令配置某一单板或整个系统的业务虚端口StackingVLAN内层标签值。2.使用displayservice-port命令查询业务虚端口StackingVLAN内层标签值。任务示例举例:批量配置VLAN2内,0/2槽位ADEE单板上所有业务流的内层VLAN标签值。huawei(config)#stackinglabelvlan20/2baselabel5Itwilltakeseveralminutes,andconsolemaybetimeout,pleaseusecommandidle-timeouttosettimelimitAreyousuretocontinue?(y/n)[n]:yThetotalofservicevirtualport(s)inthisoperation:4Thetotalofservicevirtualport(s)whichcouldbelabeled:2Nowbegintolabeltheseservicevirtualport(s),pleasewait...Thetotalofservicevirtualport(s)whichcouldbelabeled:2Thetotalofservicevirtualport(s)whichhavebeenlabeledsuccessfully:2huawei(config)#displayservice-portboard0/2-----------------------------------------------------------------------------VLANVLANTYPEF/S/PVPIVCIFLOWFLOWRXTXSTATELABELPRIIDATTRTYPEPARA-----------------------------------------------------------------------------2stackingadl0/2/0035--00act/dn502stackingadl0/2/1035--00act/dn60-----------------------------------------------------------------------------Total:2(Up/Down:0/2)Note:F--Frame,S--Slot,P--Port(orvirtualport,suchasIMAgroupetc.)top--TDMoverpacket.Thecharactersprecede/intheSTATEcolumnindicatetheAdmin-Statusandcharactersbehindthe/indicatetheOper-Statusoftheserviceport.actmeansactivateanddeactmeansdeactivate.dnisabbreviationofdown.举例:批量配置VLAN2内所有业务流的内层VLAN标签值。huawei(config)#stackinglabelvlan2baselabel7Itwilltakeseveralminutes,andconsolemaybetimeout,pleaseusecommandidle-timeouttosettimelimitAreyousuretocontinue?(y/n)[n]:yThetotalofservicevirtualport(s)inthisoperation:4Thetotalofservicevirtualport(s)whichcouldbelabeled:4Nowbegintolabeltheseservicevirtualport(s),pleasewait...请参考Thetotalofservicevirtualport(s)whichcouldbelabeled:4Thetotalofservicevirtualport(s)whichhavebeenlabeledsuccessfully:4huawei(config)#displayservice-portvlan2-----------------------------------------------------------------------------VLANVLANTYPEF/S/PVPIVCIFLOWFLOWRXTXSTATELABELPRIIDATTRTYPEPARA-----------------------------------------------------------------------------2stackingadl0/2/0035--00act/dn802stackingadl0/2/1035--00act/dn1002stackingadl0/3/1035--00act/dn702stackingadl0/3/0035--00act/dn90-----------------------------------------------------------------------------Total:4(Up/Down:0/4)Note:F--Frame,S--Slot,P--Port(orvirtualport,suchasIMAgroupetc.)top--TDMoverpacket.Thecharactersprecede/intheSTATEcolumnindicatetheAdmin-Statusandcharactersbehindthe/indicatetheOper-Statusoftheserviceport.actmeansactivateanddeactmeansdeactivate.dnisabbreviationofdown.非常感谢!您的来电是对华为公司的帮助和支持。苏纯suchun@huawei.com华为客户服务中心联系电话400-830-2118地址:深圳市龙岗区坂田华为基地邮编:518129本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!Thise-mailanditsattachmentscontainconfidentialinformationfromHUAWEI,whichisintendedonlyforthepersonorentitywhoseaddressislistedabove.Anyuseoftheinformationcontainedhereininanyway(including,butnotlimitedto,totalorpartialdisclosure,reproduction,ordissemination)bypersonsotherthantheintendedrecipient(s)isprohibited.Ifyoureceivethise-mailinerror