文章目录
前期准备
- eNSP_Setup.exe
- VirtualBox-5.2.44-139111-Win.exe
- WinPcap_4_1_3.exe
- Wireshark-win64-3.0.6.exe
1. eNSP 安装
1.1 安装 VirtualBox
1.2 安装 WinPcap
1.3 安装 Wireshark
1.4 安装 eNSP
2. VLAN 环境规划
2.1 添加4台PC客户端
2.2 添加2台交换机
2.3 客户端连接交换机
2.4 连接两台交换机
2.5 启动所有设备
2.6 主机IP规划
- 根据如下规划,分别配置4台PC
- 测试4台PC连通性
2.7 主机VLAN规划
3. VLAN配置
3.1 交换机 LSW3 配置
<Huawei>system-view
[Huawei]undo info-center enable
[Huawei]vlan batch 10 20
[Huawei]int Ethernet 0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei-Ethernet0/0/1]quit
[Huawei]int Ethernet 0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 20
[Huawei-Ethernet0/0/2]quit
[Huawei]int Ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type trunk
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 10
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 20
[Huawei-Ethernet0/0/3]quit
3.2 交换机 LSW4 配置
<Huawei>system-view
[Huawei]undo info-center enable
[Huawei]vlan batch 10 20
[Huawei]int Ethernet 0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 20
[Huawei-Ethernet0/0/1]quit
[Huawei]int Ethernet 0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 10
[Huawei-Ethernet0/0/2]quit
[Huawei]int Ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type trunk
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 10
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan 20
[Huawei-Ethernet0/0/3]quit
4. 主机连通性测试
- 主机PC1分别ping PC2/PC3/PC4
PC2
PC3
PC4