华为模拟器Hybird实验

实验需求:

1.创建VLAN,并且地址都在同一段

2.划分VLAN成员

3.VLAN 10的成员和VLAN 40的成员能够访问VLAN 20,而VLAN10和VLAN40的成员不能互相访问

4.配置Hybrid

(由于刚学实验需求有点乱)谅解!

以下是拓扑图及详细步骤:

华为模拟器Hybird实验_华为

一.配置PC IP地址

四台PC IP地址要在同一段,网关也都相同

如图:

华为模拟器Hybird实验_拓扑图_02

华为模拟器Hybird实验_拓扑图_03

另外两台以此类推!




二.创建VLAN

以下是详细步骤:

LSW1:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]vlan 10

[Huawei-vlan10]

Oct 18 2013 14:36:47-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.vlan

[Huawei-vlan10]vlan 20

[Huawei-vlan20]vlan 30

[Huawei-vlan30]

Oct 18 2013 14:36:57-08:00 Huawei 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 6, the

change loop count is 0, and the maximum number of records is 4095.

三.划分VLAN,并配置允许通过的VLAN

以下是详细步骤:

LSW2:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

[Huawei]vlan 10

[Huawei-vlan10]vlan 20

Oct 18 2013 14:38:08-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.

[Huawei-vlan20]vlan 30

[Huawei-vlan30]

Oct 18 2013 14:38:18-08:00 Huawei 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 6, the

change loop count is 0, and the maximum number of records is 4095.

LSW1:

[Huawei-vlan30]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type hybrid

[Huawei-Ethernet0/0/1]port hybrid pvid vlan 10

[Huawei-Ethernet0/0/1]

Oct 18 2013 14:39:47-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.

Error: The interface is already a L2 interface.

[Huawei-Ethernet0/0/1]

[Huawei-Ethernet0/0/1]port hybrid untagged vlan 10 20 (允许通过的VLAN,在这要标识)!!!!!

[Huawei-Ethernet0/0/1]

Oct 18 2013 14:40:17-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.

[Huawei-Ethernet0/0/1]int e0/0/2

[Huawei-Ethernet0/0/2]port link-type hybrid

[Huawei-Ethernet0/0/2]port hybrid pvid vlan 20

[Huawei-Ethernet0/0/2]

Oct 18 2013 14:44:07-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.

[Huawei-Ethernet0/0/2]port hybrid untagged vlan 10 20 30(因为要符合实验要求所以通过的VLAN 有VLAN10 20 30)

[Huawei-Ethernet0/0/2]

Oct 18 2013 14:44:37-08:00 Huawei 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 10, the

change loop count is 0, and the maximum number of records is 4095.

用display vlan查看当前VLAN配置

华为模拟器Hybird实验_模拟器_04

LSW2:

[Huawei-vlan30]int e0/0/1

[Huawei-Ethernet0/0/1]port link-type hybrid

[Huawei-Ethernet0/0/1]port hybrid pvid vlan 10

[Huawei-Ethernet0/0/1]

Oct 18 2013 14:48:08-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.

[Huawei-Ethernet0/0/1]

[Huawei-Ethernet0/0/1]port hybrid untagged vlan 10 20 允许通过的VLAN,在这要标识)!!!!!

[Huawei-Ethernet0/0/1]

Oct 18 2013 14:48:28-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.

[Huawei-Ethernet0/0/1]int e0/0/2

[Huawei-Ethernet0/0/2]port link-type hybrid

[Huawei-Ethernet0/0/2]port hybrid pvid vlan 30

[Huawei-Ethernet0/0/2]

Oct 18 2013 14:50:28-08:00 Huawei 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

change loop count is 0, and the maximum number of records is 4095.h

[Huawei-Ethernet0/0/2]port hybrid untagged vlan 20 30允许通过的VLAN,在这要标识)!!!!!

[Huawei-Ethernet0/0/2]

Oct 18 2013 14:50:38-08:00 Huawei 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 10, the

change loop count is 0, and the maximum number of records is 4095.

用display vlan查看当前VLAN配置

华为模拟器Hybird实验_模拟器_05

在确保配置无误之后进行第四步

四.在两台交换机上配置带TAG的VLAN

以下是详细步骤:

LSW1:

[Huawei]int

[Huawei]interface g

[Huawei]interface GigabitEthernet 0/0/1

[Huawei-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 30

[Huawei-GigabitEthernet0/0/1]

Oct 18 2013 14:57:27-08:00 Huawei 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 11, the

change loop count is 0, and the maximum number of records is 4095.

LSW2:

[Huawei-Ethernet0/0/2]int g0/0/1

[Huawei-GigabitEthernet0/0/1]p

[Huawei-GigabitEthernet0/0/1]port h

[Huawei-GigabitEthernet0/0/1]port hybrid t

[Huawei-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20 30

[Huawei-GigabitEthernet0/0/1]

Oct 18 2013 14:58:28-08:00 Huawei 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 11, the

change loop count is 0, and the maximum number of records is 40

五.验证一下

如图所示:

华为模拟器Hybird实验_华为_06

华为模拟器Hybird实验_华为_07

华为模拟器Hybird实验_模拟器_08

华为模拟器Hybird实验_拓扑图_09

VLAN10 的成员ping不通VLAN30的成员则达到实验目的

VLAN10的成员可以ping通VLAN20的成员则达到实验目的

VLAN30同理