所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

S7700, S9700 V200R010C00 配置指南-以太网交换

本文档针对设备的以太网业务,主要包括链路聚合配置、VLAN配置、Voice VLAN配置、VLAN mapping配置、QinQ配置、GVRP配置、MAC表配置、STP/RSTP/MSTP配置和SEP配置等。

评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置基于VLAN的VLAN Mapping示例(2 to 1)

配置基于VLAN的VLAN Mapping示例(2 to 1)

组网需求

图11-7所示,用户通过家庭网关、楼道交换机和小区交换机接入汇聚层网络,为了节省运营商网络VLAN资源,及实现不同用户相同业务在传输过程中相互隔离,可以在楼道交换机上部署QinQ功能,在小区交换机上部署VLAN Mapping功能。

图11-7  2:1 VLAN Mapping组网图

配置思路

采用如下的思路配置2:1 VLAN Mapping:

  1. 将连接用户的交换机接口分别划分到指定VLAN中,以区分不同的业务。

  2. 在楼道交换机上部署QinQ功能,以区分用户、业务。

  3. 在小区交换机上部署VLAN Mapping功能,节约VLAN资源。

操作步骤

  1. 将S1和S2的下行口划分到指定的VLAN中

    # 配置S1。

    <HUAWEI> system-view
    [HUAWEI] sysname S1
    [S1] vlan batch 2 to 4
    [S1] interface gigabitethernet 1/0/1
    [S1-GigabitEthernet1/0/1] port link-type access
    [S1-GigabitEthernet1/0/1] port default vlan 2
    [S1-GigabitEthernet1/0/1] quit
    [S1] interface gigabitethernet 1/0/2
    [S1-GigabitEthernet1/0/2] port link-type access
    [S1-GigabitEthernet1/0/2] port default vlan 3
    [S1-GigabitEthernet1/0/2] quit
    [S1] interface gigabitethernet 1/0/3
    [S1-GigabitEthernet1/0/3] port link-type access
    [S1-GigabitEthernet1/0/3] port default vlan 4
    [S1-GigabitEthernet1/0/3] quit
    [S1] interface gigabitethernet 1/0/4
    [S1-GigabitEthernet1/0/4] port link-type trunk
    [S1-GigabitEthernet1/0/4] port trunk allow-pass vlan 2 to 4
    [S1-GigabitEthernet1/0/4] quit

    # 配置S2。

    <HUAWEI> system-view
    [HUAWEI] sysname S2
    [S2] vlan batch 2 to 4
    [S2] interface gigabitethernet 1/0/1
    [S2-GigabitEthernet1/0/1] port link-type access
    [S2-GigabitEthernet1/0/1] port default vlan 2
    [S2-GigabitEthernet1/0/1] quit
    [S2] interface gigabitethernet 1/0/2
    [S2-GigabitEthernet1/0/2] port link-type access
    [S2-GigabitEthernet1/0/2] port default vlan 3
    [S2-GigabitEthernet1/0/2] quit
    [S2] interface gigabitethernet 1/0/3
    [S2-GigabitEthernet1/0/3] port link-type access
    [S2-GigabitEthernet1/0/3] port default vlan 4
    [S2-GigabitEthernet1/0/3] quit
    [S2] interface gigabitethernet 1/0/4
    [S2-GigabitEthernet1/0/4] port link-type trunk
    [S2-GigabitEthernet1/0/4] port trunk allow-pass vlan 2 to 4
    [S2-GigabitEthernet1/0/4] quit

  2. 部署QinQ功能,使楼道交换机上送到小区交换机的报文带有双层VLAN Tag

    # 配置S3。

    <HUAWEI> system-view
    [HUAWEI] sysname S3
    [S3] vlan batch 201 401
    [S3] interface gigabitethernet 1/0/1
    [S3-GigabitEthernet1/0/1] port link-type hybrid
    [S3-GigabitEthernet1/0/1] port hybrid untagged vlan 201 401
    [S3-GigabitEthernet1/0/1] port vlan-stacking vlan 2 to 3 stack-vlan 201
    [S3-GigabitEthernet1/0/1] port vlan-stacking vlan 4 stack-vlan 401
    [S3-GigabitEthernet1/0/1] quit
    [S3] interface gigabitethernet 1/0/2
    [S3-GigabitEthernet1/0/2] port link-type trunk
    [S3-GigabitEthernet1/0/2] port trunk allow-pass vlan 201 401
    [S3-GigabitEthernet1/0/2] quit

    # 配置S4。

    <HUAWEI> system-view
    [HUAWEI] sysname S4
    [S4] vlan batch 201 401
    [S4] interface gigabitethernet 1/0/1
    [S4-GigabitEthernet1/0/1] port link-type hybrid
    [S4-GigabitEthernet1/0/1] port hybrid untagged vlan 201 401
    [S4-GigabitEthernet1/0/1] port vlan-stacking vlan 2 to 3 stack-vlan 201
    [S4-GigabitEthernet1/0/1] port vlan-stacking vlan 4 stack-vlan 401
    [S4-GigabitEthernet1/0/1] quit
    [S4] interface gigabitethernet 1/0/2
    [S4-GigabitEthernet1/0/2] port link-type trunk
    [S4-GigabitEthernet1/0/2] port trunk allow-pass vlan 201 401
    [S4-GigabitEthernet1/0/2] quit

  3. 在S5上部署VLAN Mapping功能

    <HUAWEI> system-view
    [HUAWEI] sysname S5
    [S5] vlan batch 501
    [S5] interface gigabitethernet 1/0/1
    [S5-GigabitEthernet1/0/1] port link-type trunk
    [S5-GigabitEthernet1/0/1] port trunk allow-pass vlan 501
    [S5-GigabitEthernet1/0/1] port vlan-mapping vlan 201 inner-vlan 2 to 3 map-vlan 501
    [S5-GigabitEthernet1/0/1] port vlan-mapping vlan 401 inner-vlan 4 map-vlan 501
    [S5-GigabitEthernet1/0/1] quit
    [S5] interface gigabitethernet 1/0/2
    [S5-GigabitEthernet1/0/2] port link-type trunk
    [S5-GigabitEthernet1/0/2] port trunk allow-pass vlan 501
    [S5-GigabitEthernet1/0/2] port vlan-mapping vlan 201 inner-vlan 2 to 3 map-vlan 501
    [S5-GigabitEthernet1/0/2] port vlan-mapping vlan 401 inner-vlan 4 map-vlan 501
    [S5-GigabitEthernet1/0/2] quit
    [S5] interface gigabitethernet 1/0/3
    [S5-GigabitEthernet1/0/3] port link-type trunk
    [S5-GigabitEthernet1/0/3] port trunk allow-pass vlan 501
    [S5-GigabitEthernet1/0/3] quit

  4. 验证配置结果

    上述配置完成后,不同家庭用户可以正常访问网络,相同业务共用一个VLAN传输。

配置文件

  • S1的配置文件

    #
    sysname S1
    #
    vlan batch 2 to 4
    #
    interface GigabitEthernet1/0/1
     port link-type access
     port default vlan 2
    #
    interface GigabitEthernet1/0/2
     port link-type access
     port default vlan 3
    #
    interface GigabitEthernet1/0/3
     port link-type access
     port default vlan 4
    #
    interface GigabitEthernet1/0/4
     port link-type trunk
     port trunk allow-pass vlan 2 to 4
    #
    return
  • S2的配置文件

    #
    sysname S2
    #
    vlan batch 2 to 4
    #
    interface GigabitEthernet1/0/1
     port link-type access
     port default vlan 2
    #
    interface GigabitEthernet1/0/2
     port link-type access
     port default vlan 3
    #
    interface GigabitEthernet1/0/3
     port link-type access
     port default vlan 4
    #
    interface GigabitEthernet1/0/4
     port link-type trunk
     port trunk allow-pass vlan 2 to 4
    #
    return
  • S3的配置文件

    #
    sysname S3
    #
    vlan batch 201 401
    #
    interface GigabitEthernet1/0/1
     port link-type hybrid
     port hybrid untagged vlan 201 401
     port vlan-stacking vlan 2 to 3 stack-vlan 201
     port vlan-stacking vlan 4 stack-vlan 401
    #
    interface GigabitEthernet1/0/2
     port link-type trunk
     port trunk allow-pass vlan 201 401
    #
    return
  • S4的配置文件

    #
    sysname S4
    #
    vlan batch 201 401
    #
    interface GigabitEthernet1/0/1
     port link-type hybrid
     port hybrid untagged vlan 201 401
     port vlan-stacking vlan 2 to 3 stack-vlan 201
     port vlan-stacking vlan 4 stack-vlan 401
    #
    interface GigabitEthernet1/0/2
     port link-type trunk
     port trunk allow-pass vlan 201 401
    #
    return
  • S5的配置文件

    #
    sysname S5
    #
    vlan batch 501
    #
    interface GigabitEthernet1/0/1
     port link-type trunk
     port trunk allow-pass vlan 501
     port vlan-mapping vlan 201 inner-vlan 2 to 3 map-vlan 501                                                                          
     port vlan-mapping vlan 401 inner-vlan 4 map-vlan 501
    #
    interface GigabitEthernet1/0/2
     port link-type trunk
     port trunk allow-pass vlan 501
     port vlan-mapping vlan 201 inner-vlan 2 to 3 map-vlan 501                                                                          
     port vlan-mapping vlan 401 inner-vlan 4 map-vlan 501
    #
    interface GigabitEthernet1/0/3
     port link-type trunk
     port trunk allow-pass vlan 501
    #
    return
翻译
下载文档
更新时间:2019-12-27

文档编号:EDOC1000141467

浏览量:84837

下载量:1001

平均得分:
本文档适用于这些产品

相关版本

相关文档

Share
上一页 下一页