1、配置VLAN Stacking批发业务应用实例 通过本任务配置批发业务,使ISP提供的业务能迅速发放到指定的用户群。 组网图 VLAN Stacking批发业务应用组网图如图26-1所示。 用户1、2和用户3、4分别由不同的ISP提供宽带业务。MA5600应用VLAN Stacking特性,为用户报文打上两层VLAN Tag(外层VLAN Tag用于标识ISP,内层VLAN Tag用于标识用户)后,将用户报文转发至二层网络中。二层交换机根据外层VLAN Tag将用户报文转发到指定的ISP BRAS设备。ISP BRAS设备剥离外层VLAN Tag,并通过内层VLAN Tag识别用户。
2、用户通过ISP BRAS认证后,可以获得ISP提供的各种业务。 图26-1 批发业务配置组网图 数据规划 批发业务数据规划如表26-1所示。 表26-1 批发业务数据规划表 配置项 数据 ISP1用户群 上行端口:0/7/0 上行VLAN ID(外层VLAN Tag):60 VLAN类型:Smart VLAN VLAN属性:Stacking 用户1: · ADSL2+端口:0/2/0 · VPI/VCI:0/35(与Modem侧的配置一致) · 内层VLAN Tag:11 用户2: · ADSL2+端口:0/2/1 · VPI/VCI:0
3、/35(与Modem侧的配置一致) · 内层VLAN Tag:12 ISP2用户群 上行端口:0/7/0 上行VLAN ID(外层VLAN Tag):61 VLAN类型:Smart VLAN VLAN属性:Stacking 用户3: · ADSL2+端口:0/3/0 · VPI/VCI:0/35(与Modem上的配置一致) · 内层VLAN Tag:11 用户4: · ADSL2+端口:0/3/1 · VPI/VCI:0/35(与Modem侧的配置一致) · 内层VLAN Tag:12 配置流程 批发业务配置流程如图26-2所示。 图26-2
4、 批发业务配置流程图 操作步骤 1. 创建VLAN。 huawei(config)#vlan 60-61 smart 2. 设置VLAN属性。 huawei(config)#vlan attrib 60-61 stacking 3. 加入上行端口。 huawei(config)#port vlan 60-61 0/7 0 4. 加入业务虚端口。 5. huawei(config)#service-port vlan 60 adsl 0/2/0 vpi 0 vci 35 rx-cttr 0 tx-cttr 0 6. huawei(config)#service-
5、port vlan 60 adsl 0/2/1 vpi 0 vci 35 rx-cttr 0 tx-cttr 0 7. huawei(config)#service-port vlan 61 adsl 0/3/0 vpi 0 vci 35 rx-cttr 0 tx-cttr 0 huawei(config)#service-port vlan 61 adsl 0/3/1 vpi 0 vci 35 rx-cttr 0 tx-cttr 0 8. 设置内层VLAN Tag。 9. huawei(config)#stacking label 0/2/0 11 10. huawei(conf
6、ig)#stacking label 0/2/1 12 11. huawei(config)#stacking label 0/3/0 11 huawei(config)#stacking label 0/3/1 12 12. 保存数据。 huawei(config)#save 操作结果 用户1、用户2通过ISP1 BRAS设备认证后,可以获得ISP1提供的业务。 用户3、用户4通过ISP2 BRAS设备认证后,可以获得ISP2提供的业务。 26.3 批量配置VLAN stacking 在系统扩容的应用场景中,需要对新增加单板的业务批量配置Stacking VLAN内层标
7、签,提高易用性。 前提条件 · 业务单板状态正常,并且已建立好业务虚端口。 · 只能对属性为Stacking的VLAN进行配置。配置之前必须使用service-port命令建立好业务虚端口。 · 缺省情况下,所有业务虚端口的Stacking VLAN内层标签值为1。 背景信息 · 批量配置某一单板下业务虚端口的Stacking VLAN内层标签时,第一个业务虚端口的标签值配置为baselabel,后面的业务虚端口的标签值依次加1。 · 批量配置整个系统的业务虚端口Stacking VLAN内层标签时,第一个业务虚端口的标签值配置为baselabel,后面的业务虚端口的标签
8、值依次加1。 操作步骤 1. 使用stacking label命令配置某一单板或整个系统的业务虚端口Stacking VLAN内层标签值。 2. 使用display service-port命令查询业务虚端口Stacking VLAN内层标签值。 任务示例 举例:批量配置VLAN 2内,0/2槽位ADEE单板上所有业务流的内层VLAN标签值。 huawei(config)#stacking label vlan 2 0/2 baselabel 5 It will take several minutes, and
9、console may be timeout, please use command idle-timeout to set time limit Are you sure to continue? (y/n)[n]:y The total of service virtual port(s) in this operation: 4 The to
10、tal of service virtual port(s) which could be labeled: 2 Now begin to label these service virtual port(s), please wait ...
11、 The total of service virtual port(s) which could be labeled: 2 The total of service virtual port(s) which have been labeled successfully: 2 huawei(config)#display service-port
12、 board 0/2 ----------------------------------------------------------------------------- VLAN VLAN TYPE F/ S/ P VPI VCI FLOW FLOW RX TX STATE LABEL PRI ID ATTR TYPE PARA -----
13、 2 stacking adl 0/2 /0 0 35 - - 0 0 act/dn 5 0 2 stacking adl 0/2 /1 0 35 - - 0 0 act/dn 6 0 -----------------------------------------------------------
14、 Total : 2 (Up/Down : 0/2) Note : F--Frame, S--Slot, P--Port(or virtual port, such as IMA group etc.) top--TDM over packet.The characters precede / in the STATE column indicate the Admin-Sta
15、tus and characters behind the / indicate the Oper-Status of the service port.act means activate and deact means deactivate.dn is abbreviation of down. 举例:批量配置VLAN 2内所有业务流的内层VLAN标签值。 huawei(config)#stacking label vlan 2 baselabel 7 I
16、t will take several minutes, and console may be timeout, please use command idle-timeout to set time limit Are you sure to continue? (y/n)[n]:y The total of service virtual port(s) in this operation:
17、 4 The total of service virtual port(s) which could be labeled: 4 Now begin to label these service virtual port(s), please wait ... 请参考
18、 The total of service virtual port(s) which could be labeled: 4 The total of service virtual port(s) which have been labeled successfully: 4
19、huawei(config)#display service-port vlan 2 ----------------------------------------------------------------------------- VLAN VLAN TYPE F/ S/ P VPI VCI FLOW FLOW RX TX STATE LABEL PRI ID ATTR TYPE PARA
20、 ----------------------------------------------------------------------------- 2 stacking adl 0/2 /0 0 35 - - 0 0 act/dn 8 0 2 stacking adl 0/2 /1 0 35 - - 0 0 act/dn 10 0 2 stacking adl 0/3 /
21、1 0 35 - - 0 0 act/dn 7 0 2 stacking adl 0/3 /0 0 35 - - 0 0 act/dn 9 0 ----------------------------------------------------------------------------- Total : 4 (Up/Down : 0/4)
22、 Note : F--Frame, S--Slot, P--Port(or virtual port, such as IMA group etc.) top--TDM over packet.The characters precede / in the STATE column indicate the Admin-Status and characters behind the / indicate the Oper-Status of the service port.act means
23、 activate and deact means deactivate.dn is abbreviation of down. 非常感谢!您的来电是对华为公司的帮助和支持。 苏纯 suchun@ 华为客户服务中心联系电话 400-830-2118 地址:深圳市龙岗区坂田华为基地 邮编:518129 ---------------------------------------------------------------
24、 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for
25、the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!






