华为交换机中的hybrid链路可以实现access功能也可以实现trunk功能

实验目的:
 让vlan5与vlan50互通 让vlan10与vlan50互通
  vlan5与vlan10不能互通

实验拓扑:

华为交换机中的hybrid链路可以实现access功能也可以实现trunk功能_第1张图片


实验步骤:
[sw1]vlan batch 5 10 50
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]port hybrid pvid vlan 5
[sw1-GigabitEthernet0/0/1]port hybrid untagged vlan 5 50

[sw1]interface GigabitEthernet 0/0/2
[sw1-GigabitEthernet0/0/2]port hybrid pvid vlan 10
[sw1-GigabitEthernet0/0/2]port hybrid untagged vlan 10 50

[sw1]interface GigabitEthernet 0/0/9
[sw1-GigabitEthernet0/0/9]port hybrid tagged vlan all
------------------------------------------------------------
[sw2]vlan batch 5 10 50
[sw2]interface GigabitEthernet 0/0/9
[sw2-GigabitEthernet0/0/9]port hybrid tagged vlan all
[sw2]interface GigabitEthernet 0/0/3
[sw2-GigabitEthernet0/0/3]port hybrid pvid vlan 50
[sw2-GigabitEthernet0/0/3]port hybrid untagged vlan all

你可能感兴趣的:(华为网络设备配置技术)