数通——华为HCIA

APhttps://cloud.tencent.com/developer/article/2473313

ensp模拟器下载:https://blog.csdn.net/weixin_48711866/article/details/121538418?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-121538418-blog-150059932.235%5Ev43%5Epc_blog_bottom_relevance_base7&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7EPaidSort-1-121538418-blog-150059932.235%5Ev43%5Epc_blog_bottom_relevance_base7&utm_relevant_index=1

ensp安装:https://blog.csdn.net/IT99_/article/details/150059932

HCIA视频参考https://www.bilibili.com/video/BV1ZZLyzLEJW/?p=7&spm_id_from=333.1387.top_right_bar_window_history.content.click&vd_source=f2c475e2a8a69bec4076fc26819c3e8d

ensp解析:https://cloud.tencent.com/developer/article/2339901

ensp设备:ensp模拟器设备间的连线:copper以太网线

ensp命令行终端

1.更改终端命令行名称<huawei>为sw1:sys sw1

2.创建vlan :vlan vlan-id(1~4094);同时配多个vlan:vlan batch 10 20

3.在接口视图下,配置接口类型:port link-type access/trunk/hybrid,简写p l a/t

4.进入接口:int e0/0/1

5.查看VLAN标签:display vlan

6.查看接口类型:display port vlan

7.在接口视图下,查看接口信息:display this

8.在接口视图下,配置Access接口的缺省VLAN:port default vlan vlan-id(1~4094);简写p d v 10配置接口vlan 10

9.关闭生成树协议:stp disable

10.开启/使能STP:stp enable

11.查看MAC地址:display mac-address

12.stp模式为STP:stp mode stp

13.查询STP信息:display stp

14.查STP摘要信息:display stp brief

15.设置STP BID优先级设为0:stp priority 0

16.设备设为备份根网桥:stp root secondary

17.关闭信息中心:undo info-center enable

18.查询接口类型,放行的vlan:display port vlan

19.终端IP信息查询:ipconfig

20.查询g0/0/0口详细信息(包括MAC地址):display interface g0/0/0

21.查看接口配置信息:display this

22.删除接口:undo interface port

23.创建并进入子接口:int g0/0/0

24.接口视图,子接口可以处理相应VLAN的数据:[AR1-GigabitEthernert0/0/1.10]dotlq termination vid 10

25.使能子接口处理ARP广播报文:[AR1-GigabitEthernert0/0/1.10]arp broadcast enable

26.创建并进入VALNIF接口:int Vlanif 10

27.3层接口信息:display ip interface brief

手工静态配置链路聚合

28.创建并进入聚合组1:interface Eth-Trunk 1

29.聚合组视图添加成员:[LSW1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1

30.查询聚合组信息:display eth-trunk

31.设置链路聚合模式为LACP模式:[LSW1-Eth-Trunk2]mode lacp-static

32.设置链路聚合成员数量范围:[LSW1-Eth-Trunk2]max bandwidth-affected-linknumber 7

33.设置最大活动链路数:[LSW1-Eth-Trunk2]max active-linknumber 3

34.设置LACP优先级:[LSW1]lacp priority 0

35.将接口添加到聚合组中:[LSW3-Ethernet0/0/5]:eth-trunk 1

静态NAT配置

36.接口视图下配置静态NAT:nat static global{global-address}inside{host-address}

global参数用于配置外部公有地址,inside参数用于配置内部私有地址。

37.系统视图下配置静态NAT:nat static global{global-address}inside{host-address}//配置静态NAT将内网主机的私有地址一对一映射到公有地址。

在接口下开启静态NAT:nat static enable 在接口下使能nat static功能。

AAA配置

38.进入设备的console 0口:user-interface console 0

39.在console口配置密码:authentication mode password

40.进入aaa:aaa

41.设置认证模式为aaa:authentication-mode aaa//设置密码、优先级、服务类型(终端)

42.重启设备:reboot fast

43.清除保存的设置:reset saved-configuration

DHCP配置

44.使能dhcp:dhcp enable

45.接口打开dhcp:dhcp select interface

相关推荐
nashane4 小时前
HarmonyOS 6学习:CapsLock键失效诊断与长截图完整实现指南
学习·华为·harmonyos
richard_yuu6 小时前
鸿蒙心理测评模块实战|PHQ-9/GAD7双量表答题、实时计分与结果本地化存储
华为·harmonyos
不爱吃糖的程序媛9 小时前
2026年Electron 鸿蒙PC环境搭建指南
人工智能·华为·harmonyos
nashane9 小时前
HarmonyOS 6学习:长截图功能开发中的滚动拼接与权限处理实战
人工智能·华为·harmonyos
笑中取栗16 小时前
华为HCSA-传输接入H19-473题库
网络·华为·题库·hcsa
Python私教16 小时前
鸿蒙 NEXT 也能接 MCP?用 ArkTS 跑通 AI Agent 工具链
人工智能·华为·harmonyos
极客范儿18 小时前
华为HCIP网络工程师认证—OSPF
网络·华为·智能路由器
Swift社区18 小时前
分布式能力在鸿蒙 PC 上到底怎么用?
分布式·华为·harmonyos
曾响铃18 小时前
制造跃升:传统产业正迈入数智化转型的价值兑现期
华为
nashane1 天前
HarmonyOS 6学习:外接键盘CapsLock与长截图功能的实战调试与完整解决方案
学习·华为·计算机外设·harmonyos