华为eNSP模拟器 第三层交换机实现vlan间通信配置实例

华为/eNSP 3118 5 2018-10-24

华为eNSP模拟器 第三层交换机实现vlan间通信配置实例

这节学习华为eNSP模拟器 第三层交换机实现vlan间通信,首先搭建好拓扑图,4台交换机、9台客户端,如下所示:

所有IP配置如上面图所标注相应配置。

接下我们交换机

配置LSW1交换机:

<Huawei>sy

[Huawei]sys SwitchA

[SwitchA]int g0/0/1

[SwitchA-GigabitEthernet0/0/1]port link-type access

[SwitchA]int g0/0/2

[SwitchA-GigabitEthernet0/0/1]port link-type access

[SwitchA]int g0/0/3

[SwitchA-GigabitEthernet0/0/1]port link-type access

[SwitchA]vlan 10

[SwitchA-vlan10]port g0/0/1

[SwitchA]vlan 20

[SwitchA-vlan20]port g0/0/2

[SwitchA]vlan 30

[SwitchA-vlan30]port g0/0/3

[SwitchA]int g0/0/24

[SwitchA-GigabitEthernet0/0/24]port link-type trunk

[SwitchA-GigabitEthernet0/0/24]port trunk allow-pass vlan all

<SwitchA>sa

配置LSW2交换机:

<Huawei>sy

[Huawei]sys SwitchB

[SwitchB]int g0/0/1

[SwitchB-GigabitEthernet0/0/1]port link-type access

[SwitchB]int g0/0/2

[SwitchB-GigabitEthernet0/0/1]port link-type access

[SwitchB]int g0/0/3

[SwitchB-GigabitEthernet0/0/1]port link-type access

[SwitchB]vlan 10

[SwitchB-vlan10]port g0/0/1

[SwitchB]vlan 20

[SwitchB-vlan20]port g0/0/2

[SwitchB]vlan 30

[SwitchB-vlan30]port g0/0/3

[SwitchB]int g0/0/24

[SwitchB-GigabitEthernet0/0/24]port link-type trunk

[SwitchB-GigabitEthernet0/0/24]port trunk allow-pass vlan all

<SwitchA>sa


配置LSW3交换机:

<Huawei>sy

[Huawei]sys SwitchC

[SwitchC]int g0/0/1

[SwitchC-GigabitEthernet0/0/1]port link-type access

[SwitchC]int g0/0/2

[SwitchC-GigabitEthernet0/0/1]port link-type access

[SwitchC]int g0/0/3

[SwitchC-GigabitEthernet0/0/1]port link-type access

[SwitchC]vlan 10

[SwitchC-vlan10]port g0/0/1

[SwitchC]vlan 20

[SwitchC-vlan20]port g0/0/2

[SwitchC]vlan 30

[SwitchC-vlan30]port g0/0/3

[SwitchC]int g0/0/24

[SwitchC-GigabitEthernet0/0/24]port link-type trunk

[SwitchC-GigabitEthernet0/0/24]port trunk allow-pass vlan all

<SwitchC>sa


配置LSW4交换机:

<Huawei>sy

[Huawei]sys SwitchD

[SwitchD]int g0/0/1

[SwitchD-GigabitEthernet0/0/1]port link-type trunk

[SwitchD-GigabitEthernet0/0/1]port trunk allow-pass vlan all

[SwitchD]int g0/0/2

[SwitchD-GigabitEthernet0/0/2]port link-type trunk

[SwitchD-GigabitEthernet0/0/2]port trunk allow-pass vlan all

[SwitchD]int g0/0/3

[SwitchD-GigabitEthernet0/0/3]port link-type trunk

[SwitchD-GigabitEthernet0/0/3]port trunk allow-pass vlan all

[SwitchD]vlan 10

[SwitchD]vlan 20

[SwitchD]vlan 30

[SwitchD]int vlan 10

[SwitchD-Vlanif10]ip add 192.168.10.254 24

[SwitchD]int vlan 20

[SwitchD-Vlanif20]ip add 192.168.20.254 24

[SwitchD]int vlan 30

[SwitchD-Vlanif30]ip add 192.168.30.254 24

<SwitchD>sa

所有配置完成,我们来测试下

PC1 ping PC5

PC4 ping PC9

经测试均ping通,这节学习完毕!

上一篇:华为eNSP模拟器 单臂路由配置实例

下一篇:华为eNSP模拟器 PPP协议实例

讨论数量:0

请先登录再发表讨论。 2024-11-24

天涯网魂
3 杠 5 星
TA 的文章
TA 的随言
TA 的资源链