HUAWEI(2)——VLAN中继(Trunk链路)

相对应的思科实验过程:路由和交换基础实验(5)——VLAN中继(trunk链路)

实验拓扑:

HUAWEI(2)——VLAN中继(Trunk链路)_第1张图片

实验目的:把PC0和PC2划分在同一VLAN下,使之能够相互通信;把PC1和PC3划分在同一VLAN下,使之能够相互通信;

实验步骤:

1.交换机1:

system-view 

[Huawei]vlan 10
[Huawei-vlan10]quit

[Huawei]vlan 20
[Huawei-vlan20]quit

[Huawei]int g0/0/1	
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 10
[Huawei-GigabitEthernet0/0/1]quit 

[Huawei]int g0/0/2	
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 20

[Huawei-GigabitEthernet0/0/2]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk 
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan all

2.交换机2:

system-view 

[Huawei]vlan 10
[Huawei-vlan10]quit

[Huawei]vlan 20
[Huawei-vlan20]quit

[Huawei]int g0/0/1	
[Huawei-GigabitEthernet0/0/1]port link-type access
[Huawei-GigabitEthernet0/0/1]port default vlan 10
[Huawei-GigabitEthernet0/0/1]quit 

[Huawei]int g0/0/2	
[Huawei-GigabitEthernet0/0/2]port link-type access
[Huawei-GigabitEthernet0/0/2]port default vlan 20

[Huawei-GigabitEthernet0/0/2]int g0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type trunk 
[Huawei-GigabitEthernet0/0/3]port trunk allow-pass vlan all

实验验证:

HUAWEI(2)——VLAN中继(Trunk链路)_第2张图片

你可能感兴趣的:(华为网络实验)