数通——华为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

相关推荐
前端世界1 天前
鸿蒙在教育场景的落地实践:智慧课堂的分布式设计思路
分布式·华为·harmonyos
Lancker1 天前
拥抱纯血鸿蒙经验分享 实战鸿蒙2025激励计划上架8个鸿蒙APP
华为·harmonyos
申耀的科技观察1 天前
【观察】华为坤灵:茶间一隅见智能,化繁为简助鹏城
华为
liuhaikang1 天前
【鸿蒙HarmonyOS Next App实战开发】卡片工坊 应用技术实践
华为·harmonyos
●VON1 天前
DeepSeek-V3.2 模型在 OpenJiuWen 中的部署实践
学习·华为·von·openjiuwen
liuhaikang1 天前
【鸿蒙HarmonyOS Next App实战开发】古诗书院 应用技术实践
华为·harmonyos
哈哈你是真的厉害1 天前
Windows系统通过wsl Ubuntu24.04本地安装OpenJiuwen Studio的完整安装教程
人工智能·华为·ai·大模型·agent·智能体·openjiuwen
胡琦博客1 天前
基于开发者空间鸿蒙云手机体验鸿蒙开发
华为·智能手机·harmonyos
namehao4652 天前
从HarmonyOS基础认证到赋能资源建设:我的鸿蒙开发进阶之路
华为·harmonyos