1 先创建如图 的网络拓扑图

1.1 需要设备:

 交换机:S5700(1个)、S3700(2个)、终端:PC(8个)

1.2 按照接口连线:

             所有接口已显示

2 配置 交换机

2.1 LSW6:

关闭配置提示:< Huawei > undo terminal monitor

命令行如下( LSW6 ):
The device is running!<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]quit
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]dis this
#
interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 2 to 4094
#
return
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int vlanif 10
[Huawei-Vlanif10]ip addr 192.14.10.1 24[Huawei-Vlanif10]int vlanif 20
[Huawei-Vlanif20]ip addr 192.14.20.1 24
[Huawei-Vlanif20]int vlanif 30
[Huawei-Vlanif30]ip addr 192.14.30.1 24
[Huawei-Vlanif30]int vlanif 40
[Huawei-Vlanif40]ip addr 192.14.40.1 24
[Huawei-Vlanif40]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]Y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar  8 2022 21:43:37-08:00 Huawei %%01CFM/4/SAVE(l)[12]:The user chose Y when de
ciding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

导出设备配置并保存(重点:不保存,下次打开就会出现丢失配置的情况

2.2 LSW4、LSW5:

   两者命令行一样(注意接口变一下)
代码如下( LSW4 ):
The device is running!<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]quit[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all[Huawei-GigabitEthernet0/0/1]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port def vlan 10[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port def vlan 10[Huawei-Ethernet0/0/2]int e0/0/6
[Huawei-Ethernet0/0/6]port link-type access
[Huawei-Ethernet0/0/6]port def vlan 20[Huawei-Ethernet0/0/6]int e0/0/7
[Huawei-Ethernet0/0/7]port link-type access
[Huawei-Ethernet0/0/7]port def vlan 20[Huawei-Ethernet0/0/7]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar  8 2022 22:13:40-08:00 Huawei %%01CFM/4/SAVE(l)[4]:The user chose Y when dec
iding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>
代码如下( LSW5 ):
The device is running!<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]vlan 30
[Huawei-vlan30]vlan 40
[Huawei-vlan40]quit[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all[Huawei-GigabitEthernet0/0/1]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port def vlan 30[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port def vlan 30[Huawei-Ethernet0/0/2]int e0/0/6
[Huawei-Ethernet0/0/6]port link-type access
[Huawei-Ethernet0/0/6]port def vlan 40[Huawei-Ethernet0/0/6]int e0/0/7
[Huawei-Ethernet0/0/7]port link-type access
[Huawei-Ethernet0/0/7]port def vlan 40[Huawei-Ethernet0/0/7]q
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar  8 2022 22:13:40-08:00 Huawei %%01CFM/4/SAVE(l)[4]:The user chose Y when dec
iding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

3 配置 终端(PC)

  【XX:可自己随意设置】VLAN 10: PC1(192.XX.10.2)PC2(192.XX.10.3)

 VLAN 20: PC3(192.XX.20.2)PC4(192.XX.20.3)

 VLAN 30: PC4(192.XX.30.2)PC5(192.XX.30.3)VLAN 40: PC6(192.XX.40.2)PC7(192.XX.40.3)

4 验证 (ping命令)

 此处用 vlan 30 中的 PC6(192.XX.40.2) 分别 ping vlan 10 和 vlan 40结果 ping 通 配置完成!

5 补充 (部分命令意义)

如果网关设置错了 先删除再配置  可用命令 undo ip addr


导出设备配置并保存(重点:不保存,下次打开就会出现丢失配置的情况

 小编就曾因为没有保存导出配置 而重新配置过好几次 引以为戒啊!!!

最后的最后 如有问题 欢迎各位指正!!!

华为 eNSP—交换机配置(三层)相关推荐

  1. 华为S5700交换机配置 不同vlan 间通信---eNSP

    华为S5700交换机配置 不同vlan 间通信-eNSP 实验目的 实现不同交换机上不同vlan间的通信 要求 1.根据实验要求配置实验拓扑如下图所示(注意同一个vlanif 下的 不同交换机的网关地 ...

  2. 华为ensp交换机vlan划分三种接入模式详解-----网络通信原理

    华为ensp交换机vlan划分三种接入模式详解 冲突域.交换机.广播域 VLAN概述 VLAN帧格式 access端口 Trunk端口 Hybrid端口 冲突域.交换机.广播域 定义:在一个网络范围内 ...

  3. 华为3COM交换机配置命令详解

    华为3COM交换机配置命令详解 1.配置文件相关命令 [Quidway]display current-configuration         ;显示当前生效的配置 [Quidway]displa ...

  4. 【收藏】华为路由器交换机配置命令大全

    华为路由器交换机配置命令:计算机命令 PCAlogin:root;使用root用户 password:linux;口令是linux #shutdown-hnow;关机 #init0;关机 #logou ...

  5. 常毅 华为计算机,华为路由器交换机配置.docx

    华为路由器交换机VLAN 配置 华为路由器交换机 VLAN 配置 使用 4 台 PC(pc 多和少,原理是一样的,所以这里我只用了4 台 pc) ,华为路由 器 (R2621) .交换机 (S3026 ...

  6. 华为 eNSP 模拟器配置动态路由(ospf)

    华为 eNSP 模拟器配置动态路由 (ospf) 文章目录 一.实验步骤 1.配置主机 2.配置路由信息 3.相关命令 4.实验资料 一.实验步骤 配置两台主机的ip地址信息 配置路由的ip信息 启动 ...

  7. 华为路由器交换机配置命令

    华为路由器交换机配置命令:计算机命令 PCAlogin:root:使用root用户 password:linux:口令是linux shutdown-hnow:关机 init0:关机 logout:用 ...

  8. 教你使用华为Ensp模拟器配置OSPF路由协议(二)

    文章目录 前言 一. OSPF的基本原理 1.1 OSPF区域化结构 1.2 OSPF报文类型 1.3 多区域OSPF网络 二. OSPF多区域配置示例 三.精彩链接 四.最后 前言 与RIP协议一样 ...

  9. 华为ensp模拟器配置无线网络

    华为ensp模拟器配置无线网络 1.拓扑图 其中的两个圈圈信号圈,得完成后使用STA连接ssid才会出现 2.cloud1配置 3.LSW2配置 sys [Huawei]sysname SW2 [SW ...

最新文章

  1. Linux系统中的Page cache和Buffer cache
  2. 关于null和undefined
  3. js(Dom+Bom)第二天(1)
  4. 树形结构 —— 树与二叉树
  5. Python生成随机高斯模糊图片
  6. Linux curl命令使用代理、以及代理种类介绍(附:curl命令详解)
  7. python小例子之8 -- decorator的使用
  8. drain open 线与_再转一个:push-pull and open-drain,开漏(open drain)和开集(open collector...
  9. 成功要掌握人生的每一次机会
  10. style, currentStyle, getComputedStyle的区别
  11. 【Windows 8 Store App】学习三:HTTP
  12. 无法启动mysql server问题:“1067”进程意外终止
  13. 下行文格式图片_下行文页面格式设置
  14. 免费中文Python电子书
  15. stm32F205程序移植到stm32F405片子,使用FPU时注意事项
  16. numpy矢量化运算
  17. 文档计算机无法分页,word文档总是重新分页 word文档老是分页显示怎么解决
  18. html表格的形式制作调查问卷,问卷调查表格式,问卷调查怎么制作?
  19. 学计算机应用的必懂知识,学习计算机应用基础心得体会
  20. 2020年开发人员的机器学习基础

热门文章

  1. Ansible 使用剧本
  2. XPS文件如何转成可以修改的Word
  3. 5.2万个!5G上市企业专利最新排行!
  4. 一级造价师学习难点详细解析
  5. 股票走势及K线绘制练习代码笔记(无注释)
  6. linux 批量清空目录下的部分文件内容且文件不删除
  7. 使用Hive的窗口函数进行数据分析——以股票市场分析为例
  8. android qq内测,QQ众测
  9. 清理项目中的无用资源
  10. caoz谈能力成长 - 归纳与总结