Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口)

》Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口)

》》实验开始,先上拓扑图参考:

》》》实验目标:分别实现主机A、B与服务器Server的互通。

[SWA]vlan batch 10 20 100      //批处理创建vlan10、vlan20和vlan100
Info: This operation may take a few seconds. Please wait for a moment...done.
Jun  9 2019 20:42:02-08:00 SWA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.

[SWA]dis port vlan active      //查看vlan端口激活情况(过程结果略去了,该命令可先了解设备vlan状况)

[SWA]int g0/0/2
[SWA-GigabitEthernet0/0/2]port link-type hybrid    //配置端口类型为Hybrid端口(本步骤可省略,一般已默认Hybrid端口)
[SWA-GigabitEthernet0/0/2]port hybrid untagged vlan 10 100   //配置Hybrid端口可通过不带标签的vlan10和vlan100(G0/0/2)
[SWA-GigabitEthernet0/0/2]port hybrid pvid vlan 10   //配置Hybrid端口的PVID为vlan10(G0/0/2)
[SWA-GigabitEthernet0/0/2]
Jun  9 2019 20:47:42-08:00 SWA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 8, the c
hange loop count is 0, and the maximum number of records is 4095.

[SWA-GigabitEthernet0/0/2]int g0/0/3
[SWA-GigabitEthernet0/0/3]port link-type hybrid    //配置端口类型为Hybrid端口(本步骤可省略,一般已默认Hybrid端口)
[SWA-GigabitEthernet0/0/3]port hybrid untagged vlan 20 100   //配置Hybrid端口可通过不带标签的vlan20和vlan100(G0/0/3)
[SWA-GigabitEthernet0/0/3]port hybrid pvid vlan 20   //配置Hybrid端口的PVID为vlan20(G0/0/3)
[SWA-GigabitEthernet0/0/3]
Jun  9 2019 20:49:52-08:00 SWA DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 9, the c
hange loop count is 0, and the maximum number of records is 4095.

[SWA-GigabitEthernet0/0/3]int g0/0/1
[SWA-GigabitEthernet0/0/1]port link-type hybrid    //配置端口类型为Hybrid端口(本步骤可省略,一般已默认Hybrid端口)
[SWA-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 100   //配置Hybrid端口可通过带标签的vlan10、vlan20和vlan100(G0/0/1)

[SWA]dis vlan      //查看vlan配置情况
The total number of vlans is : 4
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;     //Up上线;Down下线;Tagged带标签;Untagged不带标签。
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------
VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:GE0/0/1(U)      GE0/0/2(U)      GE0/0/3(U)      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(U)            //vlan10下已开启G0/0/1(带标签) G0/0/2(不带标签)

             TG:GE0/0/1(U)                                                      

20   common  UT:GE0/0/3(U)             //vlan20下已开启G0/0/1(带标签) G0/0/2(不带标签)

             TG:GE0/0/1(U)                                                      

100  common  UT:GE0/0/2(U)      GE0/0/3(U)    //vlan100下已开启G0/0/1(带标签) G0/0/2(不带标签) G0/0/3(不带标签)             

             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                         

[SWA]dis port vlan active      //查看vlan端口激活情况
T=TAG U=UNTAG
-------------------------------------------------------------------------------
Port                Link Type    PVID    VLAN List
-------------------------------------------------------------------------------
GE0/0/1             hybrid       1       U: 1             //Hybrid端口 Untagged vlan1(默认)
                                         T: 10 20 100     //Hybrid端口 Tagged vlan10 vlan20 vlan100(新增)
GE0/0/2             hybrid       10      U: 1 10 100      //Hybrid端口 Untagged vlan10(新增)
GE0/0/3             hybrid       20      U: 1 20 100      //Hybrid端口 Untagged vlan20(新增)
GE0/0/4             hybrid       1       U: 1
GE0/0/5             hybrid       1       U: 1
GE0/0/6             hybrid       1       U: 1
GE0/0/7             hybrid       1       U: 1
  ---- More ----
[SWA]
[SWB]vlan batch 10 20 100      //批处理创建vlan10、vlan20和vlan100
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWB]
Jun  9 2019 20:56:32-08:00 SWB DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 1, the c
hange loop count is 0, and the maximum number of records is 4095.

[SWB]int g0/0/2
[SWB-GigabitEthernet0/0/2]port link-type hybrid    //配置端口类型为Hybrid端口(本步骤可省略)
[SWB-GigabitEthernet0/0/2]port hybrid untagged vlan 10 20 100   //配置Hybrid端口可通过不带标签的vlan10 vlan20 vlan100
[SWB-GigabitEthernet0/0/2]
Jun  9 2019 20:58:02-08:00 SWB DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 2, the c
hange loop count is 0, and the maximum number of records is 4095.
[SWB-GigabitEthernet0/0/2]port hybrid pvid vlan 100    //配置Hybrid端口的PVID为vlan100(G0/0/2)
[SWB-GigabitEthernet0/0/2]
Jun  9 2019 20:58:22-08:00 SWB DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 3, the c
hange loop count is 0, and the maximum number of records is 4095.

[SWB-GigabitEthernet0/0/2]int g0/0/1
[SWB-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 100   //配置Hybrid端口可通过带标签的vlan10 vlan20 vlan100
[SWB-GigabitEthernet0/0/1]
Jun  9 2019 20:59:42-08:00 SWB DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.

[SWB]dis vlan      //查看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(U)      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(U)                                                      

             TG:GE0/0/1(U)                                                      

20   common  UT:GE0/0/2(U)                                                      

             TG:GE0/0/1(U)                                                      

100  common  UT:GE0/0/2(U)                                                      

             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                         

[SWB]dis port vlan active     //查看vlan端口激活情况
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
GE0/0/4             hybrid       1       U: 1
GE0/0/5             hybrid       1       U: 1
GE0/0/6             hybrid       1       U: 1
GE0/0/7             hybrid       1       U: 1
  ---- More ----
[SWB]

》》》》配置完成后,ping测试多个vlan下主机与服务器的互通情况,主机A ping Server、主机B ping Server 的测试结果如下图:

全通了,Okay。

posted @ 2019-06-09 22:10  俊者天下  阅读(820)  评论(0编辑  收藏  举报