• eNSP-VLAN 划分 --hybrid端口实验


    eNSP-VLAN 划分 --hybrid端口实验

     交换机1配置

    <Huawei>system-view 
    Enter system view, return user view with Ctrl+Z.
    [Huawei]sysname sw1
    [sw1]undo info-center enable 
    Info: Information center is disabled.
    [sw1]vlan batch 10 20 100 //批量创建vlan
    Info: This operation may take a few seconds. Please wait for a moment...done.
    [sw1]interface GigabitEthernet 0/0/2
    [sw1-GigabitEthernet0/0/2]port hybrid untagged vlan 10 100 //配置端口untagged vlan
    [sw1-GigabitEthernet0/0/2]port hybrid pvid vlan 10 //修改端口pvid为vlan10
    [sw1]interface GigabitEthernet 0/0/3
    [sw1-GigabitEthernet0/0/3]port hybrid untagged vlan 20 100
    [sw1-GigabitEthernet0/0/3]port hybrid pvid vlan 20 //修改端口pvid为vlan20
    [sw1]interface GigabitEthernet 0/0/1
    [sw1-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 100
    [sw1-GigabitEthernet0/0/1]display vlan
    The total number of vlans is : 4
    ---------------------------------------------------------------------
    U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
    MP: Vlan-mapping;               ST: Vlan-stacking;
    #: ProtocolTransparent-vlan;    *: Management-vlan;
    ---------------------------------------------------------------------
    VID  Type    Ports                                                          
    ---------------------------------------------------------------------
    1    common  UT:GE0/0/1(U)      GE0/0/2(D)      GE0/0/3(D)      GE0/0/4(D)      
                    GE0/0/5(D)      GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(D)      
                    GE0/0/9(D)      GE0/0/10(D)     GE0/0/11(D)     GE0/0/12(D)     
                    GE0/0/13(D)     GE0/0/14(D)     GE0/0/15(D)     GE0/0/16(D)     
                    GE0/0/17(D)     GE0/0/18(D)     GE0/0/19(D)     GE0/0/20(D)     
                    GE0/0/21(D)     GE0/0/22(D)     GE0/0/23(D)     GE0/0/24(D)     
    
    10   common  UT:GE0/0/2(D)                                                      
                 TG:GE0/0/1(U)                                                      
    20   common  UT:GE0/0/3(D)                                                      
                 TG:GE0/0/1(U)                                                      
    100  common  UT:GE0/0/2(D)      GE0/0/3(D)                                      
                 TG:GE0/0/1(U)                                                      
    VID  Status  Property      MAC-LRN Statistics Description      
    ---------------------------------------------------------------------
    1    enable  default       enable  disable    VLAN 0001                         
    10   enable  default       enable  disable    VLAN 0010                         
    20   enable  default       enable  disable    VLAN 0020                         
    100  enable  default       enable  disable    VLAN 0100   
    [sw1]display port vlan active 
    T=TAG U=UNTAG
    ---------------------------------------------------------------------
    Port                Link Type    PVID    VLAN List
    ---------------------------------------------------------------------
    GE0/0/1             hybrid       1       U: 1
                                             T: 10 20 100
    GE0/0/2             hybrid       10      U: 1 10 100
    GE0/0/3             hybrid       20      U: 1 20 100
    GE0/0/4             hybrid       1       U: 1

    交换机sw2的配置

    <Huawei>system-view 
    Enter system view, return user view with Ctrl+Z.
    [Huawei]undo info-center enable 
    Info: Information center is disabled.
    [Huawei]sysname sw2
    [sw2]vlan batch 10 20 100
    Info: This operation may take a few seconds. Please wait for a moment...done.
    [sw2]interface GigabitEthernet 0/0/2
    [sw2-GigabitEthernet0/0/2]port hybrid untagged vlan 10 20 100
    [sw2-GigabitEthernet0/0/2]port hybrid pvid vlan 100
    [sw2]interface GigabitEthernet 0/0/1
    [sw2-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 100
    [sw2]display vlan
    The total number of vlans is : 4
    ---------------------------------------------------------------------
    U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
    MP: Vlan-mapping;               ST: Vlan-stacking;
    #: ProtocolTransparent-vlan;    *: Management-vlan;
    ---------------------------------------------------------------------
    VID  Type    Ports                                                          
    ---------------------------------------------------------------------
    1    common  UT:GE0/0/1(U)      GE0/0/2(D)      GE0/0/3(D)      GE0/0/4(D)      
                    GE0/0/5(D)      GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(D)      
                    GE0/0/9(D)      GE0/0/10(D)     GE0/0/11(D)     GE0/0/12(D)     
                    GE0/0/13(D)     GE0/0/14(D)     GE0/0/15(D)     GE0/0/16(D)     
                    GE0/0/17(D)     GE0/0/18(D)     GE0/0/19(D)     GE0/0/20(D)     
                    GE0/0/21(D)     GE0/0/22(D)     GE0/0/23(D)     GE0/0/24(D)     
    10   common  UT:GE0/0/2(D)                                                      
                 TG:GE0/0/1(U)                                                      
    20   common  UT:GE0/0/2(D)                                                      
                 TG:GE0/0/1(U)                                                      
    100  common  UT:GE0/0/2(D)                                                      
                 TG:GE0/0/1(U)                                                      
    VID  Status  Property      MAC-LRN Statistics Description      
    ---------------------------------------------------------------------
    1    enable  default       enable  disable    VLAN 0001                         
    10   enable  default       enable  disable    VLAN 0010                         
    20   enable  default       enable  disable    VLAN 0020                         
    100  enable  default       enable  disable    VLAN 0100  
    [sw2]display port vlan active 
    T=TAG U=UNTAG
    ---------------------------------------------------------------------
    Port                Link Type    PVID    VLAN List
    ---------------------------------------------------------------------
    GE0/0/1             hybrid       1       U: 1
                                             T: 10 20 100
    GE0/0/2             hybrid       100     U: 1 10 20 100
    GE0/0/3             hybrid       1       U: 1

    pc2pc3上分别ping服务器

     

     服务器配置

     在服务器上ping2个主机

  • 相关阅读:
    springMVC+spring+mybatis整合(包括文件上传和下载)
    mybatis spring 框架整合
    Java AOP 注解配置与xml配置
    Java 实现分页功能
    Arcanist安装使用流程
    Swift 添加KVO
    swift 混编OC instanceType 标识的方法找不到
    Swift UIStackView代码使用
    Swift
    swift 相册PHAssetCollection,PHAsset
  • 原文地址:https://www.cnblogs.com/yhq1314/p/13050260.html
Copyright © 2020-2023  润新知