华为交换机Hybrid端口配置

  • A+
所属分类:系统文档

 

拓扑图:

华为交换机Hybrid端口配置

Switch1:

[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port hybrid untagged vlan 8 to 9  //摘掉标记
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port hybrid untagged vlan 8 to 9  //摘掉标记
[Huawei-GigabitEthernet0/0/3]
[Huawei-GigabitEthernet0/0/3]q
[Huawei]int g0/0/3  
[Huawei-GigabitEthernet0/0/3]port link-type hybrid   //设置端口为hybrid
[Huawei-GigabitEthernet0/0/3]q
[Huawei]dis port vlan a  //查看端口配置
T=TAG U=UNTAG
-------------------------------------------------------------------------------
Port                Link Type    PVID    VLAN List
-------------------------------------------------------------------------------
GE0/0/1             hybrid       1       U: 1
GE0/0/2             hybrid       8       U: 1 8 to 9
GE0/0/3             hybrid       9       U: 1 8 to 9
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
GE0/0/8             hybrid       1       U: 1
GE0/0/9             hybrid       1       U: 1
GE0/0/10            hybrid       1       U: 1
GE0/0/11            hybrid       1       U: 1
GE0/0/12            hybrid       1       U: 1
GE0/0/13            hybrid       1       U: 1
GE0/0/14            hybrid       1       U: 1
GE0/0/15            hybrid       1       U: 1
GE0/0/16            hybrid       1       U: 1
GE0/0/17            hybrid       1       U: 1
GE0/0/18            hybrid       1       U: 1
GE0/0/19            hybrid       1       U: 1
GE0/0/20            hybrid       1       U: 1
GE0/0/21            hybrid       1       U: 1
GE0/0/22            hybrid       1       U: 1
GE0/0/23            hybrid       1       U: 1
GE0/0/24            hybrid       1       U: 1
[Huawei]
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port hybrid untagged vlan 8 to 9
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port hybrid tagged vlan 8 to 9
[Huawei-GigabitEthernet0/0/1]q
[Huawei]dis port vlan a
T=TAG U=UNTAG
-------------------------------------------------------------------------------
Port                Link Type    PVID    VLAN List
-------------------------------------------------------------------------------
GE0/0/1             hybrid       1       U: 1
                                         T: 8 to 9
GE0/0/2             hybrid       8       U: 1 8 to 9
GE0/0/3             hybrid       9       U: 1 8 to 9
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
GE0/0/8             hybrid       1       U: 1
GE0/0/9             hybrid       1       U: 1
GE0/0/10            hybrid       1       U: 1
GE0/0/11            hybrid       1       U: 1
GE0/0/12            hybrid       1       U: 1
GE0/0/13            hybrid       1       U: 1
GE0/0/14            hybrid       1       U: 1
GE0/0/15            hybrid       1       U: 1
GE0/0/16            hybrid       1       U: 1
GE0/0/17            hybrid       1       U: 1
GE0/0/18            hybrid       1       U: 1
GE0/0/19            hybrid       1       U: 1
GE0/0/20            hybrid       1       U: 1
GE0/0/21            hybrid       1       U: 1
GE0/0/22            hybrid       1       U: 1
GE0/0/23            hybrid       1       U: 1
GE0/0/24            hybrid       1       U: 1
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port hybrid untagged vlan 9
[Huawei-GigabitEthernet0/0/1]q
[Huawei]q
<Huawei>dis port vlan a
T=TAG U=UNTAG
-------------------------------------------------------------------------------
Port                Link Type    PVID    VLAN List
-------------------------------------------------------------------------------
GE0/0/1             hybrid       1       U: 1 9
                                         T: 8
GE0/0/2             hybrid       8       U: 1 8 to 9
GE0/0/3             hybrid       9       U: 1 8 to 9
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
GE0/0/8             hybrid       1       U: 1
GE0/0/9             hybrid       1       U: 1
GE0/0/10            hybrid       1       U: 1
GE0/0/11            hybrid       1       U: 1
GE0/0/12            hybrid       1       U: 1
GE0/0/13            hybrid       1       U: 1
GE0/0/14            hybrid       1       U: 1
GE0/0/15            hybrid       1       U: 1
GE0/0/16            hybrid       1       U: 1
GE0/0/17            hybrid       1       U: 1
GE0/0/18            hybrid       1       U: 1
GE0/0/19            hybrid       1       U: 1
GE0/0/20            hybrid       1       U: 1
GE0/0/21            hybrid       1       U: 1
GE0/0/22            hybrid       1       U: 1
GE0/0/23            hybrid       1       U: 1
GE0/0/24            hybrid       1       U: 1

Switch2:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 8
[Huawei-vlan8]vlan 9
[Huawei-vlan9]
[Huawei-vlan9]q
[Huawei]int g0/0/1   
[Huawei-GigabitEthernet0/0/1]port link-type hybrid 
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int g0/0/2  
[Huawei-GigabitEthernet0/0/2]port hybrid pvid vlan 8
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type hybrid
[Huawei-GigabitEthernet0/0/3]port hybrid pvid vlan 9
[Huawei-GigabitEthernet0/0/3]q
[Huawei]dis port vlan a
T=TAG U=UNTAG
-------------------------------------------------------------------------------
Port                Link Type    PVID    VLAN List
-------------------------------------------------------------------------------
GE0/0/1             hybrid       1       U: 1
GE0/0/2             hybrid       8       U: 1
GE0/0/3             hybrid       9       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
GE0/0/8             hybrid       1       U: 1
GE0/0/9             hybrid       1       U: 1
GE0/0/10            hybrid       1       U: 1
GE0/0/11            hybrid       1       U: 1
GE0/0/12            hybrid       1       U: 1
GE0/0/13            hybrid       1       U: 1
GE0/0/14            hybrid       1       U: 1
GE0/0/15            hybrid       1       U: 1
GE0/0/16            hybrid       1       U: 1
GE0/0/17            hybrid       1       U: 1
GE0/0/18            hybrid       1       U: 1
GE0/0/19            hybrid       1       U: 1
GE0/0/20            hybrid       1       U: 1
GE0/0/21            hybrid       1       U: 1
GE0/0/22            hybrid       1       U: 1
GE0/0/23            hybrid       1       U: 1
GE0/0/24            hybrid       1       U: 1
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port hybrid untagged vlan 8 to 9
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port hybrid untagged vlan 8 to 9
[Huawei-GigabitEthernet0/0/3]q
[Huawei]dis port vlan a
T=TAG U=UNTAG
-------------------------------------------------------------------------------
Port                Link Type    PVID    VLAN List
-------------------------------------------------------------------------------
GE0/0/1             hybrid       1       U: 1
GE0/0/2             hybrid       8       U: 1 8 to 9
GE0/0/3             hybrid       9       U: 1 8 to 9
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
GE0/0/8             hybrid       1       U: 1
GE0/0/9             hybrid       1       U: 1
GE0/0/10            hybrid       1       U: 1
GE0/0/11            hybrid       1       U: 1
GE0/0/12            hybrid       1       U: 1
GE0/0/13            hybrid       1       U: 1
GE0/0/14            hybrid       1       U: 1
GE0/0/15            hybrid       1       U: 1
GE0/0/16            hybrid       1       U: 1
GE0/0/17            hybrid       1       U: 1
GE0/0/18            hybrid       1       U: 1
GE0/0/19            hybrid       1       U: 1
GE0/0/20            hybrid       1       U: 1
GE0/0/21            hybrid       1       U: 1
GE0/0/22            hybrid       1       U: 1
GE0/0/23            hybrid       1       U: 1
GE0/0/24            hybrid       1       U: 1
[Huawei]int g0/0/1  
[Huawei-GigabitEthernet0/0/1]port hybrid tagged vlan 8   //添加标记
[Huawei-GigabitEthernet0/0/1]q

配置完后,可以ping一下,是否可以( hybrid 几乎很少用到)

华为交换机Hybrid端口配置

© 版权声明

文章版权归作者所有,未经允许请勿转载。

THE END

喜欢就支持一下吧

Like a child, always believe in hope, I believe the dream.

像孩子一样,永远相信希望,相信梦想

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin